Simplify aerospace launchd config and remove menu bar hiding
- Remove menu bar hiding code (no longer needed for SketchyBar) - Use built-in programs.aerospace.launchd.enable instead of custom agent - Remove redundant launchd.agents.aerospace configuration block
This commit is contained in:
@@ -169,15 +169,6 @@ in
|
|||||||
"Redo" = "@$z"; # Cmd+Shift+Z
|
"Redo" = "@$z"; # Cmd+Shift+Z
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
# Hide macOS menu bar when SketchyBar is enabled
|
|
||||||
# Note: Requires logout/login to take effect
|
|
||||||
(mkIf cfg.sketchybar.enable {
|
|
||||||
NSGlobalDomain = {
|
|
||||||
_HIHideMenuBar = true;
|
|
||||||
AppleMenuBarVisibleInFullscreen = false;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Install aerospace package and optional tools if enabled
|
# Install aerospace package and optional tools if enabled
|
||||||
@@ -187,6 +178,7 @@ in
|
|||||||
|
|
||||||
# Enable and configure aerospace
|
# Enable and configure aerospace
|
||||||
programs.aerospace.enable = true;
|
programs.aerospace.enable = true;
|
||||||
|
programs.aerospace.launchd.enable = cfg.launchd.enable;
|
||||||
programs.aerospace.userSettings = mkMerge [
|
programs.aerospace.userSettings = mkMerge [
|
||||||
# Default configuration with leader key substitution
|
# Default configuration with leader key substitution
|
||||||
{
|
{
|
||||||
@@ -315,18 +307,6 @@ in
|
|||||||
cfg.userSettings
|
cfg.userSettings
|
||||||
];
|
];
|
||||||
|
|
||||||
# Launchd agent for auto-starting aerospace
|
|
||||||
launchd.agents.aerospace = mkIf cfg.launchd.enable {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
Program = "${pkgs.aerospace}/Applications/AeroSpace.app/Contents/MacOS/AeroSpace";
|
|
||||||
RunAtLoad = true;
|
|
||||||
KeepAlive = true;
|
|
||||||
StandardOutPath = "/tmp/aerospace.log";
|
|
||||||
StandardErrorPath = "/tmp/aerospace.err.log";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Launchd agent for autoraise
|
# Launchd agent for autoraise
|
||||||
launchd.agents.autoraise = mkIf cfg.autoraise.enable {
|
launchd.agents.autoraise = mkIf cfg.autoraise.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user