From a79056d92e0b96c2702158dd47d565ace7416e11 Mon Sep 17 00:00:00 2001 From: Christophe-Marie Duquesne Date: Fri, 1 Nov 2019 14:19:41 +0100 Subject: [PATCH] supplementary script to listen to lid events --- contrib/listen_lid.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 contrib/listen_lid.sh 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 -- 2.39.2