diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-25 14:46:01 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-25 14:46:01 +0530 |
| commit | 47a4bf5c092a70095a250eed0372835221905067 (patch) | |
| tree | 223d1b5e651eb03d2d49d2c220063855411f9396 /modules/desktop/waybar/style.nix | |
| parent | 282a085718b6cba16913771a80256040351d1746 (diff) | |
| download | home-manager-config-47a4bf5c092a70095a250eed0372835221905067.tar.gz home-manager-config-47a4bf5c092a70095a250eed0372835221905067.zip | |
feat(waybar): color icons with base16, refactor modules, polish bar styling
- Color individual module icons with base16 palette via iconColor param
- Refactor vpn module into writeShellScript for Pango markup support
- Switch window module from max-length to expand, fix-center to false
- Add persistent-workspaces to reserve workspaces across monitor changes
- Overhaul waybar CSS: borders, padding, hover/active workspace states
- Change memory display from {usedGb} GB to {percentage}%
Diffstat (limited to 'modules/desktop/waybar/style.nix')
| -rw-r--r-- | modules/desktop/waybar/style.nix | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/modules/desktop/waybar/style.nix b/modules/desktop/waybar/style.nix index 319b94f..5ec8070 100644 --- a/modules/desktop/waybar/style.nix +++ b/modules/desktop/waybar/style.nix @@ -7,23 +7,52 @@ with config.scheme.withHashtag; font-family: "${config.fonts.normal}"; font-size: ${toString config.fonts.size}px; min-height: 0; + margin: 0; + padding: 0; } - window#waybar { + #workspaces, #window, #pulseaudio, #battery, #custom-vpn, #network, + #clock.time, #memory, #cpu, #clock.date { background: ${base00}; - color: ${base05}; + margin: 0 2px; + } + + #workspaces { + border: none; + margin-left: 2.5px; + } + + #clock.date { + margin-right: 4.5px; + } + + #window, #pulseaudio, #battery, #custom-vpn, #network, + #clock.time, #memory, #cpu, #clock.date { + border: 1.5px solid ${base03}; + color: ${base07}; + padding: 0 8px; } #workspaces button { - padding: 0 4px; - color: ${base05}; + padding: 3px; + color: ${base07}; + border: 1.5px solid ${base03}; + border-radius: 0; + min-width: 24px; + min-height: 24px; + margin: 0 2px; + } + + #workspaces button:hover { + background: ${base01}; } - #workspaces button.focused { - border-bottom: 3px solid ${base0D}; + #workspaces button.active { + background: ${base03}; } #workspaces button.urgent { - border-bottom: 3px solid ${base08}; + background: ${base08}; + border-color: ${base08}; } '' |
