#!/usr/bin/env bash # macOS-style SUPER+Down: close the hyprshell workspace overview if it is open, # returning to the current workspace without switching. # # hyprshell's overview is a gtk4-layer-shell surface whose namespace is # "hyprshell_overview", and the OpenOverview IPC message toggles the overview # closed when it is already open (see OverviewRootInput::OpenOverview). set -u if ! hyprctl layers -j | jq -e ' .. | objects | .namespace? // empty | select(. == "hyprshell_overview") ' >/dev/null; then exit 0 fi hyprshell socat '"OpenOverview"'