about summary refs log tree commit diff stats
path: root/config/color/colors.sh
diff options
context:
space:
mode:
authorensa <psii@riseup.net>2020-05-30 02:01:43 -0700
committerensa <psii@riseup.net>2020-05-30 02:27:02 -0700
commit310c76b161e680a698995d61b2a741a05b384fbe (patch)
tree39338035a918c2466d27f8041d3f6416830e84e1 /config/color/colors.sh
parent7c28231047f1b9c07ce6b85366afe1dce821cc7a (diff)
downloadcfg-310c76b161e680a698995d61b2a741a05b384fbe.tar.gz
new functionality, themes, man page
bin/
	bar.sh: pipes spoon into dzen2
	lh: added gemini/gopher handling with bombadillo
	    shortened (no loss of functionality)
	opener: shortened (no loss of functionality)
config/
	X11/xprofile: added bar.sh
	aliasrc: just read it
	color/colors.sh: color environment variables, like wal's
	cwmrc: font specified as otb
	       swapped oxbar with bar.sh
	ksh/
		completions.ksh:
			added completions for shortcut functions
		diraliases:
			redone with self-references, more complete
		functions/
			pcl: copies password for $1 to selection
			     uses clip if two arguments
			pct: copies totp for $1 to selection
			     uses clip if two arguments
			pkg_complete:
				uses cache diralias
		kshrc: added functions command
		       fixed ensuring existence of HISTFILE's dir
	nvim/init.vim: deleted, no longer used
	vis/
		themes/causalagency.lua: good colorscheme for vis
		themes/fake256.lua: scrapped
		visrc.lua: removed change-256color disable
			   added cul nu ai
	youtube-dl/
		config, config-music: fixed output dir
	zathura/zathurarc: specified cozette otb
data/
	applications/text.desktop
		now uses xterm and vis
	man/man7/user-hier.7
		based off hier(7), describes structure of ..
			home directory
Diffstat (limited to 'config/color/colors.sh')
-rwxr-xr-xconfig/color/colors.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/color/colors.sh b/config/color/colors.sh
new file mode 100755
index 0000000..22116a1
--- /dev/null
+++ b/config/color/colors.sh
@@ -0,0 +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)
+rm $TMP