PDA

View Full Version : [SOLVED] Configure LXQt desktop switcher to work across workspaces?



qajaq
November 18th, 2019, 02:12 AM
I installed Lubuntu 18.04 a few months ago, after several years of using Kubuntu in various LTS versions. The LXQt desktop is taking some getting used to, but for the most part, I can learn to use the differences -- except for one. In all KDE environments, when I use the Alt-Tab key to switch from one application to another, I can make the move regardless of which workspace (I usually have seven) I'm in and which one the target application is in. For example, if I'm writing something in a LibreOffice Write file in workspace #1, I can use (in KDE) the Alt-Tab key-combination to switch to Firefox in workspace #2. In the Lubuntu installation, the Alt-Tab combination will only allow me to switch among whatever applications I have open in the same workspace (in this example, workspace #1).

I haven't found a way to switch among applications globally in Lubuntu's LXQt. Is it possible? Or should I try installing a different desktop environment? Or will I have to give up on Lubuntu if I want this functionality?

Dennis N
November 18th, 2019, 04:25 AM
when I use the Alt-Tab key to switch from one application to another, I can make the move regardless of which workspace...
Great question, and the answer is not easy to find. Lubuntu uses an .xml file to configure this (and many other things) Here's how to change Alt-Tab to switch between all desktops (workspaces):

You must edit parts of the file ~/home/.config/openbox/lxqt-rc.xml

Find and edit this section in the file to fix Alt-Tab. The line in red needs to be added:



<keybind key="A-Tab">
<action name="NextWindow">
<allDesktops>yes</allDesktops>
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>


Also do the edit that follows to fix Alt+Shift+Tab:


<keybind key="A-S-Tab">
<action name="PreviousWindow">
<allDesktops>yes</allDesktops>
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>

Now it's ready to go!

qajaq
November 18th, 2019, 05:22 AM
Beautiful! So simple and elegant, for all that it's so obscure. It works a charm -- thank you!