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

# swaymsg -t get_inputs

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

input "30788:34695:KPrepublic_XD87" {
    xkb_layout "us"
    xkb_options "caps:escape"
}

input "4309:21842:No_brand_KVM" {
    xkb_layout "us"
    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