Tools
July 4, 2020

Linux

Temporary disable lid sleep

Laptop will not sleep while this running:
systemd-inhibit --what=handle-lid-switch sleep 1d

Handy to create alias:
alias insomnia='systemd-inhibit --what=handle-lid-switch sleep 1d'