color fixes for terms, more terms, font-choose fix

This commit is contained in:
Jerry Tumsfeld 2013-08-24 14:37:54 +03:00
parent 89447cd970
commit ccae0c8240
11 changed files with 162 additions and 21 deletions

View file

@ -3,9 +3,10 @@
# redone the fc-list bit, if that's the case and you feel
# like fixing it, fix it...
PICK=`fc-list | dmenu -i -l 25 -fn mOsOul -p Font`
if [ "$PICK" ]; then
FONT=`echo $PICK | sed -e "/^.*/s/^/xft:/"| sed -e "s/\:sty.*//"`
PICK=`fc-list | sort |dmenu -i -l 25 -fn mOsOul -p Font`
if [ "$PICK" ]; then
FONT=`echo $PICK | cut -d: -f2 | sed -e "s/^ /xft:/"`
COLORS=('dodgerblue' 'chartreuse' 'aliceblue' 'forestgreen' 'burlywood' 'dark goldenrod' 'indian red' 'firebrick' 'Gainsboro' 'Misty Rose' 'Peach Puff' 'Seashell' 'Slate Gray' 'Tan' 'Tomato')
DACOLN=$(( $RANDOM % ${#COLORS} ))
FADECOLN=$(( $RANDOM % ${#COLORS} ))
@ -13,12 +14,17 @@ if [ "$PICK" ]; then
FADECOLOR=${COLORS[$FADECOLN]}
DAFADE=$(( $RANDOM % 25 ))
DAFADE=$(( $DAFADE + 25 ))
DASHADE=$(( $RANDOM % 50 ))
# DASHADE=$(( $DAFADE + 75 ))
#echo $DACOL : $DAFADE
# amigaterm2.sh fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
#echo ----
#echo urxvt -bc -rv -tr -sb +sr -g 80x42 -tint $TINTCOLOR -fade $DAFADE -fadecolor $FADECOLOR -tn xterm-256color -cr green -fn $FONT
#echo ----
urxvt -bc -rv -tr -sb +sr -g 80x42 -tint "$DACOL" -fade "$DAFADE" -fadecolor "$FADECOLOR" -tn xterm-256color -cr green -fn "$FONT"
# echo \
urxvtc -bc -rv -tr -sb +sr -g 80x42 -tint "$DACOL" -fade "$DAFADE" \
-fadecolor "$FADECOLOR" -tn xterm-256color -cr green -sh "$DASHADE" \
-fn "$FONT"
fi