Skip to content

Instantly share code, notes, and snippets.

@candale
Created June 19, 2016 18:25
Show Gist options
  • Save candale/03742de89a2ad72e32326e15ed13cb2a to your computer and use it in GitHub Desktop.
Save candale/03742de89a2ad72e32326e15ed13cb2a to your computer and use it in GitHub Desktop.
#!/bin/sh
if wmctrl -m | grep "mode: ON"; then
exec wmctrl -k off
else
exec wmctrl -k on
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment