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

# musl is always UTF-8, but tmux needs this so that it knows
export LC_CTYPE=en_US.UTF-8

#export PATH=$HOME/bin:$HOME/.npm/bin:$PATH

# Make QT5 applications pick up my preferred styles
export QT_QPA_PLATFORMTHEME=qt5ct

# X resources
for f in ~/.Xresources.d/* ~/.Xresources ; do
	[ -r "$f" ] && xrdb -merge -I"$HOME/.Xresources.d" "$f"
done

# X compositor
picom &

# input method
ibus-daemon --xim -d
export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus

# set screen backlight to 30% brightness.
# that's typically bright enough, and uses much less power.
xbacklight -set 30 &

# touchpad
# * treat 3-finger click as middle-click. 
#   (seems to break 2-finger click, but right-click is available by other means)
xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Click Action" 1 2 3
# * circular scrolling. drag a finger in a circular motion, starting at any edge.
xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Circular Scrolling" 1
# * don't react to my palm while typing
xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Palm Detection" 1

# set wallpaper
[ -x ~/.fehbg ] && ~/.fehbg &

# screensaver
xautolock -locker "i3lock -c 404040 -i $HOME/.lock.png" -time 15 &

# music
mpd --kill ; mpd &

# network manager
cmst --minimized &

# window manager
exec i3