scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit 7a4e11bf2c8f53fc95e80e0fd04225c920188922
parent 453feee18ddd758f1c33ea16aa2daf97047d6eeb
Author: z3bra <willyatmailoodotorg>
Date:   Mon Sep 21 23:35:39 +0200

cdump: change display chars

Diffstat:
cdump | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/cdump b/cdump @@ -1,20 +1,20 @@ #!/bin/sh for NUM in $(seq 0 7); do - printf "\e[0;3${NUM}m▒▒▒▒▒▒▒ " + CN=$(xrdb -query | grep "^\*color${NUM}:"| cut -d':' -f2 | tr -d ' ') + printf "\e[0;3${NUM}m%s " $CN done echo for NUM in $(seq 0 7); do - CN=$(xrdb -query | grep "^\*color${NUM}:"| cut -d':' -f2 | tr -d ' ') - printf "\e[0;3${NUM}m%s " $CN + printf "\e[0;3${NUM}m███████ " done echo for NUM in $(seq 0 7); do - CN=$(xrdb -query | grep "^\*color$((${NUM} + 8)):"| cut -d':' -f2 | tr -d ' ') - printf "\e[1;3${NUM}m%s " $CN + printf "\e[1;3${NUM}m███████ " done echo for NUM in $(seq 0 7); do - printf "\e[1;3${NUM}m▒▒▒▒▒▒▒ " + CN=$(xrdb -query | grep "^\*color$((${NUM} + 8)):"| cut -d':' -f2 | tr -d ' ') + printf "\e[1;3${NUM}m%s " $CN done printf "\e[0m\n"