[profile] add DWL_STATUS_PIPE var

This commit is contained in:
odrling 2023-10-18 18:00:59 +02:00
parent 49b80c79fa
commit 5e0c6f8db4
No known key found for this signature in database
GPG key ID: A0145F975F9F8B75
3 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,7 @@
#!/bin/execlineb -P
importas XDG_RUNTIME_DIR XDG_RUNTIME_DIR
importas DWL_STATUS_PIPE DWL_STATUS_PIPE
importas S6_SCANDIR S6_SCANDIR
foreground { mkfifo ${XDG_RUNTIME_DIR}/dwl_status }
foreground { mkfifo ${DWL_STATUS_PIPE} }
background { s6-svscan ${S6_SCANDIR} }
redirfd -w 1 ${XDG_RUNTIME_DIR}/dwl_status cat /dev/stdin
redirfd -w 1 ${DWL_STATUS_PIPE} cat /dev/stdin

View file

@ -29,6 +29,8 @@ if test -z "${XDG_RUNTIME_DIR}"; then
fi
fi
export DWL_STATUS_PIPE="$XDG_RUNTIME_DIR/dwl_status"
ulimit -c unlimited
[ -f ~/.profile.local ] && . ~/.profile.local

View file

@ -1,3 +1,3 @@
#!/bin/execlineb -P
importas XDG_RUNTIME_DIR XDG_RUNTIME_DIR
redirfd -r 0 ${XDG_RUNTIME_DIR}/dwl_status somebar
importas DWL_STATUS_PIPE DWL_STATUS_PIPE
redirfd -r 0 ${DWL_STATUS_PIPE} somebar