CLI config/dotfiles
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.

43 lines
551 B

  1. #!/usr/bin/env sh
  2. wm_name='sysmenu'
  3. if xdo id -a "$wm_name" > /dev/null; then
  4. pkill -f "dzen2 -title-name $wm_name"
  5. exit
  6. fi
  7. color0="#000000"
  8. color5="#FFFFFF"
  9. screen=1
  10. out="Start
  11. urxvt
  12. dolphin
  13. firefox
  14. clementine
  15. keepassxc
  16. ktorrent"
  17. lines=$(echo -e "$out" | wc -l)
  18. echo -e "$out" | dzen2 \
  19. -title-name "$wm_name" \
  20. -bg "$color0" \
  21. -fg "$color5" \
  22. -x "2" \
  23. -y "20" \
  24. -l $((lines-1)) \
  25. -h 30 \
  26. -w 240 \
  27. -fn "Source Code Pro" \
  28. -e "onstart=uncollapse;button1=menuexec,exit;button3=exit" \
  29. -ta c \
  30. -sa c \
  31. -xs $screen \
  32. -m \
  33. -p &