statusbar: change state icons
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
This commit is contained in:

committed by
Willow Barraco

parent
25ccec4417
commit
4d9e408bae
@@ -191,3 +191,9 @@ icon_bat_0=""
|
|||||||
icon_bat_1=""
|
icon_bat_1=""
|
||||||
icon_bat_2=""
|
icon_bat_2=""
|
||||||
icon_bat_3=""
|
icon_bat_3=""
|
||||||
|
|
||||||
|
# sxmo state indicators
|
||||||
|
icon_state_proximity=""
|
||||||
|
icon_state_screenoff=""
|
||||||
|
icon_state_lock=""
|
||||||
|
icon_state_unlock=""
|
||||||
|
@@ -30,16 +30,16 @@ set_state() {
|
|||||||
STATE_LABEL="$(cat "$SXMO_STATE")"
|
STATE_LABEL="$(cat "$SXMO_STATE")"
|
||||||
case "$STATE_LABEL" in
|
case "$STATE_LABEL" in
|
||||||
proximity*)
|
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)
|
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)
|
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)
|
unlock)
|
||||||
sxmobar -a -e bold state 90 "$icon_dof" # open circle
|
sxmobar -a -e bold state 90 "$icon_state_unlock" # open circle
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user