You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
801B

  1. #!/bin/zsh
  2. PANEL_FIFO=/tmp/panel-fifo-vnc
  3. # If already started, kill utilities
  4. if [ -e "$PANEL_FIFO" ]; then
  5. rm "$PANEL_FIFO"
  6. killall panel_bar
  7. killall bspc
  8. killall xtitle
  9. killall clock
  10. killall battery
  11. killall volume
  12. fi
  13. mkfifo "$PANEL_FIFO"
  14. bspc subscribe > "$PANEL_FIFO" &
  15. xtitle -sf 'T%s\n' > "$PANEL_FIFO" &
  16. clock -sf 'CD%a %d %b' > "$PANEL_FIFO" &
  17. clock -sf 'CT%H:%M' > "$PANEL_FIFO" &
  18. width=1900
  19. height=24
  20. size=10
  21. volume -sf 'VS%s' > "$PANEL_FIFO" &
  22. volume -sf 'VI%i' > "$PANEL_FIFO" &
  23. # If given a width, use it
  24. if [[ -n "$1" ]]; then
  25. width="$1"
  26. fi
  27. cat "$PANEL_FIFO" \
  28. | panel_bar \
  29. | lemonbar -g "$width"x"$height"+10+0 \
  30. -f "monofur\ for\ Powerline:size=$size" \
  31. -f "FontAwesome:size=$size" \
  32. -u 0 \
  33. -B '#00AAAAAA' \
  34. -F '#FF202020' &
  35. wait