unmanbearpig / unmenu

GNU General Public License v3.0
5 stars 3 forks source link

create a launchAgent to keepAlive unmenu.app #18

Open aspauldingcode opened 1 month ago

aspauldingcode commented 1 month ago

My current setup is: zsh cat com.unmanbearpig.unmenu.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>KeepAlive</key>
    <dict>
        <key>Crashed</key>
        <true/>
        <key>SuccessfulExit</key>
        <false/>
    </dict>
    <key>Label</key>
    <string>com.unmanbearpig.unmenu</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Users/alex/Applications/Home Manager Trampolines/unmenu.app/Contents/MacOS/unmenu</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/tmp/unmenu.error.log</string>
    <key>StandardOutPath</key>
    <string>/tmp/unmenu.log</string>
</dict>
</plist>

But you need to change the location of the binary based on install location. For now, I've set under Home Manager Trampolines because that is where nix home-manager installs it for me using my custom nix derivation of unmenu defined with a custom Home-Manager Module.

aspauldingcode commented 1 month ago

This way, at login, I can press my keybind alt+d and immediately have access to unmenu.app features.