Ubuntu Pastebin

Paste from wiredfool at Tue, 11 Aug 2015 09:53:55 +0000

Download as text
1
2
3
4
5
6
7
8
# This should set the xkb map when there's a keyboard plugged in. 
# run sudo udevadm control --reload-rules to install
# see http://arakilab.media.eng.hokudai.ac.jp/~msylw/2013/07/using-udev-to-trigger-events-in-example/


ACTION=="add|remove", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_INPUT_KEYBOARD}=="1", RUN+="/usr/bin/logger 'setxkb' && /usr/bin/setxkbmap -option -option 'ctrl:nocaps' -option 'altwin:left_meta_win'"
 
LABEL="usb_hid_setxkb_end"
Download as text