updates for butterfree

This commit is contained in:
Wryn (yage) Wagner 2022-02-26 09:11:04 -07:00
parent 69e697fb7c
commit b2a7c1c699

View File

@ -23,11 +23,12 @@ EXTERNAL_MONITOR=$(GET_DEFAULT_EXTERNAL_MONITOR)
DISCONNECT_OTHER() { DISCONNECT_OTHER() {
local SFX="$1" 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 do
xrandr --output $D --off xrandr --output $D --off
done done
sleep 1
$DOTWRYN/bin/randomize-background $DOTWRYN/bin/randomize-background
[ $SFX ] && ( PLAY_SFX $SFX ) & [ $SFX ] && ( PLAY_SFX $SFX ) &