Posted By

iblis on 09/26/07


desktop gnome

Versions (?)

Show / Hide (Gnome) Desktop

 / Published in: Bash


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.