{ config, ... }: { programs.waybar = { settings.main = { layer = "bottom"; position = "bottom"; modules-left = [ "sway/workspaces" ]; modules-center = [ "clock" ]; modules-right = [ "wireplumber" "battery" "backlight" "sway/language" "tray" ]; backlight = { format = "{icon}"; format-icons = [ "" "󰖨" ]; }; battery = { format = "{icon}"; format-critical = "{icon} {capacity}%"; format-icons = { good = [ "" ]; okay = [ "" ]; mediocre = [ "" ]; low = [ "" ]; critical = [ "" ]; }; format-low = "{icon} {capacity}%"; format-time = "{H}h{m}m"; states = { good = 85; okay = 75; mediocre = 50; low = 25; critical = 10; }; tooltip-format = "{timeTo} ({power}W)"; tooltip-format-critical = "please. charge me."; }; clock = { format = "{:%A, %b %d %Y | %H:%M}"; }; "sway/language" = { on-click = "swaymsg input type:keyboard xkb_switch_layout next"; tooltip-format = "{long}"; }; "sway/workspaces" = { all-outputs = true; disable-auto-back-and-forth = true; format = "{icon}"; format-icons = { "1" = "I"; "2" = "II"; "3" = "III"; "4" = "IV"; "5" = "V"; "6" = "VI"; "7" = "VII"; "8" = "VIII"; "9" = "IX"; }; }; wireplumber = { format = "{icon}"; format-icons = [ "󰕿" "󰖀" "󰕾" ]; format-muted = "󰝟"; tooltip-format = "{node_name} ({volume}%)"; }; }; style = builtins.readFile ./style.css; }; }