This commit is contained in:
root
2017-11-02 15:57:32 +01:00
parent 9a0c714b28
commit 35bb9c696c
7 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
source uniq_linebuffered.sh
### Generates the output for the rightside of the panel ###
hc() { "${herbstclient_command[@]:-herbstclient}" "$@" ;}
hc pad $monitor $panel_height
{
while true ; do
printf 'pystat\t%s\n' "$($HOME/.config/herbstluftwm/hl_panel_content.py)"
sleep 1 || break
done > >(uniq_linebuffered) &
## save pid and wait for signal ##
childpid=$!
hc --idle
kill $childpid
}