From 51a693616575b38d70f34028eafce75606b666c7 Mon Sep 17 00:00:00 2001 From: Christophe-Marie Duquesne Date: Mon, 4 Nov 2019 14:32:36 +0100 Subject: [PATCH 1/1] adding a lid listener xdg/autostart service --- contrib/etc/xdg/autostart/autorandr-lid-listener.desktop | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 contrib/etc/xdg/autostart/autorandr-lid-listener.desktop diff --git a/contrib/etc/xdg/autostart/autorandr-lid-listener.desktop b/contrib/etc/xdg/autostart/autorandr-lid-listener.desktop new file mode 100644 index 0000000..48c7fc8 --- /dev/null +++ b/contrib/etc/xdg/autostart/autorandr-lid-listener.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Autorandr Lid Listener +Comment=Trigger autorandr whenever the lid state changes +Type=Application +Exec=bash -c "stdbuf -oL libinput debug-events | grep --line-buffered SWITCH_TOGGLE | while read line; do autorandr --change --default default; done" +X-GNOME-Autostart-Phase=Initialization -- 2.39.2