adding a lid listener xdg/autostart service

This commit is contained in:
Christophe-Marie Duquesne 2019-11-04 14:32:36 +01:00
parent 5366a5dc37
commit 51a6936165
1 changed files with 6 additions and 0 deletions

View File

@ -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