Skip to content

Instantly share code, notes, and snippets.

@yaredc
Last active December 12, 2020 16:14
Show Gist options
  • Save yaredc/8ff73d50485405ee7bf618a02403d64b to your computer and use it in GitHub Desktop.
Save yaredc/8ff73d50485405ee7bf618a02403d64b to your computer and use it in GitHub Desktop.
Keyboard shortcut setup.
#!/bin/sh
touch .xinitrc
touch .Xmodmap
echo "keycode 134 = Menu" > .Xmodmap
echo "xmodmap ~/.Xmodmap" > .xinitrc
#SCAN KEYBOARD INPUT IN CONSOLE
sudo showkey
#SCAN KEYBAORD AND MOUSE INPUTS ON X11
xev
#ON DUCKY ONE 2 KEYBOARD, 134 IS THAT RIGHT WINDOWS KEY. ON X11.
xmodmap -e 'keycode 134 = Menu'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment