Commit 7764557c authored by epsi sayidina's avatar epsi sayidina

dzen2: bash theming

parent 1323c372
......@@ -6,7 +6,7 @@
# Four themes: [ 'dark-colorful',
# 'bright-colorful', 'dark-arrow', 'bright-arrow' ]
theme='bright-arrow'
theme='bright-deco'
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# include
......
......@@ -79,11 +79,11 @@ setDate() {
local time=$(date +'%H:%M:%S')
case $theme in
'bright-arrow')
'bright-arrow' | 'bright-deco')
segmentDate=" $iconTime ^fg($colGrey200)$time, "
segmentDate+="$iconDate ^fg($colGrey500)$date-^fg($colGrey200)$day"
;;
'dark-arrow')
'dark-arrow' | 'dark-deco')
segmentDate=" $iconTime ^fg($colGrey200)$time, "
segmentDate+="$iconDate ^fg($colGrey500)$date-^fg($colGrey200)$day"
;;
......@@ -96,10 +96,10 @@ setDate() {
setMPD() {
case $theme in
'bright-arrow')
'bright-arrow' | 'bright-deco')
local format="^fg(#$colGrey900)[%artist% ^fg()- ]^fg(#$colGrey300)[%title%]"
;;
'dark-arrow')
'dark-arrow' | 'dark-deco')
local format="^fg(#$colGrey100)[%artist% ^fg()- ]^fg(#$colYellow500)[%title%]"
;;
'bright-colorful')
......
#!/usr/bin/env bash
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel parameters
bgcolor=$colWhite
fgcolor=$colBlack
alignment="l"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# 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_show() {
local text=""
text+=" ^bg($colRed200)^fg($colRed100)$deco_dc_tl"
text+=" $segmentVolume "
text+=" ^bg($colRed300)^fg($colRed200)$deco_dc_tl"
text+=" $segmentCPU "
text+=" ^bg($colRed400)^fg($colRed300)$deco_dc_tl"
text+=" $segmentMemory "
text+=" ^bg($colRed500)^fg($colRed400)$deco_dc_tl"
text+=" $segmentDisk "
text+=" ^bg($colRed600)^fg($colRed500)$deco_dc_tl"
text+=" $segmentSSID "
text+=" ^bg($colRed700)^fg($colRed600)$deco_dc_tl"
text+=" $segmentNet "
text+=" ^bg($colRed800)^fg($colRed700)$deco_dc_tl"
# text+=" $segmentUptime "
# text+=" $segmentHost "
# text+=" $segmentUpdates "
# text+=" $segmentDate "
# text+=" $segmentMPD "
text+=" ^bg($colRed900)^fg($colRed800)$deco_dc_tl"
text+=" "
text+=" ^bg($colWhite)^fg($colRed900)$deco_dc_tl"
echo -n $text
}
#!/usr/bin/env bash
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen panel parameters
bgcolor=$colBlack
fgcolor=$colWhite
alignment="l"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
#plain
separator="^bg()^fg($colWhite)|^bg()^fg()"
preIcon="^fg($colYellow500)$FontAwesome"
postIcon="^fn()^fg()"
labelColor="^fg($colGrey700)"
valueColor="^fg($colGrey300)"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# dzen2 panel parts
theme_show() {
local text=""
text+="^bg($colBlack)^fg($colBlue600)$deco_da_l"
text+="^bg($colBlue600)$segmentVolume "
text+="^bg($colBlack)^fg($colBlue600)$deco_da_r"
text+="^bg($colBlack) $segmentCPU "
text+="^bg($colBlack)^fg($colBlue400)$deco_da_l"
text+="^bg($colBlue400)$segmentMemory "
text+="^bg($colBlack)^fg($colBlue400)$deco_da_r"
text+="^bg($colBlack) $segmentDisk "
text+="^bg($colBlack)^fg($colBlue600)$deco_da_l"
text+="^bg($colBlue600)$segmentSSID "
text+="^bg($colBlack)^fg($colBlue600)$deco_da_r"
text+="^bg($colBlack) $segmentNet "
# text+="^bg($colBlack)^fg($colBlue800)$deco_da_l"
# text+=" $segmentUptime "
# text+=" $segmentHost "
# text+=" $segmentUpdates "
# text+=" $segmentDate "
# text+=" $segmentMPD "
text+=" "
echo -n $text
}
......@@ -20,6 +20,21 @@ left_soft_arrow="^fn(powerlinesymbols-14)^fn()"
# http://fontawesome.io/
FontAwesome="^fn(FontAwesome-9)"
# Glyph Icon Decoration
decopath="Documents/standalone/dzen2/assets/xbm"
# diagonal corner
deco_dc_tl="^i($decopath/dc-024-tl.xbm)"
deco_dc_tr="^i($decopath/dc-024-tr.xbm)"
deco_dc_bl="^i($decopath/dc-024-bl.xbm)"
deco_dc_br="^i($decopath/dc-024-br.xbm)"
# single arrow and double arrow
deco_sa_l="^i($decopath/sa-024-l.xbm)"
deco_sa_r="^i($decopath/sa-024-r.xbm)"
deco_da_l="^i($decopath/da-024-l.xbm)"
deco_da_r="^i($decopath/da-024-r.xbm)"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
# theme
......
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