gnome desktop switcher
  1. #!/bin/sh
  2.  
  3. DESK=$(wmctrl -d | grep "*" | awk '{print $1}')
  4.  
  5. if [ $DESK = "0" ]
  6. then
  7. wmctrl -s 1
  8. else
  9. wmctrl -s 0
  10. fi
Parsed in 0.003 seconds