From 9676f43ffad81ac477ae3989e6b2b1e129f85d98 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 7 Mar 2017 13:41:52 -0700 Subject: preliminary support for light backgrounds haven't managed to make one that felt ok yet, but still nice to have the option --- .config/init/funcs/make-gif | 8 +++--- .config/init/gen/urxvt-theme.sh | 2 ++ .config/init/vars | 63 +++++++++++++++++++++++++++++++++++++++-- 3 files changed, 66 insertions(+), 7 deletions(-) (limited to '.config/init') 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 "$@" } -- cgit v1.2.3