From 4d9e408baef1e1e9e150fd401fb6b3670b46eb2f Mon Sep 17 00:00:00 2001 From: Peter John Hartman Date: Wed, 29 Mar 2023 07:40:06 -0500 Subject: [PATCH] statusbar: change state icons Signed-off-by: Willow Barraco --- configs/default_hooks/sxmo_hook_icons.sh | 6 ++++++ configs/default_hooks/sxmo_hook_statusbar.sh | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/configs/default_hooks/sxmo_hook_icons.sh b/configs/default_hooks/sxmo_hook_icons.sh index 102e296..d19d4d5 100755 --- a/configs/default_hooks/sxmo_hook_icons.sh +++ b/configs/default_hooks/sxmo_hook_icons.sh @@ -191,3 +191,9 @@ icon_bat_0="󰂎" icon_bat_1="󱊡" icon_bat_2="󱊢" icon_bat_3="󱊣" + +# sxmo state indicators +icon_state_proximity="" +icon_state_screenoff="" +icon_state_lock="" +icon_state_unlock="" diff --git a/configs/default_hooks/sxmo_hook_statusbar.sh b/configs/default_hooks/sxmo_hook_statusbar.sh index 233ebc4..a9a4ffd 100755 --- a/configs/default_hooks/sxmo_hook_statusbar.sh +++ b/configs/default_hooks/sxmo_hook_statusbar.sh @@ -30,16 +30,16 @@ set_state() { STATE_LABEL="$(cat "$SXMO_STATE")" case "$STATE_LABEL" in proximity*) - sxmobar -a -e bold -f orange state 90 "$icon_dop" # circle with dot + sxmobar -a -e bold -f orange state 90 "$icon_state_proximity" # circle with dot ;; screenoff) - sxmobar -a -e bold -f red state 90 "$icon_don" # filled circle + sxmobar -a -e bold -f red state 90 "$icon_state_screenoff" # filled circle ;; lock) - sxmobar -a -e bold -f red state 90 "$icon_dof" # open circle + sxmobar -a -e bold -f red state 90 "$icon_state_lock" # open circle with slash ;; unlock) - sxmobar -a -e bold state 90 "$icon_dof" # open circle + sxmobar -a -e bold state 90 "$icon_state_unlock" # open circle ;; esac }