]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blob - contrib/etc/xdg/autostart/autorandr-lid-listener.desktop
adding a lid listener xdg/autostart service
[deb_pkgs/autorandr.git] / contrib / etc / xdg / autostart / autorandr-lid-listener.desktop
1 [Desktop Entry]
2 Name=Autorandr Lid Listener
3 Comment=Trigger autorandr whenever the lid state changes
4 Type=Application
5 Exec=bash -c "stdbuf -oL libinput debug-events | grep --line-buffered SWITCH_TOGGLE | while read line; do autorandr --change --default default; done"
6 X-GNOME-Autostart-Phase=Initialization