mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
feat: bar stuff
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user