dmenu_hset / dmenu_xset background setter
Posted: Thu Feb 04, 2016 2:44 pm
Set wallpaper via dmenu.
1) using hsetroot. Adjust options (blur, fill, etc) and of course the path.
2) using xsetroot. You just need to enter the hexcode without quotes and hash.
1) using hsetroot. Adjust options (blur, fill, etc) and of course the path.
Code: Select all
#!/bin/sh
# set wallpaper using dmenu
wallpath=/usr/local/share/wallpapers
walls="$(ls $wallpath)"
selection="$(echo "$walls" | dmenu "$@")"
hsetroot -fill $wallpath/$selection
Code: Select all
#!/bin/sh
# set xsetroot color using dmenu
selection="$(dmenu -p "Color: $@")"
xsetroot -solid "#$selection"