summaryrefslogtreecommitdiffstats
path: root/desktop/.xinitrc.input
blob: ddf9068ddcdf0d2fa2ac474e7bb68c491e547f7b (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
#!/bin/sh

# clear options
setxkbmap -option

# bépo
# enable zapping (not enabled by default anymore)
# swap caps lock and esc
setxkbmap fr bepo -option terminate:ctrl_alt_bksp -option caps:swapescape

# remap keys
xmodmap ~/.Xmodmap

# reload xbindkeys or start it
killall -HUP xbindkeys || xbindkeys
# same with keynav
killall -HUP keynav || keynav

# pointer: acceleration, threshold
xset mouse 3 3

# shorter delay, bigger rate
xset r rate 300 60

# DISABLED: too buggy with focus follow mouse / hide pointer on typing
## find out my trackpad
#if [ -n "$(xinput list --id-only 'pointer:Generic USB K/B' 2>/dev/null)" ]; then
#    xinput create-master 'trackball'
#    xinput reattach 'pointer:Generic USB K/B' 'trackball pointer'
#else
#    # AttachToMaster also works to switch back
#    # to having only one pointer for two devices
#    xinput remove-master 'trackball pointer' AttachToMaster 2>/dev/null
#fi