Tweak waybar config

This commit is contained in:
Nathan McCarty 2023-06-21 01:12:14 -04:00
parent e7b8db9d22
commit ab4eabc1bc
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 471 additions and 465 deletions

View File

@ -3,7 +3,30 @@ let
fuzzel-command = config.nathan.config.desktop.fuzzel-command;
targets = config.nathan.config.desktop.targets;
hyprland = config.nathan.programs.hyprland.enable;
in lib.mkIf hyprland {
in lib.mkMerge [
# Hyprland specific configuration
(lib.mkIf hyprland {
programs.waybar.settings.mainBar = {
modules-center = [
"custom/launcher"
"wlr/workspaces"
"custom/media"
# "hyprland/window"
"idle_inhibitor"
"pulseaudio"
"network"
"cpu"
"memory"
# "temperature"
"tray"
"custom/notification"
"clock"
# "custom/power"
];
};
})
# General configuration
(lib.mkIf hyprland {
#########################
## Waybar
#########################
@ -24,25 +47,6 @@ in lib.mkIf hyprland {
spacing = 0;
margin-top = 5;
margin-bottom = 0;
# modules-left = [ "wlr/workspaces" "hyprland/submap" ];
# modules-center = [ "hyprland/window" ];
# modules-right = [ "mpd" "clock" "tray" ];
modules-center = [
"custom/launcher"
"wlr/workspaces"
"custom/media"
# "hyprland/window"
"idle_inhibitor"
"pulseaudio"
"network"
"cpu"
"memory"
# "temperature"
"tray"
"custom/notification"
"clock"
# "custom/power"
];
"custom/launcher" = {
format = "";
on-click = fuzzel-command + " --prompt=' ' ";
@ -115,7 +119,8 @@ in lib.mkIf hyprland {
format-icons = {
notification = " <span foreground='red'><sup></sup></span> ";
none = " ";
dnd-notification = " <span foreground='red'><sup></sup></span> ";
dnd-notification =
" <span foreground='red'><sup></sup></span> ";
dnd-none = "";
inhibited-notification =
" <span foreground='red'><sup></sup></span> ";
@ -478,4 +483,5 @@ in lib.mkIf hyprland {
};
};
}
})
]