Cycle windows over all workspaces in XFCE (while being able to cycle over one workspace)

I am aware of the xfwm4 -> general -> cycle_workspaces setting but I want to have two shortcuts:

  1. cycles over the windows of the current workspace

  2. cycles over the windows of all workspaces

3 Answers

Great for jeremija, but his code gives me an error. I found this easier:

if $(xfconf-query -c xfwm4 -p /general/cycle_workspaces)
then xfconf-query -c xfwm4 -p /general/cycle_workspaces -s false
else xfconf-query -c xfwm4 -p /general/cycle_workspaces -s true
fi
2

This is not exactly what you are looking for, but may help.

Sve this code to a file (don't forget chmod +x) and map a hotkey to execute this script, for example Win+Tab. This script will toggle the /general/cycle_workspaces setting so that the next time you use Alt+Tab it will cycle only the current workspace or all workspaces.

#!/bin/bash
OLD_VALUE=$(xfconf-query -c xfwm4 -p /general/cycle_workspaces)
if [ $OLD_VALUE == "true" ]; then echo 'will now disable workspace cycling' NEW_VALUE="false"
fi
if [ $OLD_VALUE == "false" ]; then echo 'will now turn on workspace cycling' NEW_VALUE="true"
fi
xfconf-query -c xfwm4 -p /general/cycle_workspaces -s $NEW_VALUE

You can customize what is included in Alt + Tab using Settings > WM Tweaks > Cycling.

Maybe in addition to Alt + Tab you want to use a task-switcher such as Skippy-XD:

In Xfce 4.10 you can easily bind skippy-xd command to Alt + Esc (or similar) in Settings > Keyboard > Shortcuts.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like