From 72c208a520d7436c35ca9d1b205172c752eaaf2a Mon Sep 17 00:00:00 2001 From: Vladimir-csp Date: Wed, 13 Nov 2019 22:40:27 +0300 Subject: [PATCH 1/1] account for occasional dash prefix, use sh --- contrib/listen_lid.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/listen_lid.sh b/contrib/listen_lid.sh index 7288490..6daad53 100755 --- a/contrib/listen_lid.sh +++ b/contrib/listen_lid.sh @@ -1,10 +1,10 @@ -#!/bin/bash +#!/bin/sh # # /!\ You must be part of the input group # sudo gpasswd -a $USER input stdbuf -oL libinput debug-events | \ - egrep --line-buffered '^ event[0-9]+\s+SWITCH_TOGGLE\s' | \ + egrep --line-buffered '^[\s-]+event[0-9]+\s+SWITCH_TOGGLE\s' | \ while read line; do autorandr --change --default default done -- 2.39.2