Posted By

iblis on 09/26/07


Tagged

desktop gnome


Versions (?)

Show / Hide (Gnome) Desktop


 / Published in: Bash
 

URL: http://jrandomhacker.info/Wmctrl_examples

Does what title says. But you know what? wmctrl must be installed first!

  1. #!/bin/bash
  2. if wmctrl -m | grep -q '"showing the desktop" mode: ON'; then
  3. wmctrl -k off
  4. else
  5. wmctrl -k on
  6. fi

Report this snippet  

You need to login to post a comment.