sxmo: better integrate the status components into waybar
maybe i'll remove all the sxmo-specific logic eventually: it seems generalizable
This commit is contained in:
parent
181f9597c2
commit
200b0dcf7c
|
@ -6,7 +6,15 @@
|
||||||
|
|
||||||
modules-left = [ "sway/workspaces" ];
|
modules-left = [ "sway/workspaces" ];
|
||||||
modules-center = [ ];
|
modules-center = [ ];
|
||||||
modules-right = [ "custom/swaync" "custom/sxmo" ];
|
modules-right = [
|
||||||
|
"custom/swaync"
|
||||||
|
"clock"
|
||||||
|
"battery"
|
||||||
|
# "custom/sxmo/modem-state"
|
||||||
|
"custom/sxmo/modem-tech"
|
||||||
|
"custom/sxmo/modem-signal"
|
||||||
|
"custom/sxmo/wifi"
|
||||||
|
];
|
||||||
|
|
||||||
"sway/workspaces" = {
|
"sway/workspaces" = {
|
||||||
all-outputs = true;
|
all-outputs = true;
|
||||||
|
@ -21,11 +29,47 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
"custom/sxmo" = {
|
"custom/sxmo" = {
|
||||||
# this gives wifi state, batter, mic/speaker, lockstate, time all as one widget.
|
# this gives wifi state, battery, mic/speaker, lockstate, time all as one widget.
|
||||||
# a good starting point, but may want to split these apart later to make things configurable.
|
# a good starting point, but may want to split these apart later to make things configurable.
|
||||||
# e.g. distinct vol-up & vol-down buttons next to the speaker?
|
# the values for this bar are computed in sxmo:configs/default_hooks/sxmo_hook_statusbar.sh
|
||||||
exec = "sxmo_status.sh";
|
exec = "sxmo_status.sh";
|
||||||
interval = 1;
|
interval = 1;
|
||||||
format = "{}";
|
format = "{}";
|
||||||
};
|
};
|
||||||
|
# not ported: battery, ethernet
|
||||||
|
"custom/sxmo/modem-state" = {
|
||||||
|
exec = "cat /run/user/1000/sxmo_status/default/10-modem-state";
|
||||||
|
interval = 2;
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
|
"custom/sxmo/modem-tech" = {
|
||||||
|
exec = "cat /run/user/1000/sxmo_status/default/11-modem-tech";
|
||||||
|
interval = 2;
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
|
"custom/sxmo/modem-signal" = {
|
||||||
|
exec = "cat /run/user/1000/sxmo_status/default/12-modem-signal";
|
||||||
|
interval = 2;
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
|
"custom/sxmo/wifi" = {
|
||||||
|
exec = "cat /run/user/1000/sxmo_status/default/30-wifi-status";
|
||||||
|
interval = 2;
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
|
"custom/sxmo/volume" = {
|
||||||
|
exec = "cat /run/user/1000/sxmo_status/default/50-volume";
|
||||||
|
interval = 2;
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
|
"custom/sxmo/state" = {
|
||||||
|
exec = "cat /run/user/1000/sxmo_status/default/90-state";
|
||||||
|
interval = 2;
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
|
"custom/sxmo/time" = {
|
||||||
|
exec = "cat /run/user/1000/sxmo_status/default/99-time";
|
||||||
|
interval = 2;
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user