From: Christophe-Marie Duquesne Date: Fri, 1 Nov 2019 13:19:41 +0000 (+0100) Subject: supplementary script to listen to lid events X-Git-Tag: 1.9~3^2~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a79056d92e0b96c2702158dd47d565ace7416e11;p=deb_pkgs%2Fautorandr.git supplementary script to listen to lid events --- diff --git a/contrib/listen_lid.sh b/contrib/listen_lid.sh new file mode 100755 index 0000000..976b26d --- /dev/null +++ b/contrib/listen_lid.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# +# /!\ You must be part of the input group +# sudo gpasswd -a $USER input + +libinput debug-events | grep SWITCH_TOGGLE | while read event; do + autorandr --change --default default +done