waybar: new groups and custom config for hyprland

This commit is contained in:
Aly Raffauf 2024-04-25 22:42:26 -04:00
parent 99119c2941
commit 181fbf50f8
3 changed files with 35 additions and 6 deletions

View file

@ -28,11 +28,7 @@
modules-center = ["clock"]; modules-center = ["clock"];
modules-right = [ modules-right = [
"tray" "tray"
"bluetooth" "group/hardware"
"pulseaudio"
"power-profiles-daemon"
"battery"
"custom/logout"
]; ];
"hyprland/workspaces" = { "hyprland/workspaces" = {
"all-outputs" = true; "all-outputs" = true;
@ -149,6 +145,10 @@
"power-saver" = "󰌪"; "power-saver" = "󰌪";
}; };
}; };
"group/hardware" = {
"orientation" = "horizontal";
modules = ["bluetooth" "pulseaudio" "power-profiles-daemon" "battery" "custom/logout"];
};
}; };
}; };
}; };

View file

@ -71,6 +71,8 @@
extraPortals = [pkgs.xdg-desktop-portal-hyprland]; extraPortals = [pkgs.xdg-desktop-portal-hyprland];
}; };
xdg.configFile."waybar/hyprland-style.css".source = ./waybar.css;
programs.waybar.settings = { programs.waybar.settings = {
mainBar = { mainBar = {
modules-left = ["hyprland/workspaces" "hyprland/submap"]; modules-left = ["hyprland/workspaces" "hyprland/submap"];
@ -89,7 +91,7 @@
terminal = pkgs.alacritty + "/bin/alacritty"; terminal = pkgs.alacritty + "/bin/alacritty";
# Hyprland desktop utilities # Hyprland desktop utilities
bar = pkgs.waybar + "/bin/waybar"; bar = pkgs.waybar + "/bin/waybar -s ${config.xdg.configHome}/waybar/hyprland-style.css";
launcher = pkgs.fuzzel + "/bin/fuzzel"; launcher = pkgs.fuzzel + "/bin/fuzzel";
notifyd = pkgs.mako + "/bin/mako"; notifyd = pkgs.mako + "/bin/mako";
wallpaperd = pkgs.hyprpaper + "/bin/hyprpaper"; wallpaperd = pkgs.hyprpaper + "/bin/hyprpaper";

View file

@ -0,0 +1,27 @@
@import url("style.css");
/* Style overrides for sway */
window#waybar {
background: rgba (35, 38, 52, 0.0);
}
#workspaces,
#submap,
#tray,
#clock,
#hardware
{
border-radius: 10;
background: rgba (35, 38, 52, 0.8);
margin: 5px 10px 0px 10px;
padding: 0px 10px 0px 10px;
}
#clock {
padding: 0px 20px 0px 20px;
}
/* #workspaces {
padding: 0px 5px;
} */