Skip to content

Instantly share code, notes, and snippets.

@folke
Created January 26, 2023 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save folke/ba848604533117c978ca96fee686079f to your computer and use it in GitHub Desktop.
Save folke/ba848604533117c978ca96fee686079f to your computer and use it in GitHub Desktop.
Hyprland Quake Mode
#!/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