summaryrefslogtreecommitdiff
path: root/scripts/.local/bin/cdmenu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.local/bin/cdmenu')
-rwxr-xr-xscripts/.local/bin/cdmenu4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/.local/bin/cdmenu b/scripts/.local/bin/cdmenu
index e1a4fdf..c8eee3d 100755
--- a/scripts/.local/bin/cdmenu
+++ b/scripts/.local/bin/cdmenu
@@ -2,7 +2,7 @@
# colored dmenu for use in scripts
getcolor() {
- xrdb -query | awk '/*.color'"$1":'/ { print substr($2,2) }'
+ xrdb -query | awk '/*.'$1:'/ { print substr($2,2) }'
}
# sync that with dwm's config.h!
-dmenu -nb "#$(getcolor 0)" -nf "#$(getcolor 4)" -sb "#$(getcolor 4)" -sf "#$(getcolor 0)" "$@"
+dmenu -nb "#$(getcolor background)" -nf "#$(getcolor foreground)" -sb "#$(getcolor foreground)" -sf "#$(getcolor background)" "$@"