Created
September 23, 2012 14:25
-
-
Save funrep/3771505 to your computer and use it in GitHub Desktop.
hmm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^[[4;37mimg^[[0;34m # ^[[0;0m^[[K^M^[[4;37mimg^[[0;34m # ^[[0;0m | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;37m | |
img^[[0;34m # ^[[0;0m ^H^H^H | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;37mimg^[[0;34m # ^[[0;0m | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;37mim | |
g^[[0;34m # ^[[0;0m ^H^H^H^H | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;37mimg^[[0;34m # ^[[0;0m | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;3 | |
7mimg^[[0;34m # ^[[0;0m ^H^H | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^Hnano^M^M | |
^[[?1049h^[[1;56r^[[0m^[[?12l^[[?25h^[[39;49m^[[39;49m^[[0m^[[H^[[2J^[(B^[[0;7m GNU nano 2.2 | |
.6 New Buffer ^[[56;22H[ lin | |
e 1/1 (100%), col 1/1 (100%), char 0/0 (0%) ]^M^[[2d^[[0m^[[1;84H^[(B^[[0;7mModified^M^[[2d^[ | |
[0mff="/tmp/monsterwm.fifo" [[ -p $ff ]] || mkfifo -m 600 "$ff"^M^[[3d# desktop names^M^[[4dd | |
s=("web" "dev" "foo" "null")^M^[[5d# layout names^M^[[6dms=("T" "M" "B" "G" "F") while read - | |
t 60 -r wmout || true; do^[[7;5Hif [[ $wmout =~ ^(([[:digit:]]+:)+[[:digit:]]+ ?)+$ ]]; then^ | |
[[8;9Hread -ra desktops <<< "$wmout" && unset r^[[9;9Hfor desktop in "${desktops[@]}"; do^[[1 | |
0;13HIFS=':' read -r d w m c u <<< "$desktop"^[[11;13H((c)) && fg="\\f4" i="${ms[$m]}" || fg= | |
"\\f3"^[[12;13H((u)) && w+='\f5!'^[[13;13Hr+="$fg${ds[$d]} ${w/#0/\\f8-} \\f3:: "^[[14;9Hdone | |
^[[15;9Hr="${r%::*}"^[[16;5Hfi^[[17d^H^Hprintf "\\\l%s\\\r%s\n" "$r\\f5[\\f3$i\\f5]" "$(date | |
+"%F %R")" done < "$ff" |^M^[[18dbar &^M^[[19d# pass output to fifo^M^[[20dmonsterwm > "$ff"^ | |
[[56;18H^[(B^[[0;7m[ line 19/20 (95%), col 18/18 (100%), char 708/709 (99%) ]^[[20;18H^[[0m^M | |
^[[56d^[(B^[[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? | |
^H ^H^[[1@ ^[[56;62H^[[0m^M^[(B^[[0;7mFile Name to Write: | |
^[[56;21H^[[0m^[[56;40H^[[1K ^[(B^[[0;7m[ Cancelled ]^[[0m^[[K^[[20;18H^ | |
M^[[56d^[(B^[[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? | |
^H ^H^[[1@ ^[[56;62H^[[0m^M^[(B^[[0;7mFile Name to Write: | |
^[[56;21H^[[0m^[(B^[[0;7mp^[[0m^[(B^[[0;7mo^[[0m^[(B^[[0;7mo^[[0m^[(B^[ | |
[0;7mp^[[0m^M^[[39;49m^[[0m^[[J^[[1;37H^[(B^[[0;7mFile: poop^[[1;84H ^[[56;93H^[[0m^[[ | |
56;1H^[[?1049l^M^[[4;37mimg^[[0;34m # ^[[0;0mexit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on
~/.bashrc
change your PS1 fromto
This will probably fix the (imo not-so) random gap.