6/20/2023 0 Comments Dynamic desktop wallpaper![]() ("Please make sre that You have fbsetbg installed.\n")Īrgs = "pcmanfm -set-wallpaper %s -wallpaper-mode=scaled" % file_loc ("ERROR: Failed to set wallpaper with fbsetbg!\n") # and I have not figured out how else it can be set on Openbox and AfterSTep # now where fbsetbg does the job excellent anyway. # used fbsetbg on jwm too since I am too lazy to edit the XML configuration With codecs.open(desktop_conf_file, "w", encoding="utf-8", errors="replace") as f:Įlif desktop_env in : If desktop_conf.has_option("razor",config_option): #only replacing a valueĭesktop_t("razor",config_option,file_loc) ![]() If desktop_env in :Īrgs = Īrgs = 'dcop kdesktop KBackgroundIface setWallpaper 0 "%s" 6' % file_locĪrgs0 = Īrgs1 = Īrgs2 = Įlif desktop_env="razor-qt": #TODO: implement reload of desktop when possibleĭesktop_conf = configparser.ConfigParser()ĭesktop_conf_file = os.path.join(self.get_config_dir("razor"),"nf")Ĭonfig_option = r"screens\1\desktops\1\wallpaper"ĭesktop_conf_file = os.path.join(self.get_home_dir(),".razor/nf")ĭesktop_conf.read(os.path.join(desktop_conf_file)) # I have not been able to set the desktop background fromĭesktop_env = self.get_desktop_environment() # Note: There are two common Linux desktop environments where I use the following method in one of my initial projects: def set_wallpaper(self,file_loc, first_run):
0 Comments
Leave a Reply. |