diff --git a/templates/bin/jdisplays b/templates/bin/jdisplays index 0ea12b0..b380f26 100755 --- a/templates/bin/jdisplays +++ b/templates/bin/jdisplays @@ -6,9 +6,5 @@ case "$1" in *) exit 1 ;; esac -if [ -e "$NIRI_SOCKET" ] -then - niri msg action power-$onoff-monitors -else - wlopm --$onoff '*' -fi +[ -e "$NIRI_SOCKET" ] && niri msg action power-$onoff-monitors \ + || wlopm --$onoff '*'