From a24e0c4ec10e42b060d004ea0d9631f0bccea089 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 24 Dec 2016 19:13:10 -0500 Subject: [PATCH] os/arch (lemonbar): use simple desktop icons --- os/arch/.config/panel/panel | 7 ++++++- os/arch/.config/panel/panel-config | 10 ++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/os/arch/.config/panel/panel b/os/arch/.config/panel/panel index 415cc1dc..24d611e5 100755 --- a/os/arch/.config/panel/panel +++ b/os/arch/.config/panel/panel @@ -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 diff --git a/os/arch/.config/panel/panel-config b/os/arch/.config/panel/panel-config index bc96b124..ace43ceb 100644 --- a/os/arch/.config/panel/panel-config +++ b/os/arch/.config/panel/panel-config @@ -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=""