about summary refs log tree commit diff stats
path: root/config/color/colors.sh
diff options
context:
space:
mode:
authorensa <psii@riseup.net>2020-08-15 23:07:00 -0700
committerensa <psii@riseup.net>2020-08-15 23:07:00 -0700
commit3f4e930385675a4613db5f12b19557b126c29559 (patch)
tree052b8a6d2ce5a41d984b3b46c2a15308137d2251 /config/color/colors.sh
parenteec480ccb22f3166d723befc9522e8a25eabf8c1 (diff)
downloadcfg-3f4e930385675a4613db5f12b19557b126c29559.tar.gz
update, fixes
bin/fl: removed unnecessary newline escapes
config/
	X11/
		xprofile: added dvorak programmer
			replaced unclutter with xbanish
		xresources: switch to hermit for font
	aliasrc: lynx vikeys
	color/colors.sh: fixed & portablized color grabbing
	cwmrc: removed
	dunst/dunstrc: switch to hermit for font
	ksh/
		functions/
			man_complete: now uses ~cache
			mpvpin: args improved
		kshrc: added FCEDIT
			removed uptime from PF_INFO
		prompt.ksh: shored up
	lf/lfrc: prompt made more consistent with ksh's
	ncmpcpp/config: paths updated
	newsboat/config: path updated
	shrc: LAUNCHER added
		LOCK switched to xlockmore
Diffstat (limited to 'config/color/colors.sh')
-rwxr-xr-xconfig/color/colors.sh36
1 files changed, 18 insertions, 18 deletions
diff --git a/config/color/colors.sh b/config/color/colors.sh
index 22116a1..7fbb314 100755
--- a/config/color/colors.sh
+++ b/config/color/colors.sh
@@ -1,22 +1,22 @@
 #!/bin/sh
 TMP=$(mktemp)
 xrdb -query>$TMP
-foreground=$(fgrep '*foreground:' < $TMP | cut -f 2)
-background=$(fgrep '*background:' < $TMP | cut -f 2)
-color0=$(fgrep '*color0:' < $TMP | cut -f 2)
-color1=$(fgrep '*color1:' < $TMP | cut -f 2)
-color2=$(fgrep '*color2:' < $TMP | cut -f 2)
-color3=$(fgrep '*color3:' < $TMP | cut -f 2)
-color4=$(fgrep '*color4:' < $TMP | cut -f 2)
-color5=$(fgrep '*color5:' < $TMP | cut -f 2)
-color6=$(fgrep '*color6:' < $TMP | cut -f 2)
-color7=$(fgrep '*color7:' < $TMP | cut -f 2)
-color8=$(fgrep '*color8:' < $TMP | cut -f 2)
-color9=$(fgrep '*color9:' < $TMP | cut -f 2)
-color10=$(fgrep '*color10:' < $TMP | cut -f 2)
-color11=$(fgrep '*color11:' < $TMP | cut -f 2)
-color12=$(fgrep '*color12:' < $TMP | cut -f 2)
-color13=$(fgrep '*color13:' < $TMP | cut -f 2)
-color14=$(fgrep '*color14:' < $TMP | cut -f 2)
-color15=$(fgrep '*color15:' < $TMP | cut -f 2)
+foreground=$(grep -F '*foreground:' < $TMP | cut -f 2 | head -1)
+background=$(grep -F '*background:' < $TMP | cut -f 2 | head -1)
+color0=$(grep -F '*color0:' < $TMP | cut -f 2 | head -1)
+color1=$(grep -F '*color1:' < $TMP | cut -f 2 | head -1)
+color2=$(grep -F '*color2:' < $TMP | cut -f 2 | head -1)
+color3=$(grep -F '*color3:' < $TMP | cut -f 2 | head -1)
+color4=$(grep -F '*color4:' < $TMP | cut -f 2 | head -1)
+color5=$(grep -F '*color5:' < $TMP | cut -f 2 | head -1)
+color6=$(grep -F '*color6:' < $TMP | cut -f 2 | head -1)
+color7=$(grep -F '*color7:' < $TMP | cut -f 2 | head -1)
+color8=$(grep -F '*color8:' < $TMP | cut -f 2 | head -1)
+color9=$(grep -F '*color9:' < $TMP | cut -f 2 | head -1)
+color10=$(grep -F '*color10:' < $TMP | cut -f 2 | head -1)
+color11=$(grep -F '*color11:' < $TMP | cut -f 2 | head -1)
+color12=$(grep -F '*color12:' < $TMP | cut -f 2 | head -1)
+color13=$(grep -F '*color13:' < $TMP | cut -f 2 | head -1)
+color14=$(grep -F '*color14:' < $TMP | cut -f 2 | head -1)
+color15=$(grep -F '*color15:' < $TMP | cut -f 2 | head -1)
 rm $TMP