cronhelp: use environment from window manager

This commit is contained in:
crater2150 2023-05-30 10:38:43 +02:00
parent dc9575ce47
commit bbb6368e8c

View file

@ -2,6 +2,9 @@
#dep:xprintidle pgrep chronic
ALLARGS=("$@")
WINDOW_MANAGER=awesome
WM_PID=$(pgrep WINDOW_MANAGER | head -n 1)
export "${(@ps:\000:)$(</proc/${WM_PID}/environ)}"
zparseopts -D -maxidle:=maxidle -in-chronic=chronic l:=logfile -logfile:=logfile