aboutsummaryrefslogtreecommitdiff
path: root/hosts/RyanMac/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/RyanMac/configuration.nix')
-rw-r--r--hosts/RyanMac/configuration.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/hosts/RyanMac/configuration.nix b/hosts/RyanMac/configuration.nix
index bb6bafc..1327c91 100644
--- a/hosts/RyanMac/configuration.nix
+++ b/hosts/RyanMac/configuration.nix
@@ -1,4 +1,4 @@
1{ pkgs, inputs, lib, ... }: 1{ config, pkgs, inputs, lib, ... }:
2let 2let
3 username = "ryan"; 3 username = "ryan";
4 4
@@ -86,6 +86,21 @@ in {
86 }; 86 };
87 extraConfig = '' 87 extraConfig = ''
88 yabai -m rule --add app='System Settings' manage=off 88 yabai -m rule --add app='System Settings' manage=off
89 ''
90 # Add simple-bar signals if enabled
91 + lib.optionalString config.home-manager.users.${username}.ryan.simple-bar.enable ''
92 yabai -m signal --add event=window_focused action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows when focused application changes"
93 yabai -m signal --add event=window_resized action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows when a window is resized"
94 yabai -m signal --add event=window_destroyed action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-ba spaces & windows when an application window is closed"
95 yabai -m signal --add event=space_changed action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows on space change"
96 yabai -m signal --add event=display_changed action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows on display focus change"
97 yabai -m signal --add event=window_title_changed action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows when current window title changes"
98 yabai -m signal --add event=space_destroyed action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows on space removal"
99 yabai -m signal --add event=space_created action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows on space creation"
100 yabai -m signal --add event=application_activated action="curl http://localhost:7776/yabai/spaces/refresh && curl http://localhost:7776/yabai/windows/refresh" label="Refresh simple-bar spaces & windows when application is activated"
101 yabai -m signal --add event=display_added action="curl http://localhost:7776/yabai/displays/refresh" label="Refresh simple-bar displays when a new dispay is added"
102 yabai -m signal --add event=display_removed action="curl http://localhost:7776/yabai/displays/refresh" label="Refresh simple-bar displays when a dispay is removed"
103 yabai -m signal --add event=display_moved action="curl http://localhost:7776/yabai/displays/refresh" label="Refresh simple-bar displays when a dispay is moved"
89 ''; 104 '';
90 }; 105 };
91 106
@@ -157,6 +172,7 @@ in {
157 "ungoogled-chromium" 172 "ungoogled-chromium"
158 "tailscale-app" 173 "tailscale-app"
159 "netbird-ui" 174 "netbird-ui"
175 "ubersicht"
160 ]; 176 ];
161 }; 177 };
162 178