Guest User

Untitled

a guest
Oct 10th, 2013
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. GNU nano 2.2.6 Datei: /home/dino/.config/bspwm/panel
  2.  
  3. #! /bin/sh
  4.  
  5. if [ $(pgrep -cx panel) -gt 1 ] ; then
  6. printf "%s\n" "The panel is already running." >&2
  7. exit 1
  8. fi
  9.  
  10. trap 'trap - TERM; kill 0' INT TERM QUIT EXIT
  11.  
  12. flavor=${1:-dzen2}
  13.  
  14. bspc config top_padding $PANEL_HEIGHT
  15. bspc control --put-status
  16. xtitle -sf 'T%s' > "$PANEL_FIFO" &
  17. clock -sf 'S%a %H:%M' > "$PANEL_FIFO" &
  18.  
  19. case "$flavor" in
  20. bar)
  21. cat "$PANEL_FIFO" | panel_bar | bar-aint-recursive &
  22. ;;
  23. dzen2)
  24. . panel_colors
  25. FONT_FAMILY='roboto'
  26. FONT_SIZE=11
  27. cat "$PANEL_FIFO" | panel_dzen2 -f "$FONT_FAMILY" -s "$FONT_SIZE" | dzen2 -h $PANEL_HEIGHT -dock -ta l$
  28. ;;
  29. esac
  30.  
  31. wait
Advertisement
Add Comment
Please, Sign In to add comment