also try wlopm when niri msg
does not work, even if socket envvar exists
This commit is contained in:
parent
b7060ee406
commit
a86036ebfd
1 changed files with 2 additions and 6 deletions
|
@ -6,9 +6,5 @@ case "$1" in
|
||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -e "$NIRI_SOCKET" ]
|
[ -e "$NIRI_SOCKET" ] && niri msg action power-$onoff-monitors \
|
||||||
then
|
|| wlopm --$onoff '*'
|
||||||
niri msg action power-$onoff-monitors
|
|
||||||
else
|
|
||||||
wlopm --$onoff '*'
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue