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,18 +3,11 @@
if [[ $1 == '-h' ]]; then
echo Help: $0 fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
else
if [[ $1 == '-1' ]]; then
SIZE=''
else
SIZE=$1
fi
#TP="xft:TopazPlus a600a1200a4000-$SIZE"
TP="xft:TopazPlus a600a1200a4000-$SIZE:antialias=false"
PN="xft:P0T\-NOoDLE-$SIZE"
MS="xft:mOsOul-$SIZE"
MK="xft:Microknight-$SIZE"
#TP="xft:TopazPlus a600a1200a4000-$1"
TP="xft:TopazPlus a600a1200a4000-$1:antialias=false"
PN="xft:P0T\-NOoDLE-$1"
MS="xft:mOsOul-$1"
MK="xft:Microknight-$1"
TINTCOLOR=$2
FADEPERCENT=$3
FADECOLOR=$4
@ -24,18 +17,18 @@ fi
echo urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
-rv -tr -sb -sr -g 80x24 -tn "xterm-256color" $@
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
-rv -tr -sb -sr -g 80x24 -tn "xterm-256color" $@
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
if [[ $? != 0 ]]; then
urxvtd -f -o
urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
-rv -tr -sb -sr -g 80x24 -tn "xterm-256color" $@
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
fi
fi

5
blgterm.sh Executable file
View file

@ -0,0 +1,5 @@
urxvtc -fn "xft:TopazPlus a600a1200a4000-:antialias=false" \
-fi "xft:P0T\-NOoDLE" -fb "xft:mOsOul" -fbi "xft:Microknight" \
+is -fg black \
-bg lightgrey \
-cr orange

5
byterm.sh Executable file
View file

@ -0,0 +1,5 @@
urxvtc -fn "xft:TopazPlus a600a1200a4000-:antialias=false" \
-fi "xft:P0T\-NOoDLE" -fb "xft:mOsOul" -fbi "xft:Microknight" \
+is -fg yellow \
-bg navy \
-cr firebrick

5
gbterm.sh Executable file
View file

@ -0,0 +1,5 @@
urxvtc -fn "xft:TopazPlus a600a1200a4000-:antialias=false" \
-fi "xft:P0T\-NOoDLE" -fb "xft:mOsOul" -fbi "xft:Microknight" \
+is -fg chartreuse \
-bg black \
-cr forestgreen

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

View file

@ -13,4 +13,4 @@ DASHP=$(( $DASHP + 10 ))
#DAFADE=$(( $DAFADE + 50 ))
#Help: /home/andrew/bin//amigaterm2.sh fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
amigaterm2.sh -1 "$DACOL" "$DAFADE" "$DAFCOL" green -sh "$DASHP" "$@"
~/bin/amigaterm2.sh 12 "$DACOL" "$DAFADE" "$DAFCOL" green -sh "$DASHP" "$@"

6
rwterm.sh Executable file
View file

@ -0,0 +1,6 @@
urxvtc -fn "xft:TopazPlus a600a1200a4000-:antialias=false" \
-fi "xft:P0T\-NOoDLE" -fb "xft:mOsOul" -fbi "xft:Microknight" \
+is -fg red \
-bg ghostwhite \
-cr gold

8
solarizedterm.sh Executable file
View file

@ -0,0 +1,8 @@
xrdb ~/solorized_xresources
urxvtc -fn "xft:TopazPlus a600a1200a4000-:antialias=false" \
-fi "xft:P0T\-NOoDLE" -fb "xft:mOsOul" -fbi "xft:Microknight" \
+is -cr "#cb4b16"
xrdb ~/standard_xresources

11
terminal_colors Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
# Print four lines showing blocks of colors: 0-7 | 0-7bold | 8-15 | 8-15bold
perl -CADS -lwe '
my $block = shift || (chr(0x2588) x 3);
for (["", 0], ["1;", 0], ["", 8], ["1;", 8]) {
my ($bold, $offset) = @$_;
my @range = map $offset + $_, 0..7;
printf "%s %-6s ", $bold ? "bold" : "norm", "$range[0]-$range[-1]";
print map("\e[${bold}38;5;${_}m$block", @range), "\e[0m"
}
' "$@"

View file

@ -0,0 +1,71 @@
! Solarized color scheme for the X Window System
!
! http://ethanschoonover.com/solarized
! Common
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
! Dark
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
! Light
! #define S_base03 #fdf6e3
! #define S_base02 #eee8d5
! #define S_base01 #93a1a1
! #define S_base00 #839496
! #define S_base0 #657b83
! #define S_base1 #586e75
! #define S_base2 #073642
! #define S_base3 #002b36
! To only apply colors to your terminal, for example, prefix
! the color assignment statement with its name. Example:
!
! URxvt*background: S_base03
*background: S_base03
*foreground: S_base0
*fading: 40
*fadeColor: S_base03
*cursorColor: S_base1
*pointerColorBackground: S_base01
*pointerColorForeground: S_base1
*color0: S_base02
*color1: S_red
*color2: S_green
*color3: S_yellow
*color4: S_blue
*color5: S_magenta
*color6: S_cyan
*color7: S_base2
*color8: S_base03
*color9: S_orange
*color10: S_base01
*color11: S_base00
*color12: S_base0
*color13: S_violet
*color14: S_base1
*color15: S_base3

View file

@ -0,0 +1,31 @@
! Black
*color0: #000000
*color8: #666666
! Red
*color1: rgb:B0/00/00
*color9: rgb:FF/00/00
! Green
*color2: #00B000
*color10: #00FF00
! Yellow
*color3: rgb:B0/B0/00
*color11: rgb:ff/ff/00
! Blue
*color4: #0000B0
*color12: #0000FF
! Magenta
*color5: #B000B0
*color13: #FF00FF
! Cyan
*color6: #00B0B0
*color14: #00FFFF
! White
*color7: #B0B0B0
*color15: #ffffff