Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env sh
- # NAME showPanel
- # PURPOSE Show a hidden panel, by programmatically moving the mouse.
- # This script should be assigned to a keyboard shortcut (via Mint's Settings).
- # I found that super-space did not work (for some reason). Super + Alt did work.
- # NEEDS dash
- # xdotool (sudo apt install xdotool)
- # my 'lock' library
- # NB
- # The sleeping and the locking are to stop the tool being trigged too often.
- LC_ALL=C
- set -o nounset
- readonly path_lib='/usr/bin/lib'
- # shellcheck source=/usr/bin/lib/lock
- . "${path_lib}/lock"
- lock_file_lock
- xdotool mousemove 1280 0 || lock_file_exitDirtily
- # 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.
- sleep 1
- lock_file_exitCleanly
- # EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement