From f8a60a5315af818a6350202ff28270d43ed2f54c Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Sun, 17 Mar 2024 22:00:35 +0100 Subject: [PATCH] feat(sway): set wacom tablet to relative mode with pen --- nix/home-manager/profiles/sway-desktop.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/home-manager/profiles/sway-desktop.nix b/nix/home-manager/profiles/sway-desktop.nix index 284a8a1..fb78aeb 100644 --- a/nix/home-manager/profiles/sway-desktop.nix +++ b/nix/home-manager/profiles/sway-desktop.nix @@ -105,6 +105,13 @@ in { "type:touchpad" = { natural_scroll = "enabled"; }; + + # alternatively run this command + # swaymsg input "1386:914:Wacom_Intuos_Pro_S_Pen" tool_mode "* relative" + # and then switch to a different VT (alt+ctrl+f2) and back + "1386:914:Wacom_Intuos_Pro_S_Pen" = { + tool_mode = "* relative"; + }; }; keybindings = lib.mkOptionDefault {