Skip to content

Instantly share code, notes, and snippets.

@excalq
Created July 23, 2012 16:55
Show Gist options
  • Save excalq/3164696 to your computer and use it in GitHub Desktop.
Save excalq/3164696 to your computer and use it in GitHub Desktop.
Using Back/Forward Mouse/Keyboard media keys to change Tmux/Screen Windows
# These two shortcuts allow your media keyboard or mouse's back/forward keys to change windows in screen.
# This is designed to work with tmux or screen (using ctrl+a as the command shortcut) inside a Guake terminal
# You'll also need xdotool installed (aptitude install xdotool)
# Enter these as shortcuts in Ubuntu's "System Settings" > "Keyboard" > "Shortcuts" (tab) > "Custom Shortcuts"
# Previous/Back Key
xdotool search --onlyvisible --name Guake key ctrl+a p
# Next/Forward Key
xdotool search --onlyvisible --name Guake key ctrl+a n
@excalq
Copy link
Author

excalq commented Jul 23, 2012

Enter these as shortcuts in Ubuntu's "System Settings" > "Keyboard" > "Shortcuts" (tab) > "Custom Shortcuts"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment