We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa82690 commit e37eaa3Copy full SHA for e37eaa3
backgroundchooser
@@ -170,7 +170,16 @@ elif [ $link -eq 1 ];then
170
else
171
# Set that background
172
log "I have chosen $background"
173
- feh --bg-fill $background
+ if [ "$XDG_CURRENT_DESKTOP" == "i3" ];then
174
+ feh --bg-fill $background
175
+ elif [ "$XDG_CURRENT_DESKTOP" == "GNOME" ];then
176
+ gsettings set org.gnome.desktop.background picture-uri $background
177
+ gsettings set org.gnome.desktop.background picture-uri-dark $background
178
+ else
179
180
181
+ #die 12 "I don't yet know how to set a background on $XDG_CURRENT_DESKTOP"
182
+ fi
183
fi
184
185
exit 0
0 commit comments