mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 16:18:33 +01:00
fix ip
This commit is contained in:
20
herbstluftwm/panel_right_side.sh
Executable file
20
herbstluftwm/panel_right_side.sh
Executable 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
|
||||
}
|
||||
Reference in New Issue
Block a user