Ensure apps started with uwsm stay managed by uwsm on restarts

This commit is contained in:
David Heinemeier Hansson
2025-07-19 15:11:32 -05:00
parent ceedf474cb
commit cf71a3f101
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ TOTAL=${#BACKGROUNDS[@]}
if [[ $TOTAL -eq 0 ]]; then
notify-send "No background was found for theme" -t 2000
pkill -x swaybg
setsid swaybg --color '#000000' >/dev/null 2>&2 &
uwsm app -- swaybg --color '#000000' >/dev/null 2>&1 &
else
# Get current background from symlink
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
@ -44,5 +44,5 @@ else
# Relaunch swaybg
pkill -x swaybg
setsid swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&2 &
uwsm app -- swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&1 &
fi