a bunch of stuff, including upgrade to wayland and ndi streaming to imac

This commit is contained in:
Sebastian Moser
2025-01-12 18:50:01 +01:00
parent cfd9bfccbd
commit 40f190de88
29 changed files with 1813 additions and 55 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Get the PID of the focused window
PID=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true).pid')
FOCUSED_WIN_ID=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true).id')
# Check if the process is frozen
STATE=$(ps -o state= -p $PID)
if [[ "$STATE" == *T* ]]; then
# If the process is frozen, unfreeze it and reset border color
kill -CONT $PID
swaymsg [con_id=$FOCUSED_WIN_ID] border pixel 2
else
# If the process is running, freeze it and change border color
kill -STOP $PID
swaymsg [con_id=$FOCUSED_WIN_ID] border pixel 10
fi