mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
13 lines
390 B
Bash
Executable File
13 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Close all open windows
|
|
|
|
hyprctl clients -j | \
|
|
jq -r ".[].address" | \
|
|
while read -r addr; do
|
|
hyprctl dispatch "hl.dsp.window.close(\"address:$addr\")" >/dev/null 2>&1 || hyprctl dispatch closewindow "address:$addr"
|
|
done
|
|
|
|
# Move to first workspace
|
|
hyprctl dispatch 'hl.dsp.focus({ workspace = "1" })' >/dev/null 2>&1 || hyprctl dispatch workspace 1
|