Update from eponine -- new screenrc, et al

git-svn-id: http://photonzero.com/dotfiles/trunk@24 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2008-09-22 23:10:35 +00:00
parent 4476597643
commit 29c7fd1814
7 changed files with 83 additions and 25 deletions

View file

@ -47,7 +47,7 @@ alias grep="grep --color=auto"
alias screen="screen -R" alias screen="screen -R"
#Cosmetic/useful #Cosmetic/useful
alias naim="naim --noscreen" #alias naim="naim --noscreen"
alias wallall="wallall -p" alias wallall="wallall -p"
alias cal="cal -3" alias cal="cal -3"
alias google='surfraw google' alias google='surfraw google'

View file

@ -36,7 +36,8 @@ case $TERM in
TITLEBAR='\[\033]0;\u@\h:\w\007\]' TITLEBAR='\[\033]0;\u@\h:\w\007\]'
;; ;;
*) *)
TITLEBAR="\033k\033\134"; # TITLEBAR="\033k\033\134";
TITLEBAR="";
esac; esac;
PS1="\[\033[0m\]\[\033[0;32m\]\u\[\033[0m\]\[\033[0;37m\]@\[\033[0m\]\[\033[0;32m\]\h\[\033[0m\]\[\033[0;37m\]:\[\033[0;34m\][\[\033[1;36m\]\w\[\033[0;34m\]]\[\033[0;0m\]\$ " PS1="\[\033[0m\]\[\033[0;32m\]\u\[\033[0m\]\[\033[0;37m\]@\[\033[0m\]\[\033[0;32m\]\h\[\033[0m\]\[\033[0;37m\]:\[\033[0;34m\][\[\033[1;36m\]\w\[\033[0;34m\]]\[\033[0;0m\]\$ "
#PS1="${TITLEBAR}\[\033[0m\]\[\033[0;34m\][\[\033[0m\]\[\033[1;33m\]\$(date +%H:%M)|\!\[\033[0m\]\[\033[0;34m\]] \[\033[0m\]\[\033[0;32m\]\u\[\033[0m\]\[\033[0;37m\]@\[\033[0m\]\[\033[0;32m\]\h\[\033[0m\]\[\033[0;37m\]:\[\033[0m\]\[\033[1;36m\]\w\[\033[0m\]\[\033[0;0m\]\$ " #PS1="${TITLEBAR}\[\033[0m\]\[\033[0;34m\][\[\033[0m\]\[\033[1;33m\]\$(date +%H:%M)|\!\[\033[0m\]\[\033[0;34m\]] \[\033[0m\]\[\033[0;32m\]\u\[\033[0m\]\[\033[0;37m\]@\[\033[0m\]\[\033[0;32m\]\h\[\033[0m\]\[\033[0;37m\]:\[\033[0m\]\[\033[1;36m\]\w\[\033[0m\]\[\033[0;0m\]\$ "

50
.muttrc
View file

@ -1,9 +1,55 @@
set alias_file=~/.mutt_alias set alias_file=~/.mutt_alias
set folder=~/mail/ set folder=~/Maildir/
set move=no set move=no
set mark_old=no set mark_old=no
set pager_stop=yes set pager_stop=yes
set postponed=+postponed set postponed=+postponed
set signature=~/.sig set signature=~/.sig
set mbox_type=Maildir
set mbox="~/Maildir"
set record="+.Sent"
set postponed="+.Drafts"
set spoolfile="~/Maildir"
mailboxes `echo -n "+ "; find ~/Maildir -maxdepth 1 -type d -name ".*" -printf "+'%f' "`
#set sort=date-received #set sort=date-received
set spoolfile=+michener.com #set spoolfile=+michener.com
# colors
color normal white black
color attachment brightyellow black
color hdrdefault cyan black
color indicator black cyan
color markers brightred black
color quoted green black
color signature cyan black
color status brightgreen blue
color tilde blue black
color tree red black
color header brightgreen black ^From:
color header brightcyan black ^To:
color header brightcyan black ^Reply-To:
color header brightcyan black ^Cc:
color header brightblue black ^Subject:
color body brightred black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
color body brightblue black (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
# GnuPG configuration
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
macro compose A "<attach-message>?<toggle-mailboxes>" "attach message(s) to this message"

View file

@ -5,7 +5,7 @@ OPTIONS=windowtype:tty,toptenwin,hilite_pet,!number_pad,!cmdassist
OPTIONS=fixinv,safe_pet,sortpack,tombstone,color OPTIONS=fixinv,safe_pet,sortpack,tombstone,color
OPTIONS=verbose,news,fruit:potato OPTIONS=verbose,news,fruit:potato
OPTIONS=dogname:Darty OPTIONS=dogname:Darty
OPTIONS=catname:Muffins OPTIONS=catname:Tiger
OPTIONS=pickup_types:$ OPTIONS=pickup_types:$
OPTIONS=nomail OPTIONS=nomail

View file

@ -37,20 +37,20 @@ bind ^F process f
# make split more convenient: it now brings up the previous window # make split more convenient: it now brings up the previous window
# instead of a blank one, and it leaves the cursor in the new region # instead of a blank one, and it leaves the cursor in the new region
register S "^O:split^M^O^I^O^O" register S "^A:split^M^A^I^A^A"
bind S process S bind S process S
# bind generic function keys to switch windows # bind generic function keys to switch windows
bindkey -k k0 select 9 bindkey -k k0 select 0
bindkey -k k1 select 0 bindkey -k k1 select 1
bindkey -k k2 select 1 bindkey -k k2 select 2
bindkey -k k3 select 2 bindkey -k k3 select 3
bindkey -k k4 select 3 bindkey -k k4 select 4
bindkey -k k5 select 4 bindkey -k k5 select 5
bindkey -k k6 select 5 bindkey -k k6 select 6
bindkey -k k7 select 6 bindkey -k k7 select 7
bindkey -k k8 select 7 bindkey -k k8 select 8
bindkey -k k9 select 8 bindkey -k k9 select 9
#bindkey -k k; select 0 #bindkey -k k; select 0
bindkey "\033[[A" select 1 bindkey "\033[[A" select 1
@ -82,7 +82,7 @@ bindkey "\033[15~" select 5
bindkey -k kD stuff \177 bindkey -k kD stuff \177
# by default, always let me know when background windows produce text # by default, always let me know when background windows produce text
defmonitor on #defmonitor on
# don't lock up when one display dies # don't lock up when one display dies
defnonblock on defnonblock on
@ -108,7 +108,7 @@ msgwait 15
nethack on nethack on
# use nifty cool dynamic window title updating # use nifty cool dynamic window title updating
shelltitle "$ |bash" shelltitle "$ |zsh"
# by default, wait an entire minute before deciding a window is silent # by default, wait an entire minute before deciding a window is silent
silencewait 60 silencewait 60
@ -118,7 +118,7 @@ startup_message off
# pretend to be a vt100, since no one has heard of terminal type "screen" # pretend to be a vt100, since no one has heard of terminal type "screen"
#term vt220 #term vt220
term xterm-color term xterm
# use an xterm's title bar to display the hardstatus line # use an xterm's title bar to display the hardstatus line
termcapinfo xterm hs:ts=\E]0;:fs=\007:ds=\E]0;\007 termcapinfo xterm hs:ts=\E]0;:fs=\007:ds=\E]0;\007
@ -128,6 +128,8 @@ vbell off
#fix scrollback residue from size changes #fix scrollback residue from size changes
altscreen on altscreen on
setenv SCREENME false
# make only the first window show up in the utmp, and report idle time to it # make only the first window show up in the utmp, and report idle time to it
#screen -t "] |login" 0 #screen -t "] |login" 0
@ -139,5 +141,12 @@ deflogin on
hardstatus on hardstatus on
hardstatus alwayslastline hardstatus alwayslastline
#caption always "%{= C}screen[%n] | %c | %h%=" #caption always "%{= C}screen[%n] | %c | %h%="
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %D %m/%d %C%a " #hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %D %m/%d %C%a "
hardstatus string '%{= kG}[ %{G}%H %{g} %{C}%l%{c}%{G}][%{g}%= %{= kw}%?%-Lw%?%{r}(%{W}%n %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{C} %m/%d %{W}%c %{g}]'
windowlist string " screen[%n %t] %h" windowlist string " screen[%n %t] %h"
aclchg root -wx "#?"
aclchg root +x detach,select,next,prev,windowlist

View file

@ -1,20 +1,22 @@
#!/usr/bin/perl #!/usr/bin/perl
$averageto = $ARGV[0]; $averageto = $ARGV[0];
for ($i = 0; $i < $averageto; $i++) { for ($i = 0; $i < $averageto + 1; $i++) {
$temp[$i] = 0; $_ = <STDIN>;
chomp;
$temp[$i] = $_;
} }
while (<STDIN>) { while (<STDIN>) {
chomp; chomp;
$x = 0; $x = 0;
for ($i = 0; $i < $averageto; $i++) { for ($i = 0; $i < $averageto + 1; $i++) {
$x += $temp[$i]; $x += $temp[$i];
} }
$x = $x + $_; $x = $x + $_;
$x = $x / ($averageto + 1); $x = $x / ($averageto + 1);
print "$x\n"; print "$x\n";
for ($i = 0; $i < $averageto - 1; $i++) { for ($i = 0; $i < $averageto; $i++) {
$temp[$i] = $temp[($i + 1)]; $temp[$i] = $temp[($i + 1)];
} }
$temp[($averageto -1)] = $_; $temp[($averageto -1)] = $_;

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
pv /home/michener/src/videostream/testscript.txt $1 | nc -l -p 49300 pv /home/michener/src/videostream/testscript.txt $* | nc -l -p 4321