aboutsummaryrefslogtreecommitdiffstats
path: root/.config/init
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-03-07 13:41:52 -0700
committerkatherine <shmibs@shmibbles.me>2017-03-07 13:41:52 -0700
commit9676f43ffad81ac477ae3989e6b2b1e129f85d98 (patch)
treec08eca44c160f69d5e221ce415e559e0bb265762 /.config/init
parent5aba9de367932be46aa471c71076d9e623d5abce (diff)
downloaddotfiles-9676f43ffad81ac477ae3989e6b2b1e129f85d98.tar.gz
preliminary support for light backgrounds
haven't managed to make one that felt ok yet, but still nice to have the option
Diffstat (limited to '.config/init')
-rwxr-xr-x.config/init/funcs/make-gif8
-rw-r--r--.config/init/gen/urxvt-theme.sh2
-rw-r--r--.config/init/vars63
3 files changed, 66 insertions, 7 deletions
diff --git a/.config/init/funcs/make-gif b/.config/init/funcs/make-gif
index e100650..1864e63 100755
--- a/.config/init/funcs/make-gif
+++ b/.config/init/funcs/make-gif
@@ -38,7 +38,7 @@ local t=""
# really annoying, but no other good way to do this
if [[ $hasgsic ]]; then
- while getopts s:t:f:w:bhn:g opt; do
+ while getopts :s:t:f:w:bhn:g opt; do
case "$opt" in
s)
[[ ! $(echo $OPTARG | grep -oE "$timepat") ]] \
@@ -69,11 +69,11 @@ if [[ $hasgsic ]]; then
;;
g) gsic=true ;;
h) usage ;;
- [?]) usage ;;
+ [?]) usage "unrecognised option" ;;
esac
done
else
- while getopts s:t:f:w:bhn: opt; do
+ while getopts :s:t:f:w:bhn: opt; do
case "$opt" in
s)
[[ ! $(echo $OPTARG | grep -oE "$timepat") ]] \
@@ -103,7 +103,7 @@ else
strack=$OPTARG
;;
h) usage ;;
- [?]) usage ;;
+ [?]) usage "unrecognised option" ;;
esac
done
fi
diff --git a/.config/init/gen/urxvt-theme.sh b/.config/init/gen/urxvt-theme.sh
index 97f7951..ec31644 100644
--- a/.config/init/gen/urxvt-theme.sh
+++ b/.config/init/gen/urxvt-theme.sh
@@ -48,5 +48,7 @@ echo -n "xft:${cfont}:size=${cfont_size}, "
echo -n "xft:${efont}:size=${efont_size}, "
echo "xft:${bkfont}:size=${bkfont_size}"
+[[ -n $urxvt_bg ]] && echo "URxvt*backgroundPixmap: $HOME/backdrops/urxvt/$urxvt_bg"
+
} > /tmp/urxvt-theme
diff --git a/.config/init/vars b/.config/init/vars
index 23b2153..b49454d 100644
--- a/.config/init/vars
+++ b/.config/init/vars
@@ -34,6 +34,8 @@
# bg_urgent="$std_red"
# fg_urgent="$light_white"
+# bar_bg="$bg_normal"
+# bar_fg="$fg_normal"
#
# Undercover
@@ -66,6 +68,8 @@
# bg_urgent="$std_red"
# fg_urgent="$light_white"
+# bar_bg="$bg_normal"
+# bar_fg="$fg_normal"
#
# Fly
@@ -98,6 +102,9 @@
# bg_urgent="$std_red"
# fg_urgent="$light_white"
+# bar_bg="$bg_normal"
+# bar_fg="$fg_normal"
+
#
# Smooch
#
@@ -129,6 +136,9 @@
# bg_urgent="$light_red"
# fg_urgent="$light_white"
+# bar_bg="$bg_normal"
+# bar_fg="$fg_normal"
+
#
# Hello, Friend
#
@@ -160,6 +170,9 @@
# bg_urgent="$light_black"
# fg_urgent="$light_white"
+# bar_bg="$bg_normal"
+# bar_fg="$fg_normal"
+
#
# No Matter Where
#
@@ -191,6 +204,9 @@
# bg_urgent="$std_red"
# fg_urgent="$light_white"
+# bar_bg="$bg_normal"
+# bar_fg="$fg_normal"
+
#
# 花嫁
#
@@ -222,6 +238,47 @@ fg_focus="$light_white"
bg_urgent="$std_red"
fg_urgent="$light_white"
+bar_bg="$bg_normal"
+bar_fg="$fg_normal"
+
+#
+# わがまま
+#
+
+# wallpaper='わがまま.png'
+#
+# std_black='#331a24'
+# std_red='#692c2d'
+# std_green='#326e45'
+# std_yellow='#995d37'
+# std_blue='#444c80'
+# std_magenta='#9f3e81'
+# std_cyan='#2b586b'
+# std_white='#eae4d7'
+#
+# light_black='#4d2836'
+# light_red='#8f5253'
+# light_green='#4e9464'
+# light_yellow='#d69973'
+# light_blue='#5d67a6'
+# light_magenta='#c983b4'
+# light_cyan='#38687d'
+# light_white='#eae4d7'
+#
+# bg_normal="$std_white"
+# fg_normal="$std_black"
+# bg_focus="$std_red"
+# fg_focus="$light_white"
+# bg_urgent="$std_blue"
+# fg_urgent="$light_white"
+#
+# bar_bg="$std_black"
+# bar_fg="$std_white"
+#
+# light_colours=true
+#
+# urxvt_bg='わがまま.png;style=tiled'
+
###############
# misc vars #
@@ -267,9 +324,9 @@ dmenu_args=( -fn "${bfont}:size=${bfont_size}" -h "$bheight"
-sf "$fg_focus" )
-###############
-# functions #
-###############
+##########################
+# convenience function #
+##########################
hc() {
herbstclient "$@"
}