HLWM: Color tweaks
This commit is contained in:
parent
c3786f384c
commit
fb21ebf552
2 changed files with 18 additions and 26 deletions
|
@ -38,7 +38,7 @@
|
||||||
;; keybindings
|
;; keybindings
|
||||||
(keybind modkey "Mod1-q" "quit")
|
(keybind modkey "Mod1-q" "quit")
|
||||||
(keybind modkey "Mod1-r" "reload")
|
(keybind modkey "Mod1-r" "reload")
|
||||||
(keybind modkey "Shift-mod1-c" "close")
|
(keybind modkey "Shift-Mod1-c" "close")
|
||||||
(keybind modkey "Return" "spawn urxvt")
|
(keybind modkey "Return" "spawn urxvt")
|
||||||
(keybind modkey "r"
|
(keybind modkey "r"
|
||||||
(string-append
|
(string-append
|
||||||
|
@ -92,31 +92,21 @@
|
||||||
(keybind modkey "Shift-l" "shift right")
|
(keybind modkey "Shift-l" "shift right")
|
||||||
|
|
||||||
;; colors
|
;; colors
|
||||||
(display "set frame_border_active_color \\#49351D\n")
|
(set "frame_border_active_color" "\\#2e3436")
|
||||||
(set "frame_border_active_color" "\\#49351D")
|
(set "frame_border_normal_color" "\\#0c191c")
|
||||||
(display "set frame_border_normal_color\n")
|
(set "frame_bg_normal_color" "\\#2e3436")
|
||||||
(set "frame_border_normal_color" "\\#73532D")
|
(set "frame_bg_active_color" "\\#0c191c")
|
||||||
(display "set frame_bg_normal_color\n")
|
(set "frame_border_width" "0")
|
||||||
(set "frame_bg_normal_color" "\\#BD9768")
|
|
||||||
(display "set frame_bg_active_color\n")
|
|
||||||
(set "frame_bg_active_color" "\\#BD8541")
|
|
||||||
(display "set frame_border_width\n")
|
|
||||||
(set "frame_border_width" "2")
|
|
||||||
(display "set window_border_width\n")
|
|
||||||
(set "window_border_width" "2")
|
(set "window_border_width" "2")
|
||||||
(display "set window_border_normal_color\n")
|
(set "window_border_normal_color" "\\#0c191c")
|
||||||
(set "window_border_normal_color" "\\#AE8451")
|
(set "window_border_active_color" "\\#800000")
|
||||||
(display "set window_border_active_color\n")
|
|
||||||
(set "window_border_active_color" "\\#F6FF00")
|
|
||||||
|
|
||||||
;; rules
|
;; rules
|
||||||
(display "unrule\n")
|
|
||||||
(unrule)
|
(unrule)
|
||||||
(display "rule focus=off\n")
|
|
||||||
(rule "focus=off") ; normally do not focus new clients
|
(rule "focus=off") ; normally do not focus new clients
|
||||||
(display "rule focus terminal\n")
|
|
||||||
(rule "class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on")
|
(rule "class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on")
|
||||||
(rule "windowtype=_NET_WM_WINDOW_TYPE_DIALOG focus=on pseudotile=on")
|
(rule "windowtype=_NET_WM_WINDOW_TYPE_DIALOG focus=on pseudotile=on")
|
||||||
|
(rule "class=Xephyr pseudotile=on")
|
||||||
|
|
||||||
;; Show panel
|
;; Show panel
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,9 @@ y=${geometry[1]}
|
||||||
width=${geometry[2]}
|
width=${geometry[2]}
|
||||||
height=16
|
height=16
|
||||||
font="-misc-dejavu sans mono-medium-r-*-*-10-*-*-*-*-*-*-*"
|
font="-misc-dejavu sans mono-medium-r-*-*-10-*-*-*-*-*-*-*"
|
||||||
|
fgcolor='#eeeeec'
|
||||||
bgcolor='#252a2b'
|
bgcolor='#252a2b'
|
||||||
|
hintcolor="#0c191c"
|
||||||
|
|
||||||
function uniq_linebuffered() {
|
function uniq_linebuffered() {
|
||||||
awk '$0 != l { print ; l=$0 ; fflush(); }' "$@"
|
awk '$0 != l { print ; l=$0 ; fflush(); }' "$@"
|
||||||
|
@ -23,7 +25,7 @@ herbstclient pad $monitor $height
|
||||||
# events:
|
# events:
|
||||||
#mpc idleloop player &
|
#mpc idleloop player &
|
||||||
while true ; do
|
while true ; do
|
||||||
date +'date ^fg(#eeeeec)%H:%M^fg(#909090), %Y-%m-^fg(#eeeeec)%d'
|
date +'date ^fg($fgcolor)%H:%M^fg(#909090), %Y-%m-^fg($fgcolor)%d'
|
||||||
sleep 1 || break
|
sleep 1 || break
|
||||||
done > >(uniq_linebuffered) &
|
done > >(uniq_linebuffered) &
|
||||||
childpid=$!
|
childpid=$!
|
||||||
|
@ -34,22 +36,22 @@ herbstclient pad $monitor $height
|
||||||
date=""
|
date=""
|
||||||
while true ; do
|
while true ; do
|
||||||
bordercolor="#26221C"
|
bordercolor="#26221C"
|
||||||
hintcolor="#573500"
|
|
||||||
separator="^fg(#141414)^ro(1x$height)^fg()"
|
separator="^fg(#141414)^ro(1x$height)^fg()"
|
||||||
# draw tags
|
# draw tags
|
||||||
|
echo -n "$separator"
|
||||||
for i in "${TAGS[@]}" ; do
|
for i in "${TAGS[@]}" ; do
|
||||||
case ${i:0:1} in
|
case ${i:0:1} in
|
||||||
'#')
|
'#')
|
||||||
echo -n "^bg(#9fbc00)^fg(#141414)"
|
echo -n "^bg(#0c191c)^fg(#eeeeec)"
|
||||||
;;
|
;;
|
||||||
'+')
|
'+')
|
||||||
echo -n "^bg(#9CA668)^fg(#141414)"
|
echo -n "^bg(#2e3436)^fg(#555753)"
|
||||||
;;
|
;;
|
||||||
':')
|
':')
|
||||||
echo -n "^bg(#6A4100)^fg(#141414)"
|
echo -n "^bg(#2e3436)^fg($fgcolor)"
|
||||||
;;
|
;;
|
||||||
'!')
|
'!')
|
||||||
echo -n "^bg(#FF0675)^fg(#141414)"
|
echo -n "^bg(#a40000)^fg(#edd400)"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo -n "^bg()^fg()"
|
echo -n "^bg()^fg()"
|
||||||
|
@ -91,4 +93,4 @@ herbstclient pad $monitor $height
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
|
} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
|
||||||
-ta l -bg "$bgcolor" -fg '#eeeeec'
|
-ta l -bg "$bgcolor" -fg "$fgcolor"
|
||||||
|
|
Loading…
Reference in a new issue