Tweak waybar config
This commit is contained in:
parent
e7b8db9d22
commit
ab4eabc1bc
|
@ -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 {
|
|||
};
|
||||
};
|
||||
|
||||
}
|
||||
})
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue