initial commit...
This commit is contained in:
commit
d190b6b63e
6 changed files with 92 additions and 0 deletions
26
pickfontterm.sh
Executable file
26
pickfontterm.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
# this may not work any longer with the way that arch has
|
||||
# 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.*//"`
|
||||
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} ))
|
||||
DACOL=${COLORS[$DACOLN]}
|
||||
FADECOLOR=${COLORS[$FADECOLN]}
|
||||
DAFADE=$(( $RANDOM % 25 ))
|
||||
DAFADE=$(( $DAFADE + 25 ))
|
||||
#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"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue