![]() What file controls the image displayed on the desktop background Gsettings set picture-uri file://"$file_path" Please ensure that the script is made executable with chmod +x ~/bin/change_background.sh command in terminal or via righ-click -> Properties menu in the GUI file manager #!/bin/bash Make sure you give full path to the script as command, like /home/john_doe/bin/change_background.sh and make sure to assign a key to this shortcut by clicking on the right field Script source ![]() Next open System Settings -> Keyboard -> Shortcuts -> Custom and click the + button to create new shortcut. Save this script in your ~/bin directory ( if you don't have the bin folder in your home folder, then create one). There are more advanced ways to do it via python and python-gi API, but a simple and short shell script is sufficient. ![]() Zenity -file-selection which allows you to choose a file. Simple way to do so is via gsettings command paired together with ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |