mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
17 lines
566 B
Bash
Executable File
17 lines
566 B
Bash
Executable File
#!/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
|