From 6106cfcbdee569fa0e4d6214d0f9f3440a161f2d Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 27 Sep 2025 11:08:11 +0200 Subject: [PATCH] kanshi: Fix transform change between vertical and normal docked mode Since I have two configurations for my dual-screen desktop setup, with one having the two screens side-by-side and the other having the left screen vertically rotated 90 degrees, I need two different kanshi setups. The vertical setup is called 'dockedvert' and is the default when the two screens are detected. The horizontal setup is only called 'docked' and can be switched to manually. Before, it would not correctly revert the left screen from its vertical 90 degree rotation when going from the vertical setup to the horizontal one. So I applied the `transform` output directive but kanshi refused to start. That is because to revert the transform into the default horizontal position you do not use `0` but `normal` as the value. With this fix everything works as expected. --- desktop/.config/kanshi/config | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/desktop/.config/kanshi/config b/desktop/.config/kanshi/config index fab1899..cd886f6 100644 --- a/desktop/.config/kanshi/config +++ b/desktop/.config/kanshi/config @@ -3,15 +3,21 @@ output "LG Electronics W2442 0x000574E1" alias $left-screen output "LG Electronics W2442 0x000574FD" alias $right-screen profile dockedvert { - output $left-screen position 0,0 transform 90 + output $left-screen { + position 0,0 + transform 90 + } output $right-screen position 1080,0 output eDP-1 disable exec notify-send "💻 Display changed" "Applying vertical docked LG profile" } profile docked { - output $left-screen position 0,0 transform 0 - output $right-screen position 1920,0 transform 0 + output $left-screen { + position 0,0 + transform normal + } + output $right-screen position 1920,0 output eDP-1 disable exec notify-send "💻 Display changed" "Applying docked LG profile" }