about summary refs log tree commit diff stats
path: root/xinitrc
blob: f976e9abf1899bcf3dcbe7fb28a33349f4099e92 (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
# Set up X.org
xrdb ~/.xresources
xmodmap ~/.xmodmap
xsetroot -cursor_name left_ptr
xsetroot -grey
xhost +SI:localhost:$USER

# https://wiki.archlinux.org/title/Libinput and libinput(4)
touchpad_set(){
	# get 9 from xinput list, then run xinput list-props 9
	(sleep 2 && xinput set-prop 9 "$@") &
}
touchpad_set "libinput Natural Scrolling Enabled" 1
touchpad_set "libinput Horizontal Scroll Enabled" 1
touchpad_set "libinput Tapping Enabled" 1
touchpad_set "libinput Tapping Drag Enabled" 1
touchpad_set "libinput Tapping Drag Lock Enabled" 1

# Environment variables
export GTK_OVERLAY_SCROLLING=0

if test -z "$DBUS_SESSION_BUS_ADDRESS"
then eval "$(dbus-launch --sh-syntax --exit-with-x11)"
fi

# Autostart
/usr/libexec/pipewire-launcher &
brightnessctl set 40%
test -x ~/.fehbg && ~/.fehbg

keepassxc &

# exec herbstluftwm --locked --autostart $HOME/.herbstluftwmrc
# exec i3

# exwm

IN_EXWM=1 exec emacs