Commit 8d962026 authored by epsi sayidina's avatar epsi sayidina

herbstluftwm: dzen2 themes

parent 1e91e9a4
This diff is collapsed.
......@@ -31,6 +31,7 @@ panel_height=24
. ~/.config/herbstluftwm/bash/dzen2/output.sh
. ~/.config/herbstluftwm/bash/dzen2/generate.sh
init_theme
init_segments
# do `man herbsluftclient`, and type \pad to search what it means
......
#!/usr/bin/env bash
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colWhite
fgcolor=$colBlack
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colBlack)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey300)"
valueColor="^fg($colGrey900)"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
theme_tagmark_pre() {
local deco=""
local tagmark=$1
case $tagmark in
'#')
deco+="^bg($colBlue500)^fg($colWhite)$right_hard_arrow"
deco+="^bg($colBlue500)^fg($colBlack)"
;;
'+') deco+="^bg($colYellow500)^fg($colGrey400)" ;;
':') deco+="^bg()^fg($colBlack)" ;;
'!') deco+="^bg($colRed500)^fg($colBlack)" ;;
*) deco+="^bg()^fg($colGrey600)" ;;
esac
echo -n $deco
}
theme_tagmark_post() {
local deco=""
local tagmark=$1
case $tagmark in
'#')
deco+="^bg($colWhite)^fg($colBlue500)$right_hard_arrow"
;;
*) ;; # do nothing
esac
echo -n $deco
}
theme_leftside_bottom() {
local left=""
left+=" ^fg($colRed900)^bg($colRed800)$right_hard_arrow"
left+=" $segmentHost "
left+=" ^fg($colRed800)^bg($colRed700)$right_hard_arrow"
left+=" $segmentVolume "
left+=" ^fg($colRed700)^bg($colRed600)$right_hard_arrow"
left+=" $segmentMemory "
left+=" ^fg($colRed600)^bg($colRed500)$right_hard_arrow"
left+=" $segmentDisk "
left+=" ^fg($colRed500)^bg($colRed400)$right_hard_arrow"
left+=" $segmentCPU "
left+=" ^fg($colRed400)^bg($colRed300)$right_hard_arrow"
left+=" $segmentSSID "
left+=" ^fg($colRed300)^bg($colRed200)$right_hard_arrow"
left+=" $segmentNet "
left+=" ^fg($colRed200)^bg($colRed100)$right_hard_arrow"
# left+=" $segmentUpdates "
left+=" ^fg($colRed100)^bg($colWhite)$right_hard_arrow"
echo -n $left
}
theme_rightside_top() {
# do not local $right
right=""
right+="^fg($colRed100)^bg($colWhite)$left_hard_arrow"
right+="^bg($colRed100) "
right+="^fg($colRed200)^bg($colRed100)$left_hard_arrow"
right+="^bg($colRed200) "
right+="^fg($colRed300)^bg($colRed200)$left_hard_arrow"
right+="^bg($colRed300) "
right+="^fg($colRed400)^bg($colRed300)$left_hard_arrow"
right+="^bg($colRed400) "
right+="^fg($colRed500)^bg($colRed400)$left_hard_arrow"
right+="^bg($colRed500) "
right+="^fg($colRed600)^bg($colRed500)$left_hard_arrow"
right+="^bg($colRed600) "
right+="^fg($colRed700)^bg($colRed600)$left_hard_arrow"
right+="^bg($colRed700) "
right+="^fg($colRed800)^bg($colRed700)$left_hard_arrow"
right+="^bg($colRed800)$segmentDate "
right+="^fg($colRed900)^bg($colRed800)$left_hard_arrow"
right+="^bg($colRed900) ."
rightside_space 0
echo -n $right
echo
}
theme_rightside_bottom() {
# do not local $right
right=""
right+="^fg($colRed100)^bg($colWhite)$left_hard_arrow"
right+="^bg($colRed100) "
right+="^fg($colRed200)^bg($colRed100)$left_hard_arrow"
right+="^bg($colRed200) "
right+="^fg($colRed300)^bg($colRed200)$left_hard_arrow"
right+="^bg($colRed300) "
right+="^fg($colRed400)^bg($colRed300)$left_hard_arrow"
right+="^bg($colRed400) "
right+="^fg($colRed500)^bg($colRed400)$left_hard_arrow"
right+="^bg($colRed500) "
right+="^fg($colRed600)^bg($colRed500)$left_hard_arrow"
right+="^bg($colRed600) "
right+="^fg($colRed700)^bg($colRed600)$left_hard_arrow"
right+="^bg($colRed700)$segmentUptime "
right+="^fg($colRed800)^bg($colRed700)$left_hard_arrow"
right+="^bg($colRed800)$segmentMPD "
right+="^fg($colRed900)^bg($colRed800)$left_hard_arrow"
right+="^bg($colRed900) ."
rightside_space 0
echo -n $right
echo
}
#!/usr/bin/env bash
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colWhite
fgcolor=$colBlack
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colBlack)|^bg()^fg()"
preIcon="^fg($colPink700)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colBlue700)"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
. ~/.config/herbstluftwm/bash/dzen2/themes/shared-colorful.sh
theme_tagmark_pre() {
local deco
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)" ;;
esac
echo -n $deco
}
#!/usr/bin/env bash
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colBlack
fgcolor=$colWhite
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colWhite)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey900)"
valueColor="^fg($colGrey100)"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
theme_tagmark_pre() {
local deco=""
local tagmark=$1
case $tagmark in
'#')
deco+="^bg($colBlue500)^fg($colBlack)$right_hard_arrow"
deco+="^bg($colBlue500)^fg($colWhite)"
;;
'+') deco="^bg($colYellow500)^fg($colGrey400)" ;;
':') deco="^bg()^fg($colWhite)" ;;
'!') deco="^bg($colRed500)^fg($colWhite)" ;;
*) deco="^bg()^fg($colGrey600)" ;;
esac
echo -n $deco
}
theme_tagmark_post() {
local deco=""
local tagmark=$1
case $tagmark in
'#')
deco+="^bg($colBlack)^fg($colBlue500)$right_hard_arrow"
;;
*) ;; # do nothing
esac
echo -n $deco
}
theme_leftside_bottom() {
local left=""
left+=" ^fg($colBlue100)^bg($colBlue200)$right_hard_arrow"
left+=" $segmentHost "
left+=" ^fg($colBlue200)^bg($colBlue300)$right_hard_arrow"
left+=" $segmentVolume "
left+=" ^fg($colBlue300)^bg($colBlue400)$right_hard_arrow"
left+=" $segmentMemory "
left+=" ^fg($colBlue400)^bg($colBlue500)$right_hard_arrow"
left+=" $segmentDisk "
left+=" ^fg($colBlue500)^bg($colBlue600)$right_hard_arrow"
left+=" $segmentCPU "
left+=" ^fg($colBlue600)^bg($colBlue700)$right_hard_arrow"
left+=" $segmentSSID "
left+=" ^fg($colBlue700)^bg($colBlue800)$right_hard_arrow"
left+=" $segmentNet "
left+=" ^fg($colBlue800)^bg($colBlue900)$right_hard_arrow"
# left+=" $segmentUpdates "
left+=" ^fg($colBlue900)^bg($colBlack)$right_hard_arrow"
echo -n $left
}
theme_rightside_top() {
# do not local $right
right=""
right+="^fg($colBlue600)^bg($colBlack) $left_hard_arrow"
right+="^bg($colBlue600) "
right+="^fg($colBlack)^bg($colBlue600) $left_hard_arrow"
right+="^bg($colBlack)$segmentDate "
right+="^fg($colBlue400)^bg($colBlack) $left_hard_arrow"
right+="^bg($colBlue400) ."
rightside_space -10
echo -n $right
echo
}
theme_rightside_bottom() {
# do not local $right
right=""
right+="^fg($colBlue900)^bg($colBlack)$left_hard_arrow"
right+="^bg($colBlue900)$segmentUptime "
right+="^fg($colBlue800)^bg($colBlue900)$left_hard_arrow"
right+="^bg($colBlue800) "
right+="^fg($colBlue700)^bg($colBlue800)$left_hard_arrow"
right+="^bg($colBlue700) "
right+="^fg($colBlue600)^bg($colBlue700)$left_hard_arrow"
right+="^bg($colBlue600) "
right+="^fg($colBlue500)^bg($colBlue600)$left_hard_arrow"
right+="^bg($colBlue500) "
right+="^fg($colBlue400)^bg($colBlue500)$left_hard_arrow"
right+="^bg($colBlue400) "
right+="^fg($colBlue300)^bg($colBlue400)$left_hard_arrow"
right+="^bg($colBlue300) "
right+="^fg($colBlack)^bg($colBlue300)$left_hard_arrow"
right+="^bg($colBlack)$segmentMPD "
right+="^fg($colBlue100)^bg($colBlack)$left_hard_arrow"
right+="^bg($colBlue100) ."
rightside_space 0
echo -n $right
echo
}
#!/usr/bin/env bash
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
bgcolor=$colBlack
fgcolor=$colWhite
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colWhite)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colBlue300)"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
. ~/.config/herbstluftwm/bash/dzen2/themes/shared-colorful.sh
theme_tagmark_pre_dark() {
local deco
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)" ;;
esac
echo -n $deco
}
#!/usr/bin/env bash
theme_leftside_bottom() {
local left=" $separator $segmentHost "
left+="$separator $segmentVolume "
left+="$separator $segmentMemory "
left+="$separator $segmentDisk "
left+="$separator $segmentCPU "
left+="$separator $segmentSSID "
left+="$separator $segmentNet "
# left+="$separator $segmentUpdates "
left+="$separator "
echo -n $left
}
theme_rightside_top() {
# do not local $right
right="$separator $segmentDate $separator"
rightside_space 0
echo -n $right
echo
}
theme_rightside_bottom() {
# do not local $right
right=""
right+="$separator $segmentUptime "
right+="$separator $segmentMPD "
right+="$separator "
rightside_space 10
echo -n $right
echo
}
......@@ -5,12 +5,24 @@ tag_shows=( "一 ichi" "二 ni" "三 san" "四 shi"
# Four themes: [ 'dark-colorful', 'bright-colorful', 'dark-arrow', 'bright-arrow' ]
theme='dark-arrow'
theme='bright-arrow'
# initial
if [ -z $theme ]
then
theme='dark-colorful'
# dzen panel color
bgcolor=$colBlack
fgcolor=$colWhite
# default theme
separator="^bg()^fg($colWhite)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colBlue300)"
fi
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
......@@ -23,20 +35,6 @@ font_default="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*"
font_bottom="-*-terminus-bold-*-*-*-10-*-*-*-*-*-*-*"
font="-*-takaopgothic-medium-*-*-*-12-*-*-*-*-*-*-*"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel color
case $theme in
'bright-colorful' | 'bright-arrow')
bgcolor=$colWhite
fgcolor=$colBlack
;;
*) # 'dark-colorful' | 'dark-arrow'
bgcolor=$colBlack
fgcolor=$colWhite
;;
esac
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# decoration
......@@ -49,52 +47,6 @@ left_soft_arrow="^fn(powerlinesymbols-14)^fn()"
# http://fontawesome.io/
FontAwesome="^fn(FontAwesome-9)"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
case $theme in
'bright-arrow')
#plain
separator="^bg()^fg($colBlack)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey300)"
valueColor="^fg($colGrey900)"
;;
'dark-arrow')
#plain
separator="^bg()^fg($colWhite)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey900)"
valueColor="^fg($colGrey100)"
;;
'bright-colorful')
#plain
separator="^bg()^fg($colBlack)|^bg()^fg()"
preIcon="^fg($colPink700)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colBlue700)"
;;
*) # 'dark-colorful'
#plain
separator="^bg()^fg($colWhite)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colBlue300)"
;;
esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment