From 6833247cc9b6c46c9c07443d64e0a3ce8601a100 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Fri, 6 Feb 2026 08:10:31 -0800 Subject: Account for sway also setting I3SOCK --- home/nipsy/common/optional/desktops/rotatebg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/nipsy/common/optional/desktops/rotatebg b/home/nipsy/common/optional/desktops/rotatebg index 05443ae..1b5b95b 100755 --- a/home/nipsy/common/optional/desktops/rotatebg +++ b/home/nipsy/common/optional/desktops/rotatebg @@ -35,7 +35,7 @@ while true; do bg=(~/bg/**/*(.)) # if running i3, we need to set the background immediately, at random based on the array length - if [[ -S ${I3SOCK} ]]; then + if [[ -S ${I3SOCK} && ! ${I3SOCK} =~ "sway" ]]; then feh --no-fehbg --bg-max ${bg[$((RANDOM % $#bg + 1))]} fi -- cgit v1.2.3