I'd like a keyboard shortcut to centre a window on the current screen. I don't see any such action in settings, Global Keyboard Shortcuts > KWin. But it should be easy enough to write a script to do it, right?
Only I can't find any way to get the dimensions of the current screen in my setup, which is using two physical screens (1920x1080 and 1366x768) with the NVIDIA driver running "Twinview". All the X commands I've tried see it as one screen with dimensions 1920x1848, which is the way Twinview is supposed to work. But KWin at least must know about the physical screens since it avoids placing new windows halfway across the two screens or in the dead space beside the smaller screen.
Any advice?
Only I can't find any way to get the dimensions of the current screen in my setup, which is using two physical screens (1920x1080 and 1366x768) with the NVIDIA driver running "Twinview". All the X commands I've tried see it as one screen with dimensions 1920x1848, which is the way Twinview is supposed to work. But KWin at least must know about the physical screens since it avoids placing new windows halfway across the two screens or in the dead space beside the smaller screen.
Any advice?
Comment