diff options
-rwxr-xr-x | desktop/.xinitrc | 52 | ||||
l--------- | desktop/.xsession | 1 |
2 files changed, 53 insertions, 0 deletions
diff --git a/desktop/.xinitrc b/desktop/.xinitrc new file mode 100755 index 0000000..0142e70 --- /dev/null +++ b/desktop/.xinitrc @@ -0,0 +1,52 @@ +#! /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 & + +# TODO +# 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 diff --git a/desktop/.xsession b/desktop/.xsession new file mode 120000 index 0000000..03280df --- /dev/null +++ b/desktop/.xsession @@ -0,0 +1 @@ +.xinitrc
\ No newline at end of file |