forked from Gavinok/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremaps
More file actions
executable file
·20 lines (18 loc) · 746 Bytes
/
remaps
File metadata and controls
executable file
·20 lines (18 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# This script is called by i3 on startup.
# Increase key speed via a rate change
xset r rate 200 50
# Map the caps lock key to super...
setxkbmap -layout us -variant altgr-intl -option caps:ctrl_modifier
# If you don't want a us international keyboard, rather whatever keyboard
# you set in your installation, comment out the above line and uncomment
# the one below.
xmodmap -e "keycode 66 = Control_L"
xmodmap -e "keycode 65 = Hyper_L"
xmodmap -e "keycode 108 = Alt_L"
xmodmap -e "keycode any = space"
xmodmap -e "keysym Menu = Hyper_L"
# But when it is pressed only once, treat it as escape.
# killall xcape ; xcape -t 250 -e 'Caps_Lock=Escape'
killall xcape ; xcape -t 250 -e 'Control_L=Escape'
xcape -t 330 -e "Hyper_L=space"