Skip to content

Instantly share code, notes, and snippets.

@LogIN-
Created November 21, 2022 20:28
Show Gist options
  • Save LogIN-/cd7bd58b814ba8d926bd482485007ef3 to your computer and use it in GitHub Desktop.
Save LogIN-/cd7bd58b814ba8d926bd482485007ef3 to your computer and use it in GitHub Desktop.
#!/bin/bash
## Trick Slack on Linux to always have active status
## Get current pointer location
## xdotool getmouselocation
i=0
while [ 1 ]; do
## Move to Outlook
xdotool mousemove 818 38 click 1
sleep 1
## Focus URL Bar
xdotool mousemove 495 79 click 1
## Select all
xdotool key ctrl+a BackSpace
sleep 1
xdotool type --delay 100 "Tricked SLACK: $i time(s)"
sleep 15
## Move to SLACK
xdotool mousemove 563 42 click 1
sleep 15
i=$((i+1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment