aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2026-02-06 08:10:31 -0800
committerMark Nipper <nipsy@bitgnome.net>2026-02-06 08:10:31 -0800
commit6833247cc9b6c46c9c07443d64e0a3ce8601a100 (patch)
tree4a4c2465bbf5eeeddf7d712e4da6f3bdd09079d8 /home
parentb5bcd55923a99ef0c11e14fbab0d6ce0a02f26fb (diff)
downloadnix-6833247cc9b6c46c9c07443d64e0a3ce8601a100.tar
nix-6833247cc9b6c46c9c07443d64e0a3ce8601a100.tar.gz
nix-6833247cc9b6c46c9c07443d64e0a3ce8601a100.tar.bz2
nix-6833247cc9b6c46c9c07443d64e0a3ce8601a100.tar.lz
nix-6833247cc9b6c46c9c07443d64e0a3ce8601a100.tar.xz
nix-6833247cc9b6c46c9c07443d64e0a3ce8601a100.tar.zst
nix-6833247cc9b6c46c9c07443d64e0a3ce8601a100.zip
Account for sway also setting I3SOCK
Diffstat (limited to '')
-rwxr-xr-xhome/nipsy/common/optional/desktops/rotatebg2
1 files changed, 1 insertions, 1 deletions
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