Created
May 8, 2011 18:41
-
-
Save psanford/961584 to your computer and use it in GitHub Desktop.
keyboard initialization via setxkbmap
This file contains 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
#!/bin/sh | |
#set caps to super | |
setxkbmap -option caps:super | |
#swap command and option for apple keyboard | |
setxkbmap -device `xinput list | grep -o -P 'Apple Internal Keyboard / Trackpad\s+id=\d+' | grep -o -P '\d+'` -option altwin:swap_lalt_lwin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment