Add systemd/manual-inhibit-sleep@.service
This commit is contained in:
9
systemd/manual-inhibit-sleep@.service
Normal file
9
systemd/manual-inhibit-sleep@.service
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Inhibit sleep for some period of time
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
ExecStart=systemd-inhibit --what=sleep:idle "--who=manual-inhibit-sleep@.service" --mode=block "--why=User manually inhibited sleep" sleep %i
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user