Page 1 of 1

dmenu_hset / dmenu_xset background setter

Posted: Thu Feb 04, 2016 2:44 pm
by machinebacon
Set wallpaper via dmenu.

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
2) using xsetroot. You just need to enter the hexcode without quotes and hash.

Code: Select all

#!/bin/sh
# set xsetroot color using dmenu

selection="$(dmenu -p "Color: $@")"
xsetroot -solid "#$selection"

Re: dmenu_hset / dmenu_xset background setter

Posted: Thu Feb 04, 2016 4:42 pm
by ChefIronBelly
Thats some sweet sauce thanks for sharing.

Re: dmenu_hset / dmenu_xset background setter

Posted: Fri Feb 05, 2016 12:13 am
by dkeg
There you go. I had set a simple alias for hsetroot so I can just wall 'wall' or actually set a new wall with 'setwall'. Recently I changed my .xintrc to point to a .bg file that breaks the wall setting down to variables.

This could be useful with automating schemes.

Re: dmenu_hset / dmenu_xset background setter

Posted: Fri Feb 05, 2016 8:16 am
by Snap
dmenu love. Gorgeous, Thanks.