Commit 492f8498 authored by epsi sayidina's avatar epsi sayidina

herbstluftwm: modularized

parent a85ab344
#!/usr/bin/env bash
~/.config/herbstluftwm/bash/autostart.sh
# ~/.config/herbstluftwm/dotshare736/autostart.sh
#~/.config/herbstluftwm/bash/autostart.sh
#~/.config/herbstluftwm/perl/autostart.pl
#~/.config/herbstluftwm/python/autostart.py
#~/.config/herbstluftwm/ruby/autostart.rb
#~/.config/herbstluftwm/php/autostart.php
~/.config/herbstluftwm/lua/autostart.lua
......@@ -39,32 +39,32 @@ event_generator_bottom() {
while true ; do
evHost
sleep 1h || break
done &
done > >(uniq_linebuffered) &
local host_pid=$!
# cpu
while true ; do
evCPU
sleep 3 || break
done &
done > >(uniq_linebuffered) &
local cpu_pid=$!
# net
while true ; do
evNet
sleep 7 || break
done &
done > >(uniq_linebuffered) &
local net_pid=$!
# batch
while true ; do
evVolume
evMemory
evDisk
# evVolume
# evMemory
# evDisk
evCPU
evSSID
evNet
evUptime
# evUptime
sleep 1m || break
done &
local batch_pid=$!
......
......@@ -43,6 +43,7 @@ init_theme
init_segments
# do `man herbsluftclient`, and type \pad to search what it means
# hc pad $monitor $panel_height 0 $panel_height 0
hc pad $monitor $panel_height 0 $panel_height 0
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......@@ -65,7 +66,7 @@ dzen2_bottom_parameters+=" -title-name dzenbottom"
event_generator_top 2> /dev/null | generated_output_top 2> /dev/null | dzen2 $dzen2_top_parameters \
-e 'button3=;button4=exec:herbstclient use_index -1;button5=exec:herbstclient use_index +1' &
event_generator_bottom 2> /dev/null | generated_output_bottom 2> /dev/null | dzen2 $dzen2_bottom_parameters &
# event_generator_bottom 2> /dev/null | generated_output_bottom 2> /dev/null | dzen2 $dzen2_bottom_parameters &
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# optional transparency
......@@ -75,5 +76,5 @@ event_generator_bottom 2> /dev/null | generated_output_bottom 2> /dev/null | dze
# sleep 2 && exec `(transset-df .8 -n dzentop >/dev/null 2>&1 &)` &
# you may use xorg-transset instead of transset-df
sleep 1 && exec `(transset .8 -n dzenbottom >/dev/null 2>&1 &)` &
# sleep 1 && exec `(transset .8 -n dzenbottom >/dev/null 2>&1 &)` &
sleep 2 && exec `(transset .8 -n dzentop >/dev/null 2>&1 &)` &
......@@ -23,20 +23,20 @@ setDate() {
case $theme in
'bright-arrow')
segmentDate=" $iconTime ^fg($colGrey200)$time, "
segmentDate+="$iconDate ^fg($colGrey500)$date-^fg($colGrey200)$day"
segmentDate=" $iconTime ^fg(${color['grey200']})$time, "
segmentDate+="$iconDate ^fg(${color['grey500']})$date-^fg(${color['grey200']})$day"
;;
'dark-arrow')
segmentDate=" $iconTime ^fg($colGrey200)$time, "
segmentDate+="$iconDate ^fg($colGrey500)$date-^fg($colGrey200)$day"
segmentDate=" $iconTime ^fg(${color['grey200']})$time, "
segmentDate+="$iconDate ^fg(${color['grey500']})$date-^fg(${color['grey200']})$day"
;;
'bright-colorful')
segmentDate=" $iconTime ^fg($colGrey900)$time, "
segmentDate+="$iconDate ^fg($colGrey600)$date-^fg($colGrey900)$day"
segmentDate=" $iconTime ^fg(${color['grey900']})$time, "
segmentDate+="$iconDate ^fg(${color['grey600']})$date-^fg(${color['grey900']})$day"
;;
*) # 'dark-colorful'
segmentDate=" $iconTime ^fg($colGrey200)$time, "
segmentDate+="$iconDate ^fg($colGrey500)$date-^fg($colGrey200)$day"
segmentDate=" $iconTime ^fg(${color['grey200']})$time, "
segmentDate+="$iconDate ^fg(${color['grey500']})$date-^fg(${color['grey200']})$day"
;;
esac
}
......@@ -57,16 +57,16 @@ setWindowtitle() {
case $theme in
'bright-arrow')
segmentWindowtitle=" $icon ^bg()^fg($colGrey700) $1"
segmentWindowtitle=" $icon ^bg()^fg(${color['grey700']}) $1"
;;
'dark-arrow')
segmentWindowtitle=" $icon ^bg()^fg($colGrey500) $1"
segmentWindowtitle=" $icon ^bg()^fg(${color['grey500']}) $1"
;;
'bright-colorful')
segmentWindowtitle=" $icon ^bg()^fg($colGrey700) $1"
segmentWindowtitle=" $icon ^bg()^fg(${color['grey700']}) $1"
;;
*) # 'dark-colorful'
segmentWindowtitle=" $icon ^bg()^fg($colGrey500) $1"
segmentWindowtitle=" $icon ^bg()^fg(${color['grey500']}) $1"
;;
esac
}
......@@ -74,16 +74,16 @@ setWindowtitle() {
setMPD() {
case $theme in
'bright-arrow')
local format="^fg(#$colGrey900)[%artist% ^fg()- ]^fg(#$colGrey300)[%title%]"
local format="^fg(#${color['grey900']})[%artist% ^fg()- ]^fg(#${color['grey300']})[%title%]"
;;
'dark-arrow')
local format="^fg(#$colGrey100)[%artist% ^fg()- ]^fg(#$colYellow500)[%title%]"
local format="^fg(#${color['grey100']})[%artist% ^fg()- ]^fg(#${color['yellow500']})[%title%]"
;;
'bright-colorful')
local format="^fg(#$colBlue500)[%artist% ^fg()- ]^fg(#$colPink700)[%title%]"
local format="^fg(#${color['blue500']})[%artist% ^fg()- ]^fg(#${color['pink700']})[%title%]"
;;
*) # 'dark-colorful'
local format="^fg(#$colBlue300)[%artist% ^fg()- ]^fg(#$colYellow500)[%title%]"
local format="^fg(#${color['blue300']})[%artist% ^fg()- ]^fg(#${color['yellow500']})[%title%]"
;;
esac
......
......@@ -3,19 +3,19 @@
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colWhite
fgcolor=$colBlack
bgcolor=${color['white']}
fgcolor=${color['black']}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colBlack)|^bg()^fg()"
separator="^bg()^fg(${color['black']})|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
preIcon="^fg(${color['yellow500']})$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey300)"
valueColor="^fg($colGrey900)"
labelColor="^fg(${color['grey300']})"
valueColor="^fg(${color['grey900']})"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
......@@ -26,13 +26,13 @@ theme_tagmark_pre() {
case $tagmark in
'#')
deco+="^bg($colBlue500)^fg($colWhite)$right_hard_arrow"
deco+="^bg($colBlue500)^fg($colBlack)"
deco+="^bg(${color['blue500']})^fg(${color['white']})$right_hard_arrow"
deco+="^bg(${color['blue500']})^fg(${color['black']})"
;;
'+') deco+="^bg($colYellow500)^fg($colGrey400)" ;;
':') deco+="^bg()^fg($colBlack)" ;;
'!') deco+="^bg($colRed500)^fg($colBlack)" ;;
*) deco+="^bg()^fg($colGrey600)" ;;
'+') deco+="^bg(${color['yellow500']})^fg(${color['grey400']})" ;;
':') deco+="^bg()^fg(${color['black']})" ;;
'!') deco+="^bg(${color['red500']})^fg(${color['black']})" ;;
*) deco+="^bg()^fg(${color['grey600']})" ;;
esac
echo -n $deco
......@@ -44,7 +44,7 @@ theme_tagmark_post() {
case $tagmark in
'#')
deco+="^bg($colWhite)^fg($colBlue500)$right_hard_arrow"
deco+="^bg(${color['white']})^fg(${color['blue500']})$right_hard_arrow"
;;
*) ;; # do nothing
esac
......@@ -54,23 +54,26 @@ theme_tagmark_post() {
theme_leftside_bottom() {
local left=""
left+=" ^bg($colRed800)^fg($colRed900)$right_hard_arrow"
left+=" ^bg(${color['red800']})^fg(${color['red900']})$right_hard_arrow"
left+=" $segmentHost $right_soft_arrow"
left+=" ^bg($colRed700)^fg($colRed800)$right_hard_arrow"
left+=" $segmentVolume $right_soft_arrow"
left+=" ^bg($colRed600)^fg($colRed700)$right_hard_arrow"
left+=" $segmentMemory $right_soft_arrow"
left+=" ^bg($colRed500)^fg($colRed600)$right_hard_arrow"
left+=" $segmentDisk $right_soft_arrow"
left+=" ^bg($colRed400)^fg($colRed500)$right_hard_arrow"
left+=" ^bg(${color['red700']})^fg(${color['red800']})$right_hard_arrow"
# left+=" $segmentVolume $right_soft_arrow"
left+=" $right_soft_arrow"
left+=" ^bg(${color['red600']})^fg(${color['red700']})$right_hard_arrow"
# left+=" $segmentMemory $right_soft_arrow"
left+=" $right_soft_arrow"
left+=" ^bg(${color['red500']})^fg(${color['red600']})$right_hard_arrow"
# left+=" $segmentDisk $right_soft_arrow"
left+=" $right_soft_arrow"
left+=" ^bg(${color['red400']})^fg(${color['red500']})$right_hard_arrow"
left+=" $segmentCPU $right_soft_arrow"
left+=" ^bg($colRed300)^fg($colRed400)$right_hard_arrow"
left+=" ^bg(${color['red300']})^fg(${color['red400']})$right_hard_arrow"
left+=" $segmentSSID $right_soft_arrow"
left+=" ^bg($colRed200)^fg($colRed300)$right_hard_arrow"
left+=" ^bg(${color['red200']})^fg(${color['red300']})$right_hard_arrow"
left+=" $segmentNet $right_soft_arrow"
left+=" ^bg($colRed100)^fg($colRed200)$right_hard_arrow"
left+=" ^bg(${color['red100']})^fg(${color['red200']})$right_hard_arrow"
# left+=" $segmentUpdates $right_soft_arrow"
left+=" ^bg($colWhite)^fg($colRed100)$right_hard_arrow"
left+=" ^bg(${color['White']})^fg(${color['red100']})$right_hard_arrow"
echo -n $left
}
......@@ -78,24 +81,24 @@ theme_leftside_bottom() {
theme_rightside_top() {
# do not local $right
right=""
right+="^bg($colWhite)^fg($colRed100)$left_hard_arrow"
right+="^bg($colRed100) $left_soft_arrow"
right+="^bg($colRed100)^fg($colRed200)$left_hard_arrow"
right+="^bg($colRed200) $left_soft_arrow"
right+="^bg($colRed200)^fg($colRed300)$left_hard_arrow"
right+="^bg($colRed300) $left_soft_arrow"
right+="^bg($colRed300)^fg($colRed400)$left_hard_arrow"
right+="^bg($colRed400) $left_soft_arrow"
right+="^bg($colRed400)^fg($colRed500)$left_hard_arrow"
right+="^bg($colRed500) $left_soft_arrow"
right+="^bg($colRed500)^fg($colRed600)$left_hard_arrow"
right+="^bg($colRed600) $left_soft_arrow"
right+="^bg($colRed600)^fg($colRed700)$left_hard_arrow"
right+="^bg($colRed700) $left_soft_arrow"
right+="^bg($colRed700)^fg($colRed800)$left_hard_arrow"
right+="^bg($colRed800)$segmentDate $left_soft_arrow"
right+="^bg($colRed800)^fg($colRed900)$left_hard_arrow"
right+="^bg($colRed900) ."
right+="^bg(${color['White']})^fg(${color['red100']})$left_hard_arrow"
right+="^bg(${color['red100']}) $left_soft_arrow"
right+="^bg(${color['red100']})^fg(${color['red200']})$left_hard_arrow"
right+="^bg(${color['red200']}) $left_soft_arrow"
right+="^bg(${color['red200']})^fg(${color['red300']})$left_hard_arrow"
right+="^bg(${color['red300']}) $left_soft_arrow"
right+="^bg(${color['red300']})^fg(${color['red400']})$left_hard_arrow"
right+="^bg(${color['red400']}) $left_soft_arrow"
right+="^bg(${color['red400']})^fg(${color['red500']})$left_hard_arrow"
right+="^bg(${color['red500']}) $left_soft_arrow"
right+="^bg(${color['red500']})^fg(${color['red600']})$left_hard_arrow"
right+="^bg(${color['red600']}) $left_soft_arrow"
right+="^bg(${color['red600']})^fg(${color['red700']})$left_hard_arrow"
right+="^bg(${color['red700']}) $left_soft_arrow"
right+="^bg(${color['red700']})^fg(${color['red800']})$left_hard_arrow"
right+="^bg(${color['red800']})$segmentDate $left_soft_arrow"
right+="^bg(${color['red800']})^fg(${color['red900']})$left_hard_arrow"
right+="^bg(${color['red900']}) ."
rightside_space 0
echo -n $right
......@@ -105,24 +108,25 @@ theme_rightside_top() {
theme_rightside_bottom() {
# do not local $right
right=""
right+="^bg($colWhite)^fg($colRed100)$left_hard_arrow"
right+="^bg($colRed100) "
right+="^bg($colRed100)^fg($colRed200)$left_hard_arrow"
right+="^bg($colRed200) "
right+="^bg($colRed200)^fg($colRed300)$left_hard_arrow"
right+="^bg($colRed300) "
right+="^bg($colRed300)^fg($colRed400)$left_hard_arrow"
right+="^bg($colRed400) "
right+="^bg($colRed400)^fg($colRed500)$left_hard_arrow"
right+="^bg($colRed500) "
right+="^bg($colRed500)^fg($colRed600)$left_hard_arrow"
right+="^bg($colRed600) "
right+="^bg($colRed600)^fg($colRed700)$left_hard_arrow"
right+="^bg($colRed700)$segmentUptime "
right+="^bg($colRed700)^fg($colRed800)$left_hard_arrow"
right+="^bg($colRed800)$segmentMPD "
right+="^bg($colRed800)^fg($colRed900)$left_hard_arrow"
right+="^bg($colRed900) ."
right+="^bg(${color['White']})^fg(${color['red100']})$left_hard_arrow"
right+="^bg(${color['red100']}) "
right+="^bg(${color['red100']})^fg(${color['red200']})$left_hard_arrow"
right+="^bg(${color['red200']}) "
right+="^bg(${color['red200']})^fg(${color['red300']})$left_hard_arrow"
right+="^bg(${color['red300']}) "
right+="^bg(${color['red300']})^fg(${color['red400']})$left_hard_arrow"
right+="^bg(${color['red400']}) "
right+="^bg(${color['red400']})^fg(${color['red500']})$left_hard_arrow"
right+="^bg(${color['red500']}) "
right+="^bg(${color['red500']})^fg(${color['red600']})$left_hard_arrow"
right+="^bg(${color['red600']}) "
right+="^bg(${color['red600']})^fg(${color['red700']})$left_hard_arrow"
right+="^bg(${color['red700']})$segmentUptime "
right+="^bg(${color['red700']}) "
right+="^bg(${color['red700']})^fg(${color['red800']})$left_hard_arrow"
right+="^bg(${color['red800']})$segmentMPD "
right+="^bg(${color['red800']})^fg(${color['red900']})$left_hard_arrow"
right+="^bg(${color['red900']}) ."
rightside_space 0
echo -n $right
......
......@@ -3,19 +3,19 @@
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colWhite
fgcolor=$colBlack
bgcolor=${color['white']}
fgcolor=${color['black']}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colBlack)|^bg()^fg()"
separator="^bg()^fg(${color['black']})|^bg()^fg()"
preIcon="^fg($colPink700)$FontAwesome"
preIcon="^fg(${color['pink700']})$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colBlue700)"
labelColor="^fg(${color['grey700']})"
valueColor="^fg(${color['blue700']})"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......@@ -28,11 +28,11 @@ theme_tagmark_pre() {
local tagmark=$1
case $tagmark in
'#') deco="^bg($colBlue500)^fg($colBlack)" ;;
'+') deco="^bg($colYellow500)^fg($colGrey400)" ;;
':') deco="^bg()^fg($colBlack)" ;;
'!') deco="^bg($colRed500)^fg($colBlack)" ;;
*) deco="^bg()^fg($colGrey600)" ;;
'#') deco="^bg(${color['blue500']})^fg(${color['black']})" ;;
'+') deco="^bg(${color['yellow500']})^fg(${color['grey400']})" ;;
':') deco="^bg()^fg(${color['black']})" ;;
'!') deco="^bg(${color['red500']})^fg(${color['black']})" ;;
*) deco="^bg()^fg(${color['grey600']})" ;;
esac
echo -n $deco
......
......@@ -3,19 +3,19 @@
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colBlack
fgcolor=$colWhite
bgcolor=${color['black']}
fgcolor=${color['white']}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colWhite)|^bg()^fg()"
separator="^bg()^fg(${color['white']})|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
preIcon="^fg(${color['yellow500']})$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey900)"
valueColor="^fg($colGrey100)"
labelColor="^fg(${color['grey900']})"
valueColor="^fg(${color['grey100']})"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
......@@ -26,13 +26,13 @@ theme_tagmark_pre() {
case $tagmark in
'#')
deco+="^bg($colBlue500)^fg($colBlack)$right_hard_arrow"
deco+="^bg($colBlue500)^fg($colWhite)"
deco+="^bg(${color['blue500']})^fg(${color['black']})$right_hard_arrow"
deco+="^bg(${color['blue500']})^fg(${color['white']})"
;;
'+') deco="^bg($colYellow500)^fg($colGrey400)" ;;
':') deco="^bg()^fg($colWhite)" ;;
'!') deco="^bg($colRed500)^fg($colWhite)" ;;
*) deco="^bg()^fg($colGrey600)" ;;
'+') deco="^bg(${color['yellow500']})^fg(${color['grey400']})" ;;
':') deco="^bg()^fg(${color['white']})" ;;
'!') deco="^bg(${color['red500']})^fg(${color['white']})" ;;
*) deco="^bg()^fg(${color['grey600']})" ;;
esac
echo -n $deco
......@@ -44,7 +44,7 @@ theme_tagmark_post() {
case $tagmark in
'#')
deco+="^bg($colBlack)^fg($colBlue500)$right_hard_arrow"
deco+="^bg(${color['black']})^fg(${color['blue500']})$right_hard_arrow"
;;
*) ;; # do nothing
esac
......@@ -54,23 +54,23 @@ theme_tagmark_post() {
theme_leftside_bottom() {
local left=""
left+=" ^bg($colBlue200)^fg($colBlue100)$right_hard_arrow"
left+=" ^bg(${color['blue200']})^fg(${color['blue100']})$right_hard_arrow"
left+=" $segmentHost "
left+=" ^bg($colBlue300)^fg($colBlue200)$right_hard_arrow"
left+=" ^bg(${color['blue300']})^fg(${color['blue200']})$right_hard_arrow"
left+=" $segmentVolume "
left+=" ^bg($colBlue400)^fg($colBlue300)$right_hard_arrow"
left+=" ^bg(${color['blue400']})^fg(${color['blue300']})$right_hard_arrow"
left+=" $segmentMemory "
left+=" ^bg($colBlue500)^fg($colBlue400)$right_hard_arrow"
left+=" ^bg(${color['blue500']})^fg(${color['blue400']})$right_hard_arrow"
left+=" $segmentDisk "
left+=" ^bg($colBlue600)^fg($colBlue500)$right_hard_arrow"
left+=" ^bg(${color['blue600']})^fg(${color['blue500']})$right_hard_arrow"
left+=" $segmentCPU "
left+=" ^bg($colBlue700)^fg($colBlue600)$right_hard_arrow"
left+=" ^bg(${color['blue700']})^fg(${color['blue600']})$right_hard_arrow"
left+=" $segmentSSID "
left+=" ^bg($colBlue800)^fg($colBlue700)$right_hard_arrow"
left+=" ^bg(${color['blue800']})^fg(${color['blue700']})$right_hard_arrow"
left+=" $segmentNet "
left+=" ^bg($colBlue900)^fg($colBlue800)$right_hard_arrow"
left+=" ^bg(${color['blue900']})^fg(${color['blue800']})$right_hard_arrow"
# left+=" $segmentUpdates "
left+=" ^bg($colBlack)^fg($colBlue900)$right_hard_arrow"
left+=" ^bg(${color['black']})^fg(${color['blue900']})$right_hard_arrow"
echo -n $left
}
......@@ -78,12 +78,12 @@ theme_leftside_bottom() {
theme_rightside_top() {
# do not local $right
right=""
right+="^bg($colBlack)^fg($colBlue600) $left_hard_arrow"
right+="^bg($colBlue600) "
right+="^bg($colBlue600)^fg($colBlack) $left_hard_arrow"
right+="^bg($colBlack)$segmentDate "
right+="^bg($colBlack)^fg($colBlue400) $left_hard_arrow"
right+="^bg($colBlue400) ."
right+="^bg(${color['black']})^fg(${color['blue600']}) $left_hard_arrow"
right+="^bg(${color['blue600']}) "
right+="^bg(${color['blue600']})^fg(${color['black']}) $left_hard_arrow"
right+="^bg(${color['black']})$segmentDate "
right+="^bg(${color['black']})^fg(${color['blue400']}) $left_hard_arrow"
right+="^bg(${color['blue400']}) ."
rightside_space -10
echo -n $right
......@@ -93,24 +93,24 @@ theme_rightside_top() {
theme_rightside_bottom() {
# do not local $right
right=""
right+="^bg($colBlack)^fg($colBlue900)$left_hard_arrow"
right+="^bg($colBlue900)$segmentUptime "
right+="^bg($colBlue900)^fg($colBlue800)$left_hard_arrow"
right+="^bg($colBlue800) "
right+="^bg($colBlue800)^fg($colBlue700)$left_hard_arrow"
right+="^bg($colBlue700) "
right+="^bg($colBlue700)^fg($colBlue600)$left_hard_arrow"
right+="^bg($colBlue600) "
right+="^bg($colBlue600)^fg($colBlue500)$left_hard_arrow"
right+="^bg($colBlue500) "
right+="^bg($colBlue500)^fg($colBlue400)$left_hard_arrow"
right+="^bg($colBlue400) "
right+="^bg($colBlue400)^fg($colBlue300)$left_hard_arrow"
right+="^bg($colBlue300) "
right+="^bg($colBlue300)^fg($colBlack)$left_hard_arrow"
right+="^bg($colBlack)$segmentMPD "
right+="^bg($colBlack)^fg($colBlue100)$left_hard_arrow"
right+="^bg($colBlue100) ."
right+="^bg(${color['black']})^fg(${color['blue900']})$left_hard_arrow"
right+="^bg(${color['blue900']})$segmentUptime "
right+="^bg(${color['blue900']})^fg(${color['blue800']})$left_hard_arrow"
right+="^bg(${color['blue800']}) "
right+="^bg(${color['blue800']})^fg(${color['blue700']})$left_hard_arrow"
right+="^bg(${color['blue700']}) "
right+="^bg(${color['blue700']})^fg(${color['blue600']})$left_hard_arrow"
right+="^bg(${color['blue600']}) "
right+="^bg(${color['blue600']})^fg(${color['blue500']})$left_hard_arrow"
right+="^bg(${color['blue500']}) "
right+="^bg(${color['blue500']})^fg(${color['blue400']})$left_hard_arrow"
right+="^bg(${color['blue400']}) "
right+="^bg(${color['blue400']})^fg(${color['blue300']})$left_hard_arrow"
right+="^bg(${color['blue300']}) "
right+="^bg(${color['blue300']})^fg(${color['black']})$left_hard_arrow"
right+="^bg(${color['black']})$segmentMPD "
right+="^bg(${color['black']})^fg(${color['blue100']})$left_hard_arrow"
right+="^bg(${color['blue100']}) ."
rightside_space 0
echo -n $right
......
......@@ -4,19 +4,19 @@
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colBlack
fgcolor=$colWhite
bgcolor=${color['black']}
fgcolor=${color['white']}
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colWhite)|^bg()^fg()"
separator="^bg()^fg(${color['white']})|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
preIcon="^fg(${color['yellow500']})$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colBlue300)"
labelColor="^fg(${color['grey700']})"
valueColor="^fg(${color['blue300']})"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
......@@ -28,11 +28,11 @@ theme_tagmark_pre_dark() {
local tagmark=$1
case $tagmark in
'#') deco="^bg($colBlue500)^fg($colWhite)" ;;
'+') deco="^bg($colYellow500)^fg($colGrey400)" ;;
':') deco="^bg()^fg($colWhite)" ;;
'!') deco="^bg($colRed500)^fg($colWhite)" ;;
*) deco="^bg()^fg($colGrey600)" ;;
'#') deco="^bg(${color['blue500']})^fg(${color['white']})" ;;
'+') deco="^bg(${color['yellow500']})^fg(${color['grey400']})" ;;
':') deco="^bg()^fg(${color['white']})" ;;
'!') deco="^bg(${color['red500']})^fg(${color['white']})" ;;
*) deco="^bg()^fg(${color['grey600']})" ;;
esac
echo -n $deco
......
......@@ -11,8 +11,8 @@ then
theme='dark-colorful'
# dzen panel color
bgcolor=$colBlack
fgcolor=$colWhite
bgcolor=${color['black']}
fgcolor=${color['white']}
fi
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......
......@@ -18,7 +18,7 @@ function do_config()
# loop over hash
for key in "${!hash[@]}"; do
value=${hash[$key]}
local value=${hash[$key]}
hc $command $key $value
# uncomment to debug in terminal
......@@ -32,16 +32,16 @@ function do_config()
function set_tags_with_name() {
hc rename default "${tag_names[0]}" 2>/dev/null || true
for i in ${!tag_names[@]} ; do
hc add "${tag_names[$i]}"
for index in ${!tag_names[@]} ; do
hc add "${tag_names[$index]}"
# uncomment to debug in terminal
# echo $i
# echo $index
key="${tag_keys[$i]}"
local key="${tag_keys[$index]}"
if ! [ -z "$key" ] ; then
hc keybind "$m-$key" use_index "$i"
hc keybind "$m-Shift-$key" move_index "$i"
hc keybind "$m-$key" use_index "$index"
hc keybind "$m-Shift-$key" move_index "$index"
fi
done
}
......@@ -72,7 +72,7 @@ function bind_cycle_layout() {