OK, dann war 'wmctrl' meine Antwort, falls Sie es noch nicht haben
apt-get install wmctrl
So sehen Sie Ihre Arbeitsumgebung
wmctrl -d
So sieht mein kleines Python-Skript so aus:
#!/usr/bin/env python import subprocess import time while True: subprocess.call(['wmctrl', '-s', '0']) time.sleep(10) subprocess.call(['wmctrl', '-s', '1']) time.sleep(10) subprocess.call(['wmctrl', '-s', '2']) time.sleep(10) subprocess.call(['wmctrl', '-s', '3']) time.sleep(10)
'-s' weist wmctrl an, zu einem Arbeitsbereich zu gehen, und 0-3 sind meine verfügbaren Arbeitsbereiche.