Created
September 14, 2022 01:13
-
-
Save lidgnulinux/03b3676b708297746576ea321226838d to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/bash | |
unminimize () { | |
jum=$(lswt | wc -l) | |
count=$jum | |
for i in $(seq $count); do | |
wlrctl toplevel focus state:minimized | |
done | |
} | |
minimize () { | |
wlrctl toplevel minimize | |
} | |
if [[ $(lswt -j | grep '"activated": true' | wc -l) -eq 1 ]]; then | |
minimize | |
else | |
unminimize | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment