Merge branch 'main' of git.zander.im:Zander671/random-scripts
This commit is contained in:
@ -38,13 +38,16 @@
|
|||||||
|
|
||||||
(defun start-inhibitor ()
|
(defun start-inhibitor ()
|
||||||
"Start the inhibitor process."
|
"Start the inhibitor process."
|
||||||
(let ((cmd (list "systemd-inhibit"
|
(let ((cmd (list "die-with-parent"
|
||||||
|
"-p" (prin1-to-string (sb-posix:getpid))
|
||||||
|
"--"
|
||||||
|
"systemd-inhibit"
|
||||||
"--mode=block"
|
"--mode=block"
|
||||||
"--what=sleep:idle"
|
"--what=sleep:idle"
|
||||||
"--who=inhibit-sleep-for-audio"
|
"--who=inhibit-sleep-for-audio"
|
||||||
"--why=PipeWire audio playing or recording"
|
"--why=PipeWire audio playing or recording"
|
||||||
"sleep"
|
"sleep"
|
||||||
(princ-to-string most-positive-fixnum))))
|
"infinity")))
|
||||||
(setq *inhibitor-process* (uiop:launch-program cmd :output "/dev/null"))
|
(setq *inhibitor-process* (uiop:launch-program cmd :output "/dev/null"))
|
||||||
(debug-format "Started inhibitor process ~S~%" cmd)))
|
(debug-format "Started inhibitor process ~S~%" cmd)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user