-
Notifications
You must be signed in to change notification settings - Fork 15
terminal needs to stay open for undot to work #1
Comments
You could probably execute
as a shell script, and run that shell script with a macOS LaunchAgent, setting the agent to: run at load & always keep alive. |
ok |
I've since built two AppleScript apps, one to start undot and one to stop it and the bash background process, I'm in the process of refining them, at which point I will for this repo and include those scripts and apps |
You could also create a shell script for xbar: https://github.com/matryer/xbar … that way you'd have |
Gosh bless you m#ther f$#ker! thanks! |
I personally added this script in Preferences > Users > Login items #!/bin/bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
nohup bash -c "while :; do $SCRIPT_DIR/undot/undot; sleep 1; done" </dev/null >/dev/null 2>&1 & |
Stupid question, but how do I add a script to Login items? |
Create a file name yourscript.sh somewhere (I put mine in ~/Scripts), then in login items you can click the + arrow to add the shell script to be launch at login. The only downside to my script is that it'll show a terminal when first logging in after a boot for a very short time. |
I used the script with automator to create an app. Give the app accessibility privileges and set to startup on login. Works perfectly! EDIT: Open app on startup doesn't work consistently for some reason. So I put the Automator app that runs the bash script in the dock and just open when I need to. |
I've made a few changes so that:
Give it a shot and let me know how it works! I'm going to close this bug, but feel free to keep commenting, and I'll reopen it if it doesn't resolve the issue. |
thank you so much @s4y !!! |
it seems terminal needs to stay open/active, is there another way to run this? preferably using a menu bar app to turn the function on/off when a user wants?
other than that, it works brilliantly, stupid dot finally gone when I don't want it in full screen
haha... if I read the script right, the dot is not gone but undot merely moves its position outside of the screen real-estate :_) Amazing!
The text was updated successfully, but these errors were encountered: