while true; do
currenttime=$(date +%H:%M) dow=$(date +%u) if [[ "$dow" < "6" ]]; then if [[ "$currenttime" > "00:00" ]] && [[ "$currenttime" < "09:00" ]]; then xdotool keydown ctrl+3; xdotool keyup ctrl+3; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi if [[ "$currenttime" > "09:00" ]] && [[ "$currenttime" < "13:00" ]]; then xdotool keydown ctrl+1; xdotool keyup ctrl+1; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi if [[ "$currenttime" > "13:00" ]] && [[ "$currenttime" < "15:00" ]]; then xdotool keydown ctrl+3; xdotool keyup ctrl+3; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi if [[ "$currenttime" > "15:00" ]] && [[ "$currenttime" < "19:00" ]]; then xdotool keydown ctrl+1; xdotool keyup ctrl+1; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi if [[ "$currenttime" > "19:00" ]] && [[ "$currenttime" < "00:00" ]]; then xdotool keydown ctrl+3; xdotool keyup ctrl+3; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi fi if [[ "$dow" = "6" ]]; then if [[ "$currenttime" > "00:00" ]] && [[ "$currenttime" < "10:00" ]]; then xdotool keydown ctrl+3; xdotool keyup ctrl+3; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi if [[ "$currenttime" > "10:00" ]] && [[ "$currenttime" < "13:00" ]]; then xdotool keydown ctrl+1; xdotool keyup ctrl+1; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi if [[ "$currenttime" > "13:00" ]] && [[ "$currenttime" < "00:00" ]]; then xdotool keydown ctrl+3; xdotool keyup ctrl+3; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi fi if [[ "$dow" = "7" ]]; then xdotool keydown ctrl+1; xdotool keyup ctrl+1; sleep 15 xdotool keydown ctrl+2; xdotool keyup ctrl+2; sleep 10 fi fi done |
|
Contactos
Contactos | Localização |