From 7a08900b60dd2184e2032132a19b5f7727424776 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 17 May 2024 08:28:15 +0200 Subject: remove xrdb dependency from bgcol script --- .local/share/bin/bgcol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3