Last active
July 1, 2020 16:25
-
-
Save viniceosm/4e4c37e6d748c27cb5c73e13f87cbd0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pid_discord_hex=$(wmctrl -l | grep -i discord | awk '{print $1}'); | |
wmctrl -a $pid_discord_hex -i; | |
xdotool mousemove 97 1053; # btn icon, abre opcoes de status | |
xdotool click 1; | |
sleep 1 | |
xdotool mousemove 207 1003; # btn custom status | |
xdotool click 1; | |
sleep 1; | |
xdotool type --delay 1 "almoçando"; | |
xdotool key KP_Enter; | |
sleep 1; | |
xdotool mousemove 97 1053; # btn icon, abre opcoes de status | |
xdotool click 1; | |
sleep 1; | |
xdotool mousemove 172 804; # btn ausente | |
xdotool click 1; | |
# Espera 1 hora e 12 minutos | |
tempo_almoco=$(( 1.2 * 3600 * 1000 )) | |
sleep $tempo_almoco; # 1.2 horas em ms | |
# depois para ficar on dnv | |
xdotool mousemove 97 1053; # btn icon, abre opcoes de status | |
xdotool click 1; | |
sleep 1; | |
xdotool mousemove 271 998; # btn limpa custom status | |
xdotool click 1; | |
sleep 1; | |
xdotool mousemove 184 766; # btn disponivel | |
xdotool click 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment