feat: bar stuff

This commit is contained in:
2024-04-26 20:15:11 +02:00
parent 326de208d6
commit 1945a993c5
2 changed files with 25 additions and 3 deletions

View File

@@ -19,13 +19,35 @@ in
enable = true; enable = true;
settings = { settings = {
mainBar = { mainBar = {
modules-center = [ "clock" ]; height = 24;
reload_style_on_change = true;
exclusive = false;
modules-center = [
"clock"
"systemd-failed-units"
];
modules-right = [ modules-right = [
"privacy" "privacy"
"gamemode"
"tray" "tray"
"custom/theme"
#"network"
#"pulseaudio"
#"bluetooth"
]; ];
"custom/theme" = { }; "custom/theme" = {
return-type = "json";
exec = pkgs.writeShellScript "waybar-theme" ''
if [ $(theme mode) = "dark" ]; then
echo '{"text": "", "tooltip": "Switch to light theme"}'
else
echo '{"text": "", "tooltip": "Switch to dark theme"}'
fi
'';
on-click = "theme toggle";
};
}; };
}; };
systemd = lib.mkIf config.desktops.hyprland.enable { systemd = lib.mkIf config.desktops.hyprland.enable {

View File

@@ -107,7 +107,7 @@ in
reload_apps = true; reload_apps = true;
reload_apps_list = { reload_apps_list = {
kitty = homeCfg.programs.kitty.enable; kitty = homeCfg.programs.kitty.enable;
waybar = homeCfg.programs.waybar.enable; waybar = false;
dunst = homeCfg.services.dunst.enable; dunst = homeCfg.services.dunst.enable;
}; };