_: { programs.waybar = { enable = true; systemd.enable = true; settings.main-bar = { layer = "top"; height = 20; tray.spacing = 5; clock = { format = "{:%a %b %d %I:%M %p}"; tooltip-format = "{:%Y %B}\n{calendar}"; }; modules-left = [ "hyprland/workspaces" "custom/separator" "temperature#cpu" "custom/gpu-temp" ]; modules-center = [ "clock" ]; modules-right = [ "tray" "mpris" "wireplumber" "wireplumber#microphone" ]; "hyprland/workspaces" = { format = "{icon}"; on-scroll-up = "hyprctl dispatch workspace e-1"; on-scroll-down = "hyprctl dispatch workspace e+1"; persistent-workspaces."*" = 10; # Show 5 workspaces on all monitors }; "custom/separator" = { format = "|"; tooltip = false; }; cava = { bars = 14; method = "pulse"; framerate = 20; bar_delimiter = 0; stereo = false; format-icons.default = [ "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█" ]; }; "temperature#cpu" = { interval = 2; format = " {temperatureC}°C"; critical-threshold = 80; hwmon-path = "/sys/class/hwmon/hwmon1/temp1_input"; tooltip-format = "CPU: {temperatureC}°C"; }; "custom/gpu-temp" = { exec = "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits"; format = "󰢮 {}°C"; interval = 2; tooltip-format = "GPU: {}°C"; }; mpris = { interval = 2; format = "{player_icon} {dynamic}"; format-paused = "{status_icon} {dynamic}"; dynamic-len = 40; on-click = "playerctl play-pause"; on-scroll-up = "playerctl next"; on-scroll-down = "playerctl previous"; dynamic-order = [ "title" "artist" ]; player-icons = { default = "🎵"; firefox = "🦊"; librewolf = "🦊"; }; status-icons = { paused = ""; playing = ""; }; }; wireplumber = { format = "{icon} {volume}%"; format-muted = "󰝟 muted"; scroll-step = 5; on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; format-icons.default = [ "󰕿" "󰖀" "󰕾" ]; }; "wireplumber#microphone" = { format = "{format_source}"; format-source = " {volume}%"; format-source-muted = ""; on-click = "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; on-scroll-up = "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+"; on-scroll-down = "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-"; tooltip-format = "{source_desc}"; }; }; }; }