Last active
January 15, 2025 09:11
-
-
Save Consolatis/fcfc66add2385f9466a50561ea493eb6 to your computer and use it in GitHub Desktop.
labwc run or raise or minimize
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 | |
app_id=magic | |
executable="foot -a $app_id -o colors.alpha=0.8 -o pad=20x20" | |
# start if not already there | |
if ! wlrctl window find app_id:$app_id; then | |
echo "starting up $executable" | |
$executable & | |
disown | |
exit | |
fi | |
if ! wlrctl window minimize state:unminimized app_id:$app_id; then | |
echo "focusing $app_id" | |
wlrctl window focus app_id:$app_id | |
else | |
echo "minimizing $app_id" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May be combined with a window rule like