[profile] add DWL_STATUS_PIPE var
This commit is contained in:
parent
49b80c79fa
commit
5e0c6f8db4
|
@ -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
|
||||
|
|
2
.profile
2
.profile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue