From ca5e52c50b0a62ef4e865a048c872b4a23c4c3ae Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 7 Sep 2024 17:49:35 +0200 Subject: Fix setmonitor script if no external monitor is attached --- yoga/bin/setmonitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/bin/setmonitor b/yoga/bin/setmonitor index f9fa5c1..33aeff9 100755 --- a/yoga/bin/setmonitor +++ b/yoga/bin/setmonitor @@ -10,7 +10,7 @@ if [ $# -ne 2 ]; then fi MONITORS="$(xrandr --listactivemonitors | tail -n +2 | cut -d'+' -f2 | cut -d' ' -f1 | sed 's/^\*//')" -EXTERNAL_MONITORS="$(echo $MONITORS | tr ' ' '\n' | grep -v eDP)" +EXTERNAL_MONITORS="$(echo $MONITORS | tr ' ' '\n' | grep -v eDP || true)" # Usage: brightness MONITOR brightness () { -- cgit v1.2.3