Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions bin/omarchy-cmd-screenshot
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ fi

pkill slurp && exit 0

was_animations_enabled=
if command -v hyprctl >/dev/null 2>&1 && command -v jq >/dev/null 2>&1; then
current_enabled=$(hyprctl getoption animations:enabled -j 2>/dev/null | jq -r '.int')
if [[ "$current_enabled" == "1" ]]; then
was_animations_enabled=1
hyprctl keyword animations:enabled 0 >/dev/null 2>&1 || true
fi
fi

restore_animations() {
if [[ "$was_animations_enabled" == "1" ]]; then
hyprctl keyword animations:enabled 1 >/dev/null 2>&1 || true
fi
}

trap restore_animations EXIT

MODE="${1:-smart}"
PROCESSING="${2:-slurp}"

Expand Down