Skip to content

Instantly share code, notes, and snippets.

@psanford
Created May 8, 2011 18:41
Show Gist options
  • Save psanford/961584 to your computer and use it in GitHub Desktop.
Save psanford/961584 to your computer and use it in GitHub Desktop.
keyboard initialization via setxkbmap
#!/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