os/arch (lemonbar): use simple desktop icons
This commit is contained in:
parent
89521c45b9
commit
a24e0c4ec1
|
@ -85,6 +85,7 @@ parse() {
|
||||||
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc monitor -f ${name}:} ${name} %{A}%{B-}%{F-}"
|
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc monitor -f ${name}:} ${name} %{A}%{B-}%{F-}"
|
||||||
;;
|
;;
|
||||||
[fFoOuU]*)
|
[fFoOuU]*)
|
||||||
|
icon="$ICON_NONE"
|
||||||
case $id in
|
case $id in
|
||||||
f*) # free desktop
|
f*) # free desktop
|
||||||
_FG=$COLOR_FREE_FG
|
_FG=$COLOR_FREE_FG
|
||||||
|
@ -97,21 +98,25 @@ parse() {
|
||||||
o*) # occupied desktop
|
o*) # occupied desktop
|
||||||
_FG=$COLOR_OCCUPIED_FG
|
_FG=$COLOR_OCCUPIED_FG
|
||||||
_BG=$COLOR_OCCUPIED_BG
|
_BG=$COLOR_OCCUPIED_BG
|
||||||
|
icon="$ICON_FULL"
|
||||||
;;
|
;;
|
||||||
O*) # focused occupied desktop
|
O*) # focused occupied desktop
|
||||||
_FG=$COLOR_FOCUSED_OCCUPIED_FG
|
_FG=$COLOR_FOCUSED_OCCUPIED_FG
|
||||||
_BG=$COLOR_FOCUSED_OCCUPIED_BG
|
_BG=$COLOR_FOCUSED_OCCUPIED_BG
|
||||||
|
icon="$ICON_FULL"
|
||||||
;;
|
;;
|
||||||
u*) # urgent desktop
|
u*) # urgent desktop
|
||||||
_FG=$COLOR_URGENT_FG
|
_FG=$COLOR_URGENT_FG
|
||||||
_BG=$COLOR_URGENT_BG
|
_BG=$COLOR_URGENT_BG
|
||||||
|
icon="$ICON_FULL"
|
||||||
;;
|
;;
|
||||||
U*) # focused urgent desktop
|
U*) # focused urgent desktop
|
||||||
_FG=$COLOR_FOCUSED_URGENT_FG
|
_FG=$COLOR_FOCUSED_URGENT_FG
|
||||||
_BG=$COLOR_FOCUSED_URGENT_BG
|
_BG=$COLOR_FOCUSED_URGENT_BG
|
||||||
|
icon="$ICON_FULL"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
eval "icon=\$ICON_$(echo ${name#??} | tr '[:lower:]' '[:upper:]')"
|
# eval "icon=\$ICON_$(echo ${name#??} | tr '[:lower:]' '[:upper:]')"
|
||||||
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc desktop -f ${name}:} ${icon:-$name} %{A}%{B-}%{F-}"
|
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc desktop -f ${name}:} ${icon:-$name} %{A}%{B-}%{F-}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -2,10 +2,8 @@ PANEL_FIFO=/tmp/panel-fifo
|
||||||
|
|
||||||
# Customization ########################
|
# Customization ########################
|
||||||
PANEL_HEIGHT=28
|
PANEL_HEIGHT=28
|
||||||
# PANEL_FONT="FiraMono:size=7:antialias=true"
|
|
||||||
PANEL_FONT="terminus:size=8:antialias=false"
|
PANEL_FONT="terminus:size=8:antialias=false"
|
||||||
# ICON_FONT="siji:size=8:antialias=true"
|
ICON_FONT="siji:size=8:antialias=false"
|
||||||
ICON_FONT="siji:size=7:antialias=false"
|
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
|
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
|
||||||
|
@ -16,7 +14,7 @@ bg="$(xrdb -query | awk '/^\*\.background:/ {print $2}')"
|
||||||
fg="$(xrdb -query | awk '/^\*\.foreground:/ {print $2}')"
|
fg="$(xrdb -query | awk '/^\*\.foreground:/ {print $2}')"
|
||||||
|
|
||||||
COLOR_FG="$fg"
|
COLOR_FG="$fg"
|
||||||
COLOR_BG="#D9000000"
|
COLOR_BG="#D001040b"
|
||||||
# COLOR_BG="#DD${COLOR_0#?}"
|
# COLOR_BG="#DD${COLOR_0#?}"
|
||||||
|
|
||||||
COLOR_DIM="#155872"
|
COLOR_DIM="#155872"
|
||||||
|
@ -53,6 +51,10 @@ ICON_MEDIA=""
|
||||||
ICON_GAMES="" # ghost
|
ICON_GAMES="" # ghost
|
||||||
ICON_MISC=""
|
ICON_MISC=""
|
||||||
|
|
||||||
|
# panel center
|
||||||
|
ICON_NONE="\ue001"
|
||||||
|
ICON_FULL="\ue000"
|
||||||
|
|
||||||
# clock icons
|
# clock icons
|
||||||
ICON_DATE=""
|
ICON_DATE=""
|
||||||
ICON_TIME=""
|
ICON_TIME=""
|
||||||
|
|
Loading…
Reference in a new issue