Skip to content

Instantly share code, notes, and snippets.

@loopymonkey
Last active August 29, 2015 13:56
Show Gist options
  • Save loopymonkey/9180574 to your computer and use it in GitHub Desktop.
Save loopymonkey/9180574 to your computer and use it in GitHub Desktop.
minimize all windows to see desktop in cinammon mint 16 linux
#!/bin/bash
# from reddit http://www.reddit.com/r/linuxmint/comments/1yhsl1/hot_corners_showing_desktop/cfl5vsu
wmctrl -m | grep -Eo "^Window manager's \"showing the desktop\" mode: ([OFN]{2,3})$" | grep -oE "ON" > /dev/null
if [ $? -eq 0 ]; then
echo $?
wmctrl -k off;
else
echo $?
wmctrl -k on;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment