sxmo: waybar: include the volume sxmo status (i.e. microphone/headphones)
This commit is contained in:
@@ -59,6 +59,8 @@ window#waybar {
|
||||
#cpu,
|
||||
#custom-media,
|
||||
#custom-swaync,
|
||||
#custom-sxmo,
|
||||
#custom-sxmo-sane,
|
||||
#disk,
|
||||
#idle_inhibitor,
|
||||
#memory,
|
||||
|
@@ -9,6 +9,7 @@
|
||||
# - modem-tech
|
||||
# - modem-signal
|
||||
# - wifi-status
|
||||
# - volume
|
||||
|
||||
# sxmo_hook_statusbar.sh assumes:
|
||||
# - mmcli, jq on PATH
|
||||
@@ -68,6 +69,9 @@ setitem() {
|
||||
wifi-status)
|
||||
wifi_status="$value"
|
||||
;;
|
||||
volume)
|
||||
volume="$value"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -102,6 +106,12 @@ while [ -n "$*" ]; do
|
||||
fi
|
||||
echo -n "$wifi_status"
|
||||
;;
|
||||
"volume")
|
||||
if [ -z "$volume" ]; then
|
||||
eval "$(sxmo_hook_statusbar.sh volume)"
|
||||
fi
|
||||
echo -n "$volume"
|
||||
;;
|
||||
*)
|
||||
echo -n "UNK: $variable"
|
||||
;;
|
||||
|
@@ -43,7 +43,7 @@ in
|
||||
# so it works even without the "statusbar periodics" sxmo service running.
|
||||
interval = 2;
|
||||
format = "{}";
|
||||
exec = "${waybar-sxmo-status}/bin/waybar-sxmo-status modem-state modem-tech modem-signal wifi-status";
|
||||
exec = "${waybar-sxmo-status}/bin/waybar-sxmo-status modem-state modem-tech modem-signal wifi-status volume";
|
||||
};
|
||||
|
||||
"custom/sxmo" = {
|
||||
|
Reference in New Issue
Block a user