Created
January 26, 2023 20:59
-
-
Save folke/ba848604533117c978ca96fee686079f to your computer and use it in GitHub Desktop.
Hyprland Quake Mode
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
#!/bin/env bash | |
WORKSPACE=$(hyprctl clients -j | jq -rec '.[] | select(.class == "quake") | .workspace .name') | |
if [ -z "$WORKSPACE" ]; then | |
echo "start" | |
hyprctl dispatch -- exec wezterm --config window_background_opacity=0.9 start --class quake | |
elif [ "$WORKSPACE" == "special" ]; then | |
echo "show" | |
hyprctl dispatch movetoworkspace "1,^(quake)\$" | |
else | |
echo "hide" | |
hyprctl dispatch movetoworkspacesilent "special,^(quake)\$" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment