blob: b150d484e8cf4e30eab14ed95702fd9f7db0c88a (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/bin/bash
xbindkeys
# no gnome:
setxkbmap -option terminate:ctrl_alt_bksp -option caps:super
# gnome:
gsettings set org.gnome.libgnomekbd.keyboard options "['terminate\tterminate:ctrl_alt_bksp', 'caps\tcaps:super']"
# Disable thinkpad middle-click+trackpoint scrolling
xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Scroll Method Enabled' 0 0 0
# Enable tap-to-click on older thinkpads
xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 0 0 0 1 2 3
# Enable tap-to-click on newer thinkpads
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1
if [ -r ~/.Xresources.local ]
then
xrdb -merge ~/.Xresources.local
fi
if [ "${DISPLAY%.*}" = :0 ]
then
/usr/lib/notification-daemon/notification-daemon &
xterm -e tmux attach &
quassel &
fi
for wm in xmonad i3
do
command -v "$wm" >/dev/null || continue
"$wm" & break
done
if [ -r ~/.xsession.local ]
then
source ~/.xsession.local
fi
if [ "${DISPLAY%.*}" = :0 ]
then
if [ "$XSESSION_DISPLAY0_FIRESTART_RAW" ]
then
if systemctl --user --quiet is-active firefox@$DISPLAY
then
systemctl --user stop firefox@$DISPLAY
fi
firestart &
else
firestartx &
fi
elif [ "$XSESSION_IS_FIRESTARTX" ]
then
firestart &
fi
exec perl -MPOSIX -e 'wait while pause'
xterm # if exec fails
|