Advertisement
twodogsdave

dmenu

Jul 6th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # written for BunsenLabs by damo <[email protected]> May 2015
  4. #
  5. # -nb normal background colour
  6. # -nf normal foreground colour
  7. # -sb selected background colour
  8. # -sf selected foreground colour
  9. #
  10. # -b place menu at bottom (otherwise top)
  11. #
  12. # See 'man dmenu' for more information.
  13.  
  14. USAGE="\n To start dmenu at the top or bottom of the screen,\n\
  15. add or remove -b in the dmenu_run command in dmenu-bind.sh.\n\
  16. -b locate at bottom\n\n\
  17. To change colours, edit the options:\n\n\
  18. -nb normal background colour\n\
  19. -nf normal foreground colour\n\
  20. -sb selected background colour\n\
  21. -sf selected foreground colour\n\n\
  22. Get all configuration options with 'man dmenu'.\n"
  23.  
  24. if [[ $# = 1 ]]; then
  25. case $1 in
  26. -h|--help ) echo -e "$USAGE"
  27. exit 0;;
  28. * ) echo -e "\n Invalid command argument\n"
  29. exit 1;;
  30. esac
  31. fi
  32.  
  33. dmenu_run -p "run:" -fn "Noto Sans-10" -i -nb '#2F343F' -nf '#DCDCDC' -sb '#3F82D3' -sf '#FFFFFF'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement