-
Notifications
You must be signed in to change notification settings - Fork 1
/
.xsessionrc
51 lines (42 loc) · 2.32 KB
/
.xsessionrc
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
#
# xinput (touchpad)
#
# xinput list: DELL073F:00 06CB:7E91 Touchpad id=15
xinput set-prop "DELL073F:00 06CB:7E91 Touchpad" "Synaptics Tap Action" 2, 3, 0, 0, 1, 2, 3 # Synaptics Tap Action (297) # Which mouse button is reported when tapping, 0 disables an element. order: RT, RB, LT, LB, F1, F2, F3.
xinput set-prop "DELL073F:00 06CB:7E91 Touchpad" "Synaptics Click Action" 1, 2, 3 # Synaptics Click Action (298) # Which mouse button is reported when clickin with number of fingers
xinput set-prop "DELL073F:00 06CB:7E91 Touchpad" "Synaptics Scrolling Distance" -50 -50 # Synaptics Scrolling Distance (290) # 32 bit, 2 values, vert, horiz
xinput set-prop "DELL073F:00 06CB:7E91 Touchpad" "Synaptics Coasting Speed" 1 5 # Synaptics Coasting Speed (305) # FLOAT, 2 values, speed, friction
xinput set-prop "DELL073F:00 06CB:7E91 Touchpad" "Synaptics Two-Finger Scrolling" 1 1 # Synaptics Two-Finger Scrolling (292) # BOOL, 2 values, vertical, horizontal.
# xinput set-button-map 13 1 2 3 5 4 6 7 8 9 10 11 12 # Using negative Scrolling Distance
#
# setxkbmap (special keys)
# (see /usr/share/X11/xkb/rules/xorg.lst for more options)
#
setxkbmap -option caps:escape # Use CapsLock as Escape
setxkbmap -option numpad:microsoft # Be able to use Shift with Numpad as arrows (home/end)
#
# Terminator sessions
#
# terminator --title monitor --maximise --execute ssh -p 2222 agil@imatge.upc.edu -t ssh root@s1 -t tmux attach -t monitor &
# terminator --title mail --maximise --execute ssh -p 2222 agil@imatge.upc.edu -t DISPLAY=:1067 tmux attach -t monitor &
# terminator --title mail --maximise --execute tmuxinator start local &
#
# Screenlayout
#
if [ -f ~/.screenlayout/default.sh ]; then
~/.screenlayout/default.sh
fi
#
# Touch screen
#
xsetwacom set "ELAN Touchscreen" MapToOutput eDP-1
xinput disable "ELAN Touchscreen" # due hwd problems... :-(
#
# Daemons for better visualization
#
unclutter -idle 1 -jitter 2 -root & # To hide the mouse
compton & # To dimm the unfocus windows
numlockx on # To ensure numlock is enabled
# TODO: Workaround about bug with Alt+Arrow (https://askubuntu.com/questions/893964/altleft-key-locks-the-screen)
# sudo kbd_mode -s