From b2a7c1c6995d0c6d2db3e81675ac03ce72617248 Mon Sep 17 00:00:00 2001 From: yage Date: Sat, 26 Feb 2022 09:11:04 -0700 Subject: [PATCH] updates for butterfree --- bin/xorg/butterfree/common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/xorg/butterfree/common b/bin/xorg/butterfree/common index 19ecff6..84e60dc 100644 --- a/bin/xorg/butterfree/common +++ b/bin/xorg/butterfree/common @@ -23,11 +23,12 @@ EXTERNAL_MONITOR=$(GET_DEFAULT_EXTERNAL_MONITOR) DISCONNECT_OTHER() { local SFX="$1" - for D in $(xrandr | awk '{print $1;}' | grep -v $(GET_PRIMARY_MONITOR)) + for D in $(xrandr --listmonitors | sed '1d' | awk '{print $NF;}' | grep -v "^$(GET_PRIMARY_MONITOR)$") do xrandr --output $D --off done + sleep 1 $DOTWRYN/bin/randomize-background [ $SFX ] && ( PLAY_SFX $SFX ) &