Advertisement
Guest User

Untitled

a guest
Jul 13th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.64 KB | None | 0 0
  1. #!/bin/bash
  2. # audacious ~/Music/berserk/01-forces.mp3 &
  3. # sleep 20
  4. # playW=$(xdotool search --sync --onlyvisible --name "Susumu Hirasawa" getwindowname)
  5. # # echo $playW
  6. # if echo $playW | grep -q "Susumu Hirasawa" ; then
  7. #   xdotool search --sync --onlyvisible --name "Susumu Hirasawa" windowclose
  8.     alarm-clock-applet &
  9.     sleep 1
  10.     eval $(xdotool getmouselocation --shell)
  11.     mouse_coord_x=$X
  12.     mouse_coord_y=$Y
  13.     eval $(xdotool search --sync --onlyvisible --name "Alarms" getwindowgeometry --shell)
  14.     let X+=339
  15.     let Y+=31
  16.     xdotool mousemove $X $Y click 1
  17.     sleep 0.5
  18.     xdotool key Escape
  19.     xdotool mousemove $mouse_coord_x $mouse_coord_y
  20. # fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement