blob: 68bb77f8c3539c8b64163853da562d492f6b8de9 (
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
60
|
#! /bin/sh
# choose a predictable path for pulseaudio socket
export PA_DIR=/tmp/pulse-koorogi
# 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
# Choose GTK theme
export GTK_THEME=Arc-Dark
# 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 -w 2 &
# SSH agent
eval $(ssh-agent)
# window manager
exec i3
|