From 54fb1d3ea544285f38674b0d0454a9ae363293e2 Mon Sep 17 00:00:00 2001 From: xesc Date: Fri, 12 Jan 2024 13:59:40 +0100 Subject: [PATCH] fixes swayidle and adds monitorconfig --- config | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/config b/config index 0e00071..4eab32d 100644 --- a/config +++ b/config @@ -88,10 +88,10 @@ output * bg /home/"$USER"/pictures/wallpaper/underwater.png fill exec swayidle -w \ timeout 600 'sh /home/"$USER"/.local/bin/scripts/idle/brightness.sh timeout' resume 'sh /home/"$USER"/.local/bin/scripts/idle/brightness.sh resume' \ - timeout 900 'notify-send -t 20000 "Locking soon"' \ - timeout 900 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ - timeout 1000 'elogind suspend' \ - before-sleep 'swaylock' + timeout 880 'notify-send -t 20000 "Suspending soon"' \ + timeout 900 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ + timeout 1000 'loginctl suspend' \ + before-sleep 'swaylock' ### Input configuration @@ -123,6 +123,14 @@ input "type:touchpad" { click_method clickfinger } +input "11551:21068:Wacom_Co.,Ltd._Pen_and_multitouch_sensor" { + map_to_output 'Lenovo Group Limited M14t V30AG13W' +} + +input "11551:21068:Wacom_Co.,Ltd._Pen_and_multitouch_sensor_Stylus" { + map_to_output 'Lenovo Group Limited M14t V30AG13W' +} + ### Key bindings # # Basics: @@ -299,8 +307,8 @@ bindgesture swipe:4:right workspace next_on_output bindgesture swipe:3:left workspace prev bindgesture swipe:3:right workspace next -bindgesture pinch:outward fullscreen enable -bindgesture pinch:inward fullscreen disable +bindgesture pinch:3:outward fullscreen enable +bindgesture pinch:3:inward fullscreen disable bindgesture pinch:4:outward floating disable bindgesture pinch:4:inward floating enable