cronhelp: use environment from window manager
This commit is contained in:
parent
dc9575ce47
commit
bbb6368e8c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue