summaryrefslogtreecommitdiff
path: root/setxkbmap.sh
blob: 674056dcffe733776e062aaa9de2bebe7870f850 (plain) (blame)
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
#!/bin/bash

setxkbmap -layout jr -variant jdvprk -option numpad:mac
killall xcape

# Set tab to hyper, and set hyper to set mod3
xmodmap <(echo '
  keycode 223 = Tab
  keycode 23 = Hyper_L
  remove mod4 = Hyper_L
  add mod3 = Hyper_L

  # Remove Num_Lock, because Num_Lock is stupid and this allows
  # us to potentially use mod2 for things!
  # keycode 77 = NoSymbol
  # keycode 51 = Control_R
  # remove control = Control_R
  # add mod2 = Control_R

  # ISO_Level5_Shift should be mapped to NumLock
  remove mod3 = ISO_Level5_Shift

  # keycode 222 = semicolon colon paragraph degree
  # keycode 24 = Control_L
  # add Control = Control_L
' | sed '/^\s*#/d')

xcape -e 'Hyper_L=Tab' -t 400
xset r rate 200 100