{ ... }: { programs.waybar = { enable = true; settings = [ { layer = "top"; position = "top"; modules-left = [ "hyprland/workspaces" ]; modules-center = [ "hyprland/window" ]; modules-right = [ "tray" "custom/exit" "pulseaudio" "network" "battery" "clock" ]; "hyprland/workspaces" = { format = "{name}"; format-icons = { default = " "; active = " "; urgent = " "; }; }; "clock" = { format = '' {:L%H:%M}''; tooltip = true; tooltip-format = "{:%A, %d.%B %Y }\n{calendar}"; }; "hyprland/window" = { max-length = 22; separate-outputs = false; icon = true; icon-size = 18; }; "network" = { format-icons = [ "󰤯 " "󰤟 " "󰤢 " "󰤥 " "󰤨 " ]; format-ethernet = " {bandwidthDownOctets}"; format-wifi = "{icon} {essid}"; format-disconnected = "󰤮 "; tooltip = true; tooltip-format = "ip : {ipaddr}\nstrength : {signaldBm}dBm"; on-click = "nm-connection-editor"; }; "tray" = { spacing = 12; }; "pulseaudio" = { format = "{icon} {volume}% {format_source}"; format-bluetooth = "{volume}% {icon} {format_source}"; format-bluetooth-muted = " {icon} {format_source}"; format-muted = " {format_source}"; format-source = " {volume}%"; format-source-muted = " "; format-icons = { headphone = " "; hands-free = " "; headset = " "; phone = " "; portable = " "; car = " "; default = [ " " " " " " ]; }; on-click = "pavucontrol"; }; "custom/exit" = { tooltip = false; format = " "; on-click = "shutdown now"; }; "battery" = { states = { warning = 30; critical = 15; }; format = "{icon} {capacity}%"; format-charging = "󰂄 {capacity}%"; format-plugged = "󱘖 {capacity}%"; format-icons = [ "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; tooltip = false; }; } ]; style = '' * { border: none; font-family: Ubuntu Nerd Font; font-size: 13px; border-radius: 0px; background: transparent; min-height: 0px; color: white; } tooltip { color: white; background: black; } window#waybar { margin: 5px 0 0 0; background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); color: black; } #window { font-weight: bold; } #workspaces button { padding: 0 5px; background: transparent; color: white; border-top: 2px solid transparent; } #workspaces button.focused { background: #64727D; border-bottom: 3px solid white; } #workspaces button.active { border-bottom: 1px solid white; } #clock, #battery, #network, #pulseaudio, #tray { padding: 0 3px; margin: 0 2px; } #clock { font-weight: bold; } #battery { } #battery.charging { } #cpu { } #memory { } #network { } #pulseaudio { } #pulseaudio.muted { } #tray { } ''; }; }