From eb51e2e793b2ace8f6847e9b6385c97c90d4f4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 21 Nov 2024 18:06:09 +0100 Subject: [PATCH] Move tablet_tool config to kanshi --- symlinks/config/.gitignore | 1 + symlinks/config/kanshi/config.sample | 25 +++++++++++++++++++++++++ symlinks/config/sway/conf.d/41_pointer | 5 ----- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 symlinks/config/kanshi/config.sample diff --git a/symlinks/config/.gitignore b/symlinks/config/.gitignore index 1eea192..b576bfc 100644 --- a/symlinks/config/.gitignore +++ b/symlinks/config/.gitignore @@ -74,3 +74,4 @@ !mimeapps.list !/ra-multiplex/ !/ra-multiplex/** +!/kanshi diff --git a/symlinks/config/kanshi/config.sample b/symlinks/config/kanshi/config.sample new file mode 100644 index 0000000..1c7f0e3 --- /dev/null +++ b/symlinks/config/kanshi/config.sample @@ -0,0 +1,25 @@ +profile dual { + output DP-1 mode 1920x1080 position 0,0 + output DP-2 mode 1920x1080 position 1920,0 + exec swaymsg workspace '$music_workspace', move workspace to DP-2 + exec swaymsg workspace '$email_workspace', move workspace to DP-2 + exec swaymsg workspace '$ide_workspace', move workspace to DP-1 + exec swaymsg input type:tablet_tool map_to_output DP-1 + exec swaymsg input type:tablet_tool map_from_region 0.0x0.0 1.0x0.9 +} + +profile single { + output DP-1 mode 1920x1080 position 0,0 + exec swaymsg workspace '$music_workspace', move workspace to DP-1 + exec swaymsg workspace '$email_workspace', move workspace to DP-1 + exec swaymsg workspace '$ide_workspace', move workspace to DP-1 + exec swaymsg input type:tablet_tool map_to_output DP-1 +} + +profile laptop { + output DP-1 mode 1920x1080 position 0,0 + output eDP-1 mode 1920x1080 position 0,1080 + exec swaymsg workspace '$music_workspace', move workspace to eDP-1 + exec swaymsg workspace '$email_workspace', move workspace to eDP-1 + exec swaymsg workspace '$ide_workspace', move workspace to DP-1 +} diff --git a/symlinks/config/sway/conf.d/41_pointer b/symlinks/config/sway/conf.d/41_pointer index 3adcea2..d0808a5 100644 --- a/symlinks/config/sway/conf.d/41_pointer +++ b/symlinks/config/sway/conf.d/41_pointer @@ -2,9 +2,4 @@ input type:pointer { accel_profile flat } -input type:tablet_tool { - map_to_output DP-1 - map_from_region 0.0x0.0 1.0x0.9 -} - focus_follows_mouse yes