Created
September 24, 2016 17:05
-
-
Save larsbratholm/3e276756acb0e9012cfc8b465589f1c4 to your computer and use it in GitHub Desktop.
deactivate sleepmode on lid close
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# As far as I remember only disables sleep until the terminal where this is run is closed. | |
systemd-inhibit --what=handle-lid-switch sleep 1d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment