Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 16th, 2010 | Syntax: Bash | Size: 0.47 KB | Hits: 26 | Expires: Never
Copy text to clipboard
  1. #!/bin/bash
  2.  
  3. #some declars
  4. MNTDIR=/media
  5. MENUHEIGHT=$(ls $MNTDIR|wc|awk '{print $1}')
  6.  
  7. #menusetting
  8. NORMBGCOLOR="#2e3436"
  9. NORMFGCOLOR="#d3d7cf"
  10. SELBGCOLOR="#555753"
  11. SELFGCOLOR="#d3d7cf"
  12. DFONT="-xos4-terminus-bold-r-normal--20-*-*-*-*-*-iso10646-*"
  13.  
  14. #some functions
  15. menulst () {
  16.         dmenu -l $1 \
  17.         -b -fn $DFONT -nb "$NORMBGCOLOR" \
  18.         -nf "$NORMFGCOLOR" -sb "$SELBGCOLOR" \
  19.         -sf "$SELFGCOLOR"
  20. }
  21.  
  22. # And do umount
  23. umount $MNTDIR/$(ls $MNTDIR/|menulst $MENUHEIGHT)