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;
|
fuzzel-command = config.nathan.config.desktop.fuzzel-command;
|
||||||
targets = config.nathan.config.desktop.targets;
|
targets = config.nathan.config.desktop.targets;
|
||||||
hyprland = config.nathan.programs.hyprland.enable;
|
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
|
## Waybar
|
||||||
#########################
|
#########################
|
||||||
|
@ -24,25 +47,6 @@ in lib.mkIf hyprland {
|
||||||
spacing = 0;
|
spacing = 0;
|
||||||
margin-top = 5;
|
margin-top = 5;
|
||||||
margin-bottom = 0;
|
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" = {
|
"custom/launcher" = {
|
||||||
format = "";
|
format = "";
|
||||||
on-click = fuzzel-command + " --prompt='❯ ' ";
|
on-click = fuzzel-command + " --prompt='❯ ' ";
|
||||||
|
@ -115,7 +119,8 @@ in lib.mkIf hyprland {
|
||||||
format-icons = {
|
format-icons = {
|
||||||
notification = " <span foreground='red'><sup></sup></span> ";
|
notification = " <span foreground='red'><sup></sup></span> ";
|
||||||
none = " ";
|
none = " ";
|
||||||
dnd-notification = " <span foreground='red'><sup></sup></span> ";
|
dnd-notification =
|
||||||
|
" <span foreground='red'><sup></sup></span> ";
|
||||||
dnd-none = "";
|
dnd-none = "";
|
||||||
inhibited-notification =
|
inhibited-notification =
|
||||||
" <span foreground='red'><sup></sup></span> ";
|
" <span foreground='red'><sup></sup></span> ";
|
||||||
|
@ -478,4 +483,5 @@ in lib.mkIf hyprland {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
})
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in New Issue