os/arch (lemonbar): use simple desktop icons

This commit is contained in:
Henrik Lissner 2016-12-24 19:13:10 -05:00
parent 89521c45b9
commit a24e0c4ec1
2 changed files with 12 additions and 5 deletions

View file

@ -85,6 +85,7 @@ parse() {
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc monitor -f ${name}:} ${name} %{A}%{B-}%{F-}"
;;
[fFoOuU]*)
icon="$ICON_NONE"
case $id in
f*) # free desktop
_FG=$COLOR_FREE_FG
@ -97,21 +98,25 @@ parse() {
o*) # occupied desktop
_FG=$COLOR_OCCUPIED_FG
_BG=$COLOR_OCCUPIED_BG
icon="$ICON_FULL"
;;
O*) # focused occupied desktop
_FG=$COLOR_FOCUSED_OCCUPIED_FG
_BG=$COLOR_FOCUSED_OCCUPIED_BG
icon="$ICON_FULL"
;;
u*) # urgent desktop
_FG=$COLOR_URGENT_FG
_BG=$COLOR_URGENT_BG
icon="$ICON_FULL"
;;
U*) # focused urgent desktop
_FG=$COLOR_FOCUSED_URGENT_FG
_BG=$COLOR_FOCUSED_URGENT_BG
icon="$ICON_FULL"
;;
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-}"
;;
esac

View file

@ -2,10 +2,8 @@ PANEL_FIFO=/tmp/panel-fifo
# Customization ########################
PANEL_HEIGHT=28
# PANEL_FONT="FiraMono:size=7:antialias=true"
PANEL_FONT="terminus:size=8:antialias=false"
# ICON_FONT="siji:size=8:antialias=true"
ICON_FONT="siji:size=7:antialias=false"
ICON_FONT="siji:size=8:antialias=false"
# Colors
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}')"
COLOR_FG="$fg"
COLOR_BG="#D9000000"
COLOR_BG="#D001040b"
# COLOR_BG="#DD${COLOR_0#?}"
COLOR_DIM="#155872"
@ -53,6 +51,10 @@ ICON_MEDIA=""
ICON_GAMES="" # ghost
ICON_MISC=""
# panel center
ICON_NONE="\ue001"
ICON_FULL="\ue000"
# clock icons
ICON_DATE=""
ICON_TIME=""