RE KDE activity-speficic application locations

Matt Graham mhgraham at crow202.org
Mon May 22 11:41:52 MST 2017


On 2017-05-22 11:07, der.hans wrote:
> Am 20. May, 2017 schwätzte James Crawford so:
>> Try a "Folder View" widget on the desktop.
>> Then ln -s application to appName in the Folder you are using in a 
>> given activity
>> or Right click on the application and drag it to the Folder View 
>> Widget then choose "Link here"
>> Just name each Folder differently.
> Brian has shown me folder mode a couple of times, but I haven't used 
> it.
> If I understand your suggestion, it would give me different icons for 
> the
> applications.  I actually want zero icons on my desktop :).

I have never understood what KDE was trying to do with activities.  But 
read on...

> Does the folder view also hold running apps?
> I have running apps that I want to rearrange.
> Perhaps I don't even need activities and there's some layout tool that
> will allow me to define different layouts.

If you know exactly where you want your application windows positioned, 
you can make this happen with wmctrl.  First install wmctrl.  Then 
position the windows exactly the way you want them for (layout 1).  Then 
do "echo '#!/bin/bash' > layout1.sh && wmctrl -G -l >> layout1.sh".  
Then rearrange layout1.sh such that it does "wmctrl -r $WINDOW_NAME -e 0 
x y width height" for all of the windows you want to move.  Then chmod 
+x layout1.sh and bind a key or a mouse button to that script.  Repeat 
for other application layouts.

wmctrl doesn't seem to be able to minimize windows, though.  I think 
you need to use qdbus for that.  The man page for wmctrl also mentions a 
tool called zenity that may be useful.

-- 
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.


More information about the PLUG-discuss mailing list