Registered Member
|
Is there any way to start an application (at system startup) on a specific Screen, Desktop(s) and Activit(y|ies)?
I've seen kstart but it only seems to apply to choosing a specific desktop, not a combination of Screen, Desktop(s) and Activit(y|ies). |
Registered Member
|
If you always want windows for a certain application show up on a specific Desktop and/or Activity and/or Screen, you can do that with Application-specific settings (right-click on titlebar of application -> More Actions -> Special Application Settings, or System Settings -> Window Behavior -> Window Rules).
Also, Activities should remember the applications that were associated with them when they were last stopped and reopen them (including the desktop and screen they were on). This is part of the basic session handling and should also be applied when logging out and back in (assuming you leave the windows open when you log out, so it can remember them when you log back in) unless you changed something in System Settings -> Startup and Shutdown -> Session Management. In my experience, though, this session management doesn't work for all applications (KDE applications: yes, non-KDE applications: hit-or-miss), so I can understand the need to set up auto-start scripts to launch apps explicitly.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered Member
|
hi,
I assume you have set up your desktop to spread across the monitors? there are couple of ways. KDE/Qt apps can take --geometry as argument. so for example: 1) "kate --geometry +50+50" would open kate in left monitor, 50 pixels from top and left. 2) "kate --geometry +1920+100" would open it in right monitor, aligned to it's left edge and 100 pixels from top.. (if you left one is in 1920 pixels wide resolution ofcourse) so that works for Qt apps, not necessariy all of them.. but you can try atleast. another very interesting little program is "wmctrl". which allows you to control already opened windows. for example, you open kate in regular way and then do: wmctrl -r kate -e 0,10,10,300,500 move it to left side monitor and make it 300px wide, 500px tall wmctrl -r kate -t 3 move it to desktop 4 (count starts from 0) wmctrl -r kate -b add,maximized_horz,maximized_vert make it fullscreen wmctrl -r kate -N cute rename it to "cute" there are lot of nifty things you can do with wmctrl, worth of checking out the man pages. .b |
Registered Member
|
wmctrl is very handy, yes - but as far as I know it isn't aware of KDE activities - it only operates to freedesktop.org standards. Is this correct?
And is there any command-line way of moving an already-opened window from one activity to another?
I'd rather be locked out than locked in
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]