Created
July 23, 2012 16:55
-
-
Save excalq/3164696 to your computer and use it in GitHub Desktop.
Using Back/Forward Mouse/Keyboard media keys to change Tmux/Screen Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enter these as shortcuts in Ubuntu's "System Settings" > "Keyboard" > "Shortcuts" (tab) > "Custom Shortcuts"