PDA

View Full Version : [SOLVED] How to move window between workspaces



andrei90
January 13th, 2016, 03:48 PM
In Ubuntu I assigned CTRL+ALT+SHIFT+ARROW_KEY to move window to different workspaces.

Is there a way to switch Workspaces with my window in Lubuntu and assign a Keyboard shortcut for that, other than installing some unknown package that could mess up my configs...?

I've already edited the ~/.config/openbox/lubuntu-rc.xml with my Keyboard Shortcuts, I only want to add this workspace switcher shortcut in here.

There must be a command or way that I could add between the <command> tags.

Thank you in regards,
Daniel

vasa1
January 13th, 2016, 04:28 PM
Have you looked at
<keybind key="S-A-Left">
<action name="SendToDesktop">
<to>left</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktop">
<to>right</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktop">
<to>up</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktop">
<to>down</to>
<wrap>no</wrap>
</action>
</keybind>

and
<!-- Keybindings for desktop switching -->
<keybind key="A-C-Left">
<action name="GoToDesktop">
<to>left</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="A-C-Right">
<action name="GoToDesktop">
<to>right</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="A-C-Up">
<action name="GoToDesktop">
<to>up</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="A-C-Down">
<action name="GoToDesktop">
<to>down</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="W-F1">
<action name="GoToDesktop">
<to>1</to>
</action>
</keybind>
<keybind key="W-F2">
<action name="GoToDesktop">
<to>2</to>
</action>
</keybind>
<keybind key="W-F3">
<action name="GoToDesktop">
<to>3</to>
</action>
</keybind>
<keybind key="W-F4">
<action name="GoToDesktop">
<to>4</to>
</action>
</keybind>
?

andrei90
January 13th, 2016, 05:35 PM
Omg, so that's were it was hiding! Thanks a billion times :D

S-A-Left and S-A-Right solved it :D

vasa1
January 14th, 2016, 03:31 AM
You're most welcome!

I found these references to be very helpful in understanding what lubuntu-rc.xml (or *rc.xml) is all about:
http://pclosmag.com/html/Issues/201011/page09.html
http://pclosmag.com/html/Issues/201107/page08.html

andrei90
January 14th, 2016, 09:14 AM
Wow, those are awesome. Thank you so much :)

Can't wait to hackety-hack my rc :D

vasa1
January 14th, 2016, 09:34 AM
Wow, those are awesome. Thank you so much :)

Can't wait to hackety-hack my rc :D
But please keep a back-up :)

andrei90
January 14th, 2016, 09:49 AM
Yes of course, got it under Git (https://github.com/dminca/dotfiles/blob/devel/lubuntu/lubuntu-rc.xml), I never start without a backup :) learned my lesson in the past

vasa1
January 14th, 2016, 01:48 PM
...
Can't wait to hackety-hack my rc :D
Well, if you come up with something nifty, do share!

You could also visit the BunsenLabs forum (https://forums.bunsenlabs.org/index.php) to meet more Openbox users.

andrei90
January 14th, 2016, 03:16 PM
Cool. Will do :)

Almost everything that's code related I share it on Github (https://github.com/dminca) :KS

vasa1
January 15th, 2016, 01:30 PM
Yes of course, got it under Git (https://github.com/dminca/dotfiles/blob/devel/lubuntu/lubuntu-rc.xml), I never start without a backup :) learned my lesson in the past
For some reason, I get a 404 with the link above but this works: https://github.com/dminca/dotfiles/blob/master/lubuntu/lubuntu-rc.xml.

andrei90
January 15th, 2016, 04:53 PM
Yes, that's because I've drafted a new release of the dotfiles project and the dev branch has been merged with the master branch
It can be found now on
https://github.com/dminca/dotfiles
in /lubuntu/...xml

BTW in case you're interested, I've also created a script (https://github.com/dminca/dotfiles/blob/master/lubuntu/clearme.sh) that optimizes PC performace by moving Swap data to RAM (if RAM memory is available).
Tested on my localhost with runtime 1day and 7hrs and it moves flawless, no lag, no slow motion on windows or something. :)

The script is in /lubuntu/clearme.sh