Skip to content

Instantly share code, notes, and snippets.

@Dobbie03
Created January 24, 2017 06:29
Show Gist options
  • Save Dobbie03/71a57a8c0c7d869662af973869fbe979 to your computer and use it in GitHub Desktop.
Save Dobbie03/71a57a8c0c7d869662af973869fbe979 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# written for BunsenLabs by damo <damo@bunsenlabs.org> May 2015
#
# -nb normal background colour
# -nf normal foreground colour
# -sb selected background colour
# -sf selected foreground colour
#
# -b place menu at bottom (otherwise top)
#
# See 'man dmenu' for more information.
USAGE="\n To start dmenu at the top or bottom of the screen,\n\
add or remove -b in the dmenu_run command in dmenu-bind.sh.\n\
-b locate at bottom\n\n\
To change colours, edit the options:\n\n\
-nb normal background colour\n\
-nf normal foreground colour\n\
-sb selected background colour\n\
-sf selected foreground colour\n\n\
Get all configuration options with 'man dmenu'.\n"
if [[ $# = 1 ]]; then
case $1 in
-h|--help ) echo -e "$USAGE"
exit 0;;
* ) echo -e "\n Invalid command argument\n"
exit 1;;
esac
fi
dmenu_run -b -i -nb '#151617' -nf '#d8d8d8' -sb '#d8d8d8' -sf '#151617'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment