From 4f1f87d34c8c97795fa3792f2ae3f86763ce6766 Mon Sep 17 00:00:00 2001 From: "|::||: |:|:|" Date: Thu, 8 Jan 2015 11:56:50 +0200 Subject: [PATCH] redid the term scripts to use powerline (and a "don't save ssh key") --- amigaterm2.sh | 8 ++++---- amigaterm3.sh | 34 ++++++++++++++++++++++++++++++++++ badssh | 3 +++ pickfontst.sh | 12 ++++++++++++ solarizedterm.sh | 2 +- 5 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 amigaterm3.sh create mode 100755 badssh create mode 100755 pickfontst.sh diff --git a/amigaterm2.sh b/amigaterm2.sh index 2912832..69cd576 100755 --- a/amigaterm2.sh +++ b/amigaterm2.sh @@ -4,10 +4,10 @@ if [[ $1 == '-h' ]]; then echo Help: $0 fontsize tintcolor fadepercent fadecolor cursorcolor extrashit else #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" + TP="xft:TopazPlus a600a1200a4000 for Powerline-$1:antialias=false" + PN="xft:P0T\-NOoDLE for Powerline-$1" + MS="xft:mOsOul for Powerline-$1" + MK="xft:MicroKnightPlus for Powerline-$1" TINTCOLOR=$2 FADEPERCENT=$3 FADECOLOR=$4 diff --git a/amigaterm3.sh b/amigaterm3.sh new file mode 100644 index 0000000..2912832 --- /dev/null +++ b/amigaterm3.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# help shit +if [[ $1 == '-h' ]]; then + echo Help: $0 fontsize tintcolor fadepercent fadecolor cursorcolor extrashit +else +#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 + CURSORCOLOR=$5 +# get rid of these arguments so we can do the rest at the end + shift 5 +echo urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \ + -tint "$TINTCOLOR" -fade "$FADEPERCENT" \ + -fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \ + -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 +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 +is -tn "xterm-256color" $@ + fi +fi diff --git a/badssh b/badssh new file mode 100755 index 0000000..54a5ede --- /dev/null +++ b/badssh @@ -0,0 +1,3 @@ +#!/bin/bash +ssh -v -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $1 + diff --git a/pickfontst.sh b/pickfontst.sh new file mode 100755 index 0000000..3da36ce --- /dev/null +++ b/pickfontst.sh @@ -0,0 +1,12 @@ +#!/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 | sort |dmenu -i -l 25 -fn mOsOul -p Font` +if [ "$PICK" ]; then + FONT=`echo $PICK | cut -d: -f2` + echo st -f \"$FONT:pixelsize=16:antialias=false:autohint=false\" + st -f "$FONT:pixelsize=16:antialias=false:autohint=false" +fi + diff --git a/solarizedterm.sh b/solarizedterm.sh index 5739f85..59d677c 100755 --- a/solarizedterm.sh +++ b/solarizedterm.sh @@ -1,6 +1,6 @@ xrdb ~/xresources/solorized_xresources -urxvtc -fn "xft:TopazPlus a600a1200a4000-:antialias=false" \ +urxvtc -fn "xft:TopazPlus a600a1200a4000 for Powerline-12:antialias=false" \ -fi "xft:P0T\-NOoDLE" -fb "xft:mOsOul" -fbi "xft:Microknight" \ +is -cr "#cb4b16"