diff options
Diffstat (limited to 'modules/home-manager')
| -rw-r--r-- | modules/home-manager/waybar.nix | 130 |
1 files changed, 125 insertions, 5 deletions
diff --git a/modules/home-manager/waybar.nix b/modules/home-manager/waybar.nix index c35bc75..a66aff3 100644 --- a/modules/home-manager/waybar.nix +++ b/modules/home-manager/waybar.nix @@ -1,16 +1,136 @@ -{ config, ... }: { +{ config, inputs, ... }: { + xdg.configFile."waybar/themes".source = "${inputs.catppuccin-waybar}/themes"; programs.waybar = { enable = true; systemd.enable = true; systemd.target = "hyprland-session.target"; + style = '' + @import "themes/mocha.css"; + + * { + font-family: FantasqueSansMono Nerd Font; + font-size: 17px; + min-height: 0; + } + + #waybar { + background: transparent; + color: @text; + margin: 5px 5px; + } + + #workspaces { + border-radius: 1rem; + margin: 5px; + background-color: @surface0; + margin-left: 1rem; + } + + #workspaces button { + color: @lavender; + border-radius: 1rem; + padding: 0.4rem; + } + + #workspaces button.active { + color: @sky; + border-radius: 1rem; + } + + #workspaces button:hover { + color: @sapphire; + border-radius: 1rem; + } + + #tray, + #clock, + #idle_inhibitor + #battery, + #pulseaudio, + #bluetooth, + #network, + #cpu, + #temperature, + #memory { + background-color: @surface0; + padding: 0.25rem 0.5rem; + margin: 5px 0; + } + + #clock { + color: @blue; + border-radius: 1rem 1rem 1rem 1rem; + margin-right: 1rem; + } + + #idle_inhibitor { + color: @peach; + border-radius: 0px 1rem 1rem 0px; + } + + #battery { + color: @teal; + } + + #battery.charging { + color: @green; + } + + #battery.warning:not(.charging) { + color: @red; + } + + #backlight { + color: @yellow; + } + + #backlight, #battery { + border-radius: 0; + } + + #pulseaudio { + color: @maroon; + border-radius: 1rem 0px 0px 1rem; + margin-left: 1rem; + } + + #bluetooth { + color: @sapphire; + } + + #network { + color: @lavender; + } + + #cpu { + color: @blue; + border-radius: 1rem 0px 0px 1rem; + } + + #temperature { + color: @yellow; + } + + #memory { + color: @sky; + border-radius: 0px 1rem 1rem 0px; + margin-right: 1rem; + } + + + #tray { + margin-right: 1rem; + border-radius: 1rem; + } + ''; settings = { mainBar = { layer = "top"; position = "top"; - height = 40; + height = 48; modules-left = [ "hyprland/workspaces" ]; - modules-center = [ "clock" ]; - modules-right = [ "idle_inhibitor" "pulseaudio" "bluetooth" "network" "backlight/slider" "battery" "cpu" "temperature" "memory" "keyboard_state" "tray" ]; + modules-center = [ "clock" "backlight/slider" "idle_inhibitor" ]; + modules-right = [ "pulseaudio" "bluetooth" "network" "battery" "cpu" "temperature" "memory" "tray" ]; "tray" = { icon-size = 21; @@ -119,7 +239,7 @@ format = "{temperatureC}°C "; }; "keyboard-state" = { - numlock = true; + # numlock = true; capslock = true; "format" = { numlock = "N {icon}"; |
