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;
settings = {
mainBar = {
modules-center = [ "clock" ];
height = 24;
reload_style_on_change = true;
exclusive = false;
modules-center = [
"clock"
"systemd-failed-units"
];
modules-right = [
"privacy"
"gamemode"
"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 {