This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KWin Window Rule Shortcut

Tags: kwin, shortcut, window rules kwin, shortcut, window rules kwin, shortcut, window rules
(comma "," separated)
phobeus
Registered Member
Posts
9
Karma
0

KWin Window Rule Shortcut

Tue Oct 04, 2016 9:11 pm
Hi there,

my attempt is to automatically set a position for a software on different monitors. I was able to manage defining a kwin window rule to reach exactly what I am trying to do. However just when applying it manually. My issue is that the software does have a login and initially just having a name in the title. After the login, the window caption is changed to the login and depending on this I want to decide on which monitor to show it. So I am searching for one of the following solutions:

1) Is it possible to evaluate the windows title not just at the beginning, but also during runtime. So it does check for a specific title not just once, but regulary and if it finds a hit, applying the rule to it. If this would be possible it would be my favourized approach.

2) If this is not possible, is it possible to apply a kwin rule manually by command line or kde shortcuts? This might allow me to press a key after the login and applying the rule to sort out the windows correctly. I can apply this manually, but I would prefer having a shortcut to evaluate the window rules.

Any ideas to solve this?
iamkarlson
Registered Member
Posts
2
Karma
0

Re: KWin Window Rule Shortcut

Tue Dec 28, 2021 11:42 am
It's necroposting but I think it's still very nice feature to have if it exists
aaa
Registered Member
Posts
7
Karma
0

Re: KWin Window Rule Shortcut

Mon Apr 11, 2022 4:47 am
this is the closest Ive found: https://unix.stackexchange.com/question ... mmand-line

Code: Select all
dbus-send --print-reply --dest=org.kde.kwin.Scripting /$(dbus-send --print-reply --dest=org.kde.kwin.Scripting /Scripting org.kde.kwin.Scripting.loadScript string:"./kwin_script" |  awk 'END {print $2}' ) \ org.kde.kwin.Scripting.run


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]