![]() Registered Member ![]()
|
Hello everybody,
These are the system information: Operating System: Debian GNU/Linux 11 KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.92 OS Type: 64-bit Processors: 8 × AMD FX(tm)-8350 Eight-Core Processor Memory: 7.6 GiB of RAM Graphics Processor: GeForce GT 630/PCIe/SSE2 As you can see I've Nvidia hardware, in order to have things working properly I need to run a script when I resume from suspend to RAM the PC. This is the script:
What the script does is to restart kwin_x11. Sadly when it happens all applications reset the Activity values to "All Activity". Therefore I've to manually change the window's Activity to set it to the proper value:
Googling on the Internet I found something interesting about the xprop command:
xprop sets the window's propriety _KDE_NET_WM_ACTIVITIES to the value of "Rete" activity but sadly this doesn't work. The Firefox window is still set to "All Activities" I think that the possible solution is to set the proper Activity of each window via a command in the resume script (00_resume.sh). Does anybody know how to accomplish this? Thank in advance ![]() |
![]() Registered Member ![]()
|
This tip led me to a solution (works on at least 22.04):
Here's a very novice script to add a toggle feature and manage duplicate IDs, etc.
|
![]() Registered Member ![]()
|
Nice. Good to see some proper scripting from time to time on here.
This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
|
![]() Registered Member ![]()
|
Thanks for the tip kde-jon3 !!!
After a few of investigation on the xdotool manual page I found that the equivalent command of:
searching the window id by name is:
edit: if you have trouble searching the window name try the --class option instead of --name therefore now it's easy set the activity value of the Firefox window to "Rete". For example the following command move the Firefox window from "Rete" activity to the "Games" activity:
and this move back the Firefox window to the "Rete" activity:
Thanks again, kind regards |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]