Created
February 18, 2025 23:19
-
-
Save VSharapov/ed7c53f7fecc914b45d5ad400edfa1ef to your computer and use it in GitHub Desktop.
Inhibit lid switch until reboot
This file contains hidden or 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 | |
| sudo systemd-inhibit --what=handle-lid-switch --mode=block sleep 9999d & disown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment