Created
June 18, 2021 20:31
-
-
Save ChildishGiant/f751ea2860477eff819c8aa6f0c5e923 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
status="$(wmctrl -m | grep "showing the desktop" | sed -r 's/(.*)(ON|OFF)/\2/g')" | |
if [ $status == "ON" ]; then | |
wmctrl -k off | |
else | |
wmctrl -k on | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment