aboutsummaryrefslogtreecommitdiff
path: root/sway/config.d/00-sway.conf
blob: 619af6f56c361935ce9577e32c1a83d1bce8a398 (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
# 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 "17485:13365:tshort_Dactyl_Manuform_4x5" {
    xkb_layout "us"
}

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