Advertisement
Guest User

showPanel

a guest
Jun 25th, 2022
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | None | 0 0
  1. #!/usr/bin/env sh
  2. # NAME          showPanel
  3. # PURPOSE       Show a hidden panel, by programmatically moving the mouse.
  4. #               This script should be assigned to a keyboard shortcut (via Mint's Settings).
  5. #               I found that super-space did not work (for some reason). Super + Alt did work.
  6. # NEEDS         dash
  7. #               xdotool (sudo apt install xdotool)
  8. #               my 'lock' library
  9. # NB
  10. #               The sleeping and the locking are to stop the tool being trigged too often.
  11.  
  12. LC_ALL=C
  13. set -o nounset
  14.  
  15. readonly path_lib='/usr/bin/lib'
  16.  
  17. # shellcheck source=/usr/bin/lib/lock
  18. . "${path_lib}/lock"
  19.  
  20. lock_file_lock
  21.  
  22. xdotool mousemove 1280 0 || lock_file_exitDirtily
  23. # Replace the first integer above with a value representing the horizontal middle of your screen (or indeed a different horizontal position, if you like). Change the '0' to a value representing the top of your screen, if you want to open a panel that lives at the bottom of the screen.
  24.  
  25. sleep 1
  26. lock_file_exitCleanly
  27.  
  28. # EOF
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement