Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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
share|improve this answer
    
+1 because I have tested this working in Xubuntu 14.04. Make sure to include #!/bin/bash and save as file with .sh file extension. Then run bash *.sh in Terminal to test. If you have opened Settings Manager > Window Manager Tweaks running on the same workspace, user can see the option Cycle through windows on all workspaces is enabled/disabled after the running the script each time. – clearkimura Dec 2 '15 at 17:43

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
share|improve this answer

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.

share|improve this answer
    
@snoop: I've rejected all your edits over the last couple of days. Not even reading them any more: it's too much work to actually let the (very few) good ones through and then re-edit the bad ones. – Fabby Oct 8 '15 at 7:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.