From: Christophe-Marie Duquesne Date: Mon, 4 Nov 2019 13:32:36 +0000 (+0100) Subject: adding a lid listener xdg/autostart service X-Git-Tag: 1.9~3^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=51a693616575b38d70f34028eafce75606b666c7;hp=5366a5dc3748524ab8b892cdd1b2e5bd07c009e0;p=deb_pkgs%2Fautorandr.git adding a lid listener xdg/autostart service --- 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