diff options
Diffstat (limited to '.local/share/bin')
-rwxr-xr-x | .local/share/bin/bgcol | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.local/share/bin/bgcol b/.local/share/bin/bgcol index 7176f16..75b89b4 100755 --- a/.local/share/bin/bgcol +++ b/.local/share/bin/bgcol @@ -1,6 +1,9 @@ #!/bin/sh COLOR="$1" -[ -z "$COLOR" ] && COLOR="$(xrdb -get background)" +if [ -z "$COLOR" ] ; then + . "$XDG_CACHE_HOME/mode/state/theme" + COLOR="$bg" +fi convert -size 1x1 "xc:$COLOR" /tmp/bgcol.png feh --no-fehbg --bg-tile /tmp/bgcol.png rm /tmp/bgcol.png |