Registered Member
|
Hi,
I use a netbook often with an external 19" monitor, which means that I have to frequently switch back and forth between plasma netbook and desktop workspaces. Thanks to the information I've found in another thread, I've created 2 launchers (with 2 icons plus 2 *.desktop files executing 2 scripts including the command strings "kquitapp plasma-netbook" and "plasma-desktop" and vice versa... However, I would appreciate very much if someone could perhaps provide a short script that would simply toggle the plasma workspace by querying and finding out the current plasma workspace, and then terminating it, followed by activating the other plasma workspace. |
Registered Member
|
How about this?
z. |
Administrator
|
A simpler alternative using pgrep:
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
Registered Member
|
Thanks a million to zenyatta and einar !!!
I knew it was very easy, although I'm too ignorant about scripting. Both scripts worked well in switching back and forth between desktop and netbook workspaces now Sadi |
Administrator
|
Another option that doesn't require scripting is to use this plasmoid: http://kde-apps.org/content/show.php/On ... ent=116323
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
The scripts suggested by zenyatta and einar (actually the commands plasma-desktop and plasma-netbook) change the screen but leave the setting in System Settings/Workspace Behaviour/Workspace in the last manually selected position which results in behaviours like "BorderlessMaximizedWindows=false" (~/.kde/share/config/kwinrc) in Netbook mode.
Therefore, it needs to be complemented at least with a command to toggle the value for "BorderlessMaximizedWindows" in ~/.kde/share/config/kwinrc between "true" and "false" |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]