mirror of https://github.com/E-Almqvist/dotfiles
parent
0c1da98fbe
commit
8e1a52e29e
@ -1,34 +1,36 @@ |
|||||||
{ config, pkgs, ... }: |
{ config, pkgs, ... }: |
||||||
|
|
||||||
|
let |
||||||
|
fullScriptPath = ".scripts/skhd-daemon.sh"; |
||||||
|
in |
||||||
{ |
{ |
||||||
# service |
home.file."Library/LaunchAgents/org.skhdos.autostart.plist" = { |
||||||
home.file."Library/LaunchAgents/org.nixos.skhd.plist" = { |
|
||||||
text = '' |
text = '' |
||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||||
<plist version="1.0"> |
<plist version="1.0"> |
||||||
<dict> |
<dict> |
||||||
<key>Label</key> |
<key>Label</key> |
||||||
<string>org.nixos.skhd</string> |
<string>org.skhdos.autostart</string> |
||||||
<key>ProgramArguments</key> |
<key>ProgramArguments</key> |
||||||
<array> |
<array> |
||||||
<string>${pkgs.skhd}/bin/skhd</string> |
<string>${pkgs.bash}/bin/bash</string> |
||||||
|
<string>${fullScriptPath}</string> |
||||||
</array> |
</array> |
||||||
<key>EnvironmentVariables</key> |
|
||||||
<dict> |
|
||||||
<key>PATH</key> |
|
||||||
<string>${pkgs.skhd}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> |
|
||||||
</dict> |
|
||||||
<key>RunAtLoad</key> |
<key>RunAtLoad</key> |
||||||
<true/> |
<true/> |
||||||
<key>KeepAlive</key> |
<key>KeepAlive</key> |
||||||
<true/> |
<false/> |
||||||
<key>StandardOutPath</key> |
|
||||||
<string>${config.home.homeDirectory}/.skhd.out.log</string> |
|
||||||
<key>StandardErrorPath</key> |
|
||||||
<string>${config.home.homeDirectory}/.skhd.err.log</string> |
|
||||||
</dict> |
</dict> |
||||||
</plist> |
</plist> |
||||||
''; |
''; |
||||||
}; |
}; |
||||||
|
|
||||||
|
home.file."${fullScriptPath}" = { |
||||||
|
text = '' |
||||||
|
skhd --start-service |
||||||
|
''; |
||||||
|
executable = true; |
||||||
|
}; |
||||||
} |
} |
||||||
|
|
||||||
|
@ -1,34 +1,36 @@ |
|||||||
{ config, pkgs, ... }: |
{ config, pkgs, ... }: |
||||||
|
|
||||||
|
let |
||||||
|
fullScriptPath = ".scripts/yabai-daemon.sh"; |
||||||
|
in |
||||||
{ |
{ |
||||||
# service |
home.file."Library/LaunchAgents/org.yabaios.autostart.plist" = { |
||||||
home.file."Library/LaunchAgents/org.nixos.yabai.plist" = { |
|
||||||
text = '' |
text = '' |
||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||||
<plist version="1.0"> |
<plist version="1.0"> |
||||||
<dict> |
<dict> |
||||||
<key>Label</key> |
<key>Label</key> |
||||||
<string>org.nixos.yabai</string> |
<string>org.yabaios.autostart</string> |
||||||
<key>ProgramArguments</key> |
<key>ProgramArguments</key> |
||||||
<array> |
<array> |
||||||
<string>${pkgs.yabai}/bin/yabai</string> |
<string>${pkgs.bash}/bin/bash</string> |
||||||
|
<string>${fullScriptPath}</string> |
||||||
</array> |
</array> |
||||||
<key>EnvironmentVariables</key> |
|
||||||
<dict> |
|
||||||
<key>PATH</key> |
|
||||||
<string>${pkgs.yabai}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> |
|
||||||
</dict> |
|
||||||
<key>RunAtLoad</key> |
<key>RunAtLoad</key> |
||||||
<true/> |
<true/> |
||||||
<key>KeepAlive</key> |
<key>KeepAlive</key> |
||||||
<true/> |
<false/> |
||||||
<key>StandardOutPath</key> |
|
||||||
<string>${config.home.homeDirectory}/.yabai.out.log</string> |
|
||||||
<key>StandardErrorPath</key> |
|
||||||
<string>${config.home.homeDirectory}/.yabai.err.log</string> |
|
||||||
</dict> |
</dict> |
||||||
</plist> |
</plist> |
||||||
''; |
''; |
||||||
}; |
}; |
||||||
|
|
||||||
|
home.file."${fullScriptPath}" = { |
||||||
|
text = '' |
||||||
|
yabai --start-service |
||||||
|
''; |
||||||
|
executable = true; |
||||||
|
}; |
||||||
} |
} |
||||||
|
|
||||||
|
Loading…
Reference in new issue