2023-09-05 03:43:32 +00:00
|
|
|
# docs: https://github.com/Alexays/Waybar/wiki/Configuration
|
|
|
|
# format specifiers: https://fmt.dev/latest/syntax.html#syntax
|
|
|
|
# this is merged with the sway/waybar-top.nix defaults
|
|
|
|
{
|
2023-09-05 04:32:00 +00:00
|
|
|
height = 26;
|
|
|
|
|
2023-09-05 03:43:32 +00:00
|
|
|
modules-left = [ "sway/workspaces" ];
|
|
|
|
modules-center = [ ];
|
2023-09-07 01:27:30 +00:00
|
|
|
modules-right = [ "custom/swaync" "custom/sxmo" ];
|
2023-09-05 03:43:32 +00:00
|
|
|
|
|
|
|
"sway/workspaces" = {
|
|
|
|
all-outputs = true;
|
|
|
|
# force the bar to always show even empty workspaces
|
|
|
|
persistent_workspaces = {
|
|
|
|
"1" = [];
|
|
|
|
"2" = [];
|
|
|
|
"3" = [];
|
|
|
|
"4" = [];
|
|
|
|
"5" = [];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"custom/sxmo" = {
|
|
|
|
# this gives wifi state, batter, mic/speaker, lockstate, time all as one widget.
|
|
|
|
# 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?
|
|
|
|
exec = "sxmo_status.sh";
|
|
|
|
interval = 1;
|
|
|
|
format = "{}";
|
|
|
|
};
|
|
|
|
}
|