summaryrefslogtreecommitdiff
path: root/scripts/.local/bin/remaps
blob: 49838aff3ddaf94c3e094850b99fff6125fecde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

# This script is called on startup to remap keys.

# Increase key speed via a rate change
xset r rate 200 75

# Map the menu button to right super as well.
#xmodmap -e 'keycode 135 = Super_R'

# external keyboard Alt_R may be mapped to Multi_Key instead of ISO_Level3_Shift, which breaks French QWERTY layout
#xmodmap -e "keycode 64 = Alt_L"
#xmodmap -e "keycode 108 = ISO_Level3_Shift"


# reset all options
/usr/bin/setxkbmap -option

# 105-key generic keyboard
# utilize french and russian layouts
# use qwerty instead of aqerty for french layout
# toggle layout with shift+caps
# french accents on right alt
# compose on right ctrl
# non-breaking spaces on right alt + space
# kill X on left ctrl + left alt + backspace
/usr/bin/setxkbmap -model pc105 \
    -layout fr,ru \
    -variant us, \
    -option grp:shift_caps_toggle \
    -option lv3:ralt_switch \
    -option compose:rctrl \
    -option nbsp:level3n #\
#    -option terminate:ctrl_alt_bkspc

# this causes lag on ubuntu laptop upon X startup
#notify-send "Keyboard remapped"