polonium icon indicating copy to clipboard operation
polonium copied to clipboard

Toggle Tiling on a per-monitor basis

Open rileyaft opened this issue 1 year ago • 9 comments
trafficstars

Is your feature request related to a problem? Please describe. When using a 1080p and 4k monitor, fully maximized windows on the 4k monitor can become difficult to read, especially if scaling is set close to 100%. This can lead to lots of deadspace while a smaller window would be easier to read.

Screenshot_20240405_194119 Not fun!

Describe the solution you'd like a) Using kwin's floating tile functionality when tiling (is this even possible due to polonium's implementation?) or b) Having a toggle functionality to disable tiling on different monitors

Describe alternatives you've considered Removing windows from tiling using the keybind (Meta+Shift+Space) is nice, but is annoying to do every time a new window is opened.

2 Much more readable.

Otherwise fully disabling polonium when a second monitor is connected works well enough.

Additional context Thats it!

rileyaft avatar Apr 06 '24 02:04 rileyaft

Have you tried the kwin layout?

zeroxoneafour avatar Apr 06 '24 05:04 zeroxoneafour

Have you tried the kwin layout?

I have, but when opening new windows, it immediately gets overridden by polonium's tiling.

rileyaft avatar Apr 06 '24 18:04 rileyaft

Strange, can you upload a log?

zeroxoneafour avatar Apr 06 '24 20:04 zeroxoneafour

Sure, here you go: Apr 05 19:18:54 [REDACTED]-81sx sudo[5035]: [REDACTED] : TTY=pts/0 ; PWD=/home/[REDACTED] ; USER=root ; COMMAND=/usr/bin/pacman -S --config /etc/pacman.conf -- chaotic-aur/kwin-polonium Apr 05 19:18:56 [REDACTED]-81sx sudo[5079]: [REDACTED] : TTY=pts/0 ; PWD=/home/[REDACTED] ; USER=root ; COMMAND=/usr/bin/pacman -D -q --asexplicit --config /etc/pacman.conf -- kwin-polonium Apr 05 19:25:10 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(2112, 108, 1152, 540) not registered Apr 05 19:25:11 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3089, 549, 1152, 540) not registered Apr 05 19:25:11 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3247, 667, 1152, 540) not registered Apr 05 19:25:11 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3248, 667, 1152, 540) not registered Apr 05 19:25:12 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3253, 669, 1152, 540) not registered Apr 05 19:25:12 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3254, 669, 1152, 540) not registered Apr 05 19:25:12 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3140, 542, 1152, 540) not registered Apr 05 19:25:14 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3140, 542, 1152, 715) not registered Apr 05 19:25:15 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(2234, 850, 1152, 715) not registered Apr 05 19:25:28 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 3840, 2160) not registered Apr 05 19:25:28 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 3840, 2160) not registered Apr 05 19:27:09 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:09 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:11 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:11 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:12 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:12 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:13 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:13 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:13 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:13 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:13 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:13 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:18 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:18 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:19 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:19 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:19 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:19 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:19 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:19 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:20 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:21 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:22 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:24 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:25 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:25 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:25 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:25 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:25 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 1920, 2160) not registered Apr 05 19:27:25 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(3840, 0, 1920, 2160) not registered Apr 05 19:27:39 [REDACTED]-81sx kwin_wayland[934]: qml: Polonium ERR: Tile QRectF(1920, 0, 3840, 2160) not registered Apr 06 11:39:15 [REDACTED]-81sx kwin_wayland[934]: file:///home/[REDACTED]/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1731: TypeError: Value is undefined and could not be converted to an object Apr 06 11:39:15 [REDACTED]-81sx kwin_wayland[934]: file:///home/[REDACTED]/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1686: TypeError: Value is undefined and could not be converted to an object Apr 06 11:39:15 [REDACTED]-81sx kwin_wayland[934]: file:///home/[REDACTED]/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1686: TypeError: Value is undefined and could not be converted to an object Apr 06 11:39:15 [REDACTED]-81sx kwin_wayland[934]: file:///home/[REDACTED]/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1686: TypeError: Value is undefined and could not be converted to an object Apr 06 11:39:15 [REDACTED]-81sx kwin_wayland[934]: file:///home/[REDACTED]/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1686: TypeError: Value is undefined and could not be converted to an object Apr 06 11:39:15 [REDACTED]-81sx kwin_wayland[934]: file:///home/[REDACTED]/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1686: TypeError: Value is undefined and could not be converted to an object Apr 06 11:39:15 [REDACTED]-81sx kwin_wayland[934]: file:///home/[REDACTED]/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1686: TypeError: Value is undefined and could not be converted to an object

rileyaft avatar Apr 06 '24 20:04 rileyaft

Enable debug mode and get another log

zeroxoneafour avatar Apr 06 '24 20:04 zeroxoneafour

the output of journalctl --user --no-pager -e | grep -i "polonium" remains the same after the toggle, do you want me to try to reproduce the issue?

rileyaft avatar Apr 06 '24 20:04 rileyaft

https://zeroxoneafour.github.io/polonium/usage.html#getting-a-log

Enable debug mode, log out, log back in, reproduce the issue, run the commad

zeroxoneafour avatar Apr 06 '24 20:04 zeroxoneafour

Here's one video: https://github.com/zeroxoneafour/polonium/assets/115379744/f4023bf3-15ad-44b1-b96a-045fd1a53ea3

And, here's the logs: https://pastebin.com/2fbJ4nfJ (just under 1000 lines, insane)

rileyaft avatar Apr 06 '24 20:04 rileyaft

It would appear that you are not in fact using the latest build, as there are resizing layout messages appearing when the debug message for that has been removed for a few weeks now.

zeroxoneafour avatar Apr 15 '24 02:04 zeroxoneafour