1
1
Fork 0
nixos/options/custom/scripts/minimize.sh

13 lines
310 B
Bash
Raw Normal View History

#! /usr/bin/env bash
# Minimize/unminimize active window
# Get active workspace
workspace="$(hyprctl activewindow -j | jq -r .workspace.name)"
if [[ "$workspace" == "special:scratchpad" ]]; then
hyprctl dispatch movetoworkspacesilent +0
else
hyprctl dispatch movetoworkspacesilent special:scratchpad
fi