aboutsummaryrefslogtreecommitdiff
path: root/sway/config.d/00-sway.conf
blob: c907650f854b64409e370bf5f243d8410c35e061 (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
# vi: ft=swayconfig

input * {
    xkb_layout "de"
    xkb_options "caps:escape"
}

input type:touchpad {
    tap enabled
    natural_scroll enabled
}

# ThinkPad TrackPoint
input "2:10:TPPS/2_ALPS_TrackPoint" {
	accel_profile flat
	pointer_accel 0.3
	scroll_factor 0.2
}

exec swayidle -w \
	timeout 10 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
		resume 'swaymsg "output * dpms on"' \
	timeout 1800 'swaylock -f' \
	timeout 1805 'swaymsg "output * dpms off"' \
		resume 'swaymsg "output * dpms on"' \
	before-sleep 'swaylock'

exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK