Monochrome SwayFX glass rice

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 23:44:59 +05:00
co-authored by Claude Sonnet 5.5
commit fc4a744e12
17 changed files with 658 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# Mirror the internal display to any external output (sway has no native mirroring).
# Watches output hotplug events; needs wl-mirror.
exec 9>"${XDG_RUNTIME_DIR:-/tmp}/sway-mirror.lock"
flock -n 9 || exit 0
internal=eDP-1
sync() {
pkill -x wl-mirror
for ext in $(swaymsg -t get_outputs -r | jq -r --arg i "$internal" '.[] | select(.active and .name != $i) | .name'); do
wl-mirror --fullscreen-output "$ext" "$internal" &
done
}
sync
swaymsg -t subscribe -m '["output"]' | while read -r _; do
sleep 1
sync
done