Fix tiled fullscreen toggle

This commit is contained in:
David Heinemeier Hansson committed 2026-05-29 15:59:13 +02:00
1 parent 6f0d9d53cd
commit a4bb7a46f1
3 files changed
+56 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# omarchy:summary=Toggle tiled fullscreen for the focused Hyprland window
set -euo pipefail
active=$(hyprctl activewindow -j)
fullscreen_client=$(jq -r '.fullscreenClient // 0' <<<"$active")
if [[ $fullscreen_client == "2" ]]; then
hyprctl dispatch 'hl.dsp.window.fullscreen_state({ internal = 0, client = 0 })' >/dev/null 2>&1 || \
hyprctl dispatch fullscreenstate 0 0 >/dev/null
else
hyprctl dispatch 'hl.dsp.window.fullscreen_state({ internal = 0, client = 2 })' >/dev/null 2>&1 || \
hyprctl dispatch fullscreenstate 0 2 >/dev/null
fi