Sample Header Ad - 728x90

write error: broken pipe with lemonbar script

4 votes
2 answers
750 views
I'm trying to pipe a bar script into lemonbar in bspwm. In my bspwmrc I have: ~/.config/bspwm/lemonbar.sh | lemonbar -p lemonbar.sh contains: #!/bin/bash clock() { date +%H:%M:%S } while true; do echo "%{c}$(clock)" sleep 1; done Everything works as expected, except when I exit bspwm I get: line 12: echo: write error: Broken pipe Obviously the error has something to do with the echo on line 12 but I can't figure out exactly what
Asked by user217301 (41 rep)
Feb 21, 2017, 09:30 PM
Last activity: Oct 5, 2024, 02:11 PM