Skip to content
Browse files

keyboard: fix Alt_R was bound to ISO_Level3_Shift

  • Loading branch information...
1 parent 84acfcd commit 0f14e951e01d1c8aef750987bc80c8eb85b9b378 @sunaku committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/keyboard
View
6 bin/keyboard
@@ -1,15 +1,15 @@
#!/bin/sh -e
#
-# Usage: keyboard [LAYOUT]
+# Usage: keyboard [OPTIONS_FOR_SETXKBMAP...]
#
-# Changes the keyboard layout to the given value (such as "us" or "dvorak").
+# Changes the keyboard layout to the given value: "us" or "dvorak".
#
# Written in 2014 by Suraj N. Kurapati <https://github.com/sunaku>
if [ -n "$DISPLAY" ]; then
# only affect the laptop's native keyboard; ignore externally attached ones
id=$(xinput list --id-only 'AT Translated Set 2 keyboard')
- setxkbmap -model chromebook -device "$id" -layout "$@"
+ setxkbmap -device "$id" -model chromebook -option altwin:meta_alt "$@"
else
sudo loadkeys "$1"
fi

0 comments on commit 0f14e95

Please sign in to comment.
Something went wrong with that request. Please try again.