]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blob - contrib/listen_lid.sh
line buffering
[deb_pkgs/autorandr.git] / contrib / listen_lid.sh
1 #!/bin/bash
2 #
3 # /!\ You must be part of the input group
4 # sudo gpasswd -a $USER input
5
6 stdbuf -oL libinput debug-events | grep --line-buffered SWITCH_TOGGLE | while read line; do
7     autorandr --change --default default
8 done