mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-18 12:36:59 +00:00
adding a lid listener xdg/autostart service
This commit is contained in:
parent
5366a5dc37
commit
51a6936165
6
contrib/etc/xdg/autostart/autorandr-lid-listener.desktop
Normal file
6
contrib/etc/xdg/autostart/autorandr-lid-listener.desktop
Normal 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
|
Loading…
Reference in New Issue
Block a user