abcd
February 13, 2023, 4:32pm
#1
Close notification with keyboard shortcut! (no need to open notifications center)
Find the position of the little "x" button on the notification, for me that's 1324,20 on a MacBook Air.
Install cliclick (brew install cliclick
)
Use this as a shell script:
POS=$(/opt/homebrew/bin/cliclick p)
/opt/homebrew/bin/cliclick c:1324,20
/opt/homebrew/bin/cliclick m:$POS
Or you can use the "Close All Notification Alerts" predefined action that is included in BTT
2 Likes
abcd
February 13, 2023, 7:11pm
#3
I spent 2 hours figuring out how to do this ='( Thanks though lol
also note you can use BTT's "move mouse to position" and leftclick actions to click anywhere on your screen. So you would not need click click eben when doing it like this