hyprland: updated waybar config

This commit is contained in:
Aly Raffauf 2024-03-24 01:14:40 -04:00
parent fd2222b036
commit 26ab6ef0ad
2 changed files with 43 additions and 2 deletions

View file

@ -15,6 +15,8 @@
overskride overskride
udiskie udiskie
xfce.thunar xfce.thunar
playerctl
pavucontrol
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
@ -24,6 +26,24 @@
xdg.configFile."hypr/hypridle.conf".source = ./dotfiles/hypridle.conf; xdg.configFile."hypr/hypridle.conf".source = ./dotfiles/hypridle.conf;
programs.waybar.enable = true; programs.waybar.enable = true;
programs.waybar.style = ''
* {
border: none;
border-radius: 0;
font-family: DroidSansM Nerd Font Mono;
}
window#waybar {
background: #000;
color: #FFFFFF;
}
#workspaces button {
padding: 5px 10px;
}
#clock, #battery, #pulseaudio, #network {
padding: 0 10px;
margin: 0 5px;
}
'';
programs.waybar.settings = { programs.waybar.settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";
@ -35,14 +55,34 @@
]; ];
modules-left = [ "hyprland/workspaces" "hyprland/mode" ]; modules-left = [ "hyprland/workspaces" "hyprland/mode" ];
modules-center = [ "hyprland/window" ]; modules-center = [ "hyprland/window" ];
modules-right = [ "tray" "battery" "clock"]; modules-right = [ "tray" "network" "pulseaudio" "battery" "clock"];
"hyprland/workspaces" = { "hyprland/workspaces" = {
all-outputs = true; all-outputs = true;
}; };
"clock" = { "clock" = {
"tooltip-format" = "{:%Y-%m-%d | %H:%M}";
"interval" = 60; "interval" = 60;
"format" = "{:%I:%M}"; "format" = "{:%I:%M%p}";
};
"battery" = {
"format" = " {capacity}%";
"on-click" = "pp-adjuster";
};
"pulseaudio" = {
"format" = " {volume}%";
"format-bluetooth" = "{volume}% {icon}";
"format-muted" = "";
"format-icons"= {
"headphones" = "";
"handsfree" = "";
"headset" = "";
};
"on-click" = "pavucontrol";
};
"network" = {
"format-wifi" = " {signalStrength}%";
"format-disconnected" = "";
}; };
}; };
}; };

View file

@ -55,6 +55,7 @@ in {
imports = imports =
[ [
../../modules/kde.nix ../../modules/kde.nix
../../modules/hyprland.nix
../../modules/plymouth.nix ../../modules/plymouth.nix
../../modules/zram_swap.nix ../../modules/zram_swap.nix
../../system ../../system