Update xlaunch setxkbmap
[khome.git] / home / .xlaunch.d / setxkbmap
1 #! /bin/sh
2
3 set -e
4
5 #-- Keyboard layout
6 # From setxkbmap man page:
7 # > Note that setxkbmap adds options specified in the command line to the
8 # > options that were set before (as saved in root window properā€ ties).
9 # > If you want to replace all previously specified options, use the
10 # > -option flag with an empty argument first.
11
12 # English, Russian, Greek
13 #setxkbmap -layout us,ru,el -variant ',phonetic_winkeys,' -option ''
14 #setxkbmap -layout us,ru,el -variant ',phonetic_winkeys,' -option grp:ctrls_toggle
15
16 # English, Russian
17 setxkbmap -layout us,ru -variant ',phonetic_winkeys' -option ''
18 setxkbmap -layout us,ru -variant ',phonetic_winkeys' -option grp:ctrls_toggle
19
20 # TODO Why did I have this line? What is/was its unique contribution?
21 xmodmap -e 'remove lock = Caps_Lock'
22
23 # XXX Update 1: without this, caps-lock remap goes away after waking up from sleep.
24 # XXX Update 2: with this, caps-lock remap still goes away after waking up from sleep.
25 setxkbmap -option ctrl:nocaps
26
27 # The actual remapping:
28 setxkbmap -option caps:ctrl_modifier
This page took 0.058467 seconds and 4 git commands to generate.