Update xlaunch setxkbmap
[khome.git] / home / .xlaunch.d / setxkbmap
CommitLineData
d6c84e8b
SK
1#! /bin/sh
2
3set -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.
778a3a00
SK
11
12# English, Russian, Greek
d6c84e8b
SK
13#setxkbmap -layout us,ru,el -variant ',phonetic_winkeys,' -option ''
14#setxkbmap -layout us,ru,el -variant ',phonetic_winkeys,' -option grp:ctrls_toggle
778a3a00
SK
15
16# English, Russian
d6c84e8b
SK
17setxkbmap -layout us,ru -variant ',phonetic_winkeys' -option ''
18setxkbmap -layout us,ru -variant ',phonetic_winkeys' -option grp:ctrls_toggle
19
fc923c64
SK
20# TODO Why did I have this line? What is/was its unique contribution?
21xmodmap -e 'remove lock = Caps_Lock'
d6c84e8b 22
fc923c64
SK
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.
25setxkbmap -option ctrl:nocaps
26
27# The actual remapping:
d6c84e8b 28setxkbmap -option caps:ctrl_modifier
This page took 0.029784 seconds and 4 git commands to generate.