scripts

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

commit e386152f12ed3bf9c7f01419eee193b0233aa64f
parent 63a1cc075d5d90cb85cb24a3e3b1a388249e0735
Author: z3bra <willy@mailoo.org>
Date:   Thu Feb  5 14:05:55 +0100

cdump: use xrdb -query to get values

Diffstat:
cdump | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/cdump b/cdump @@ -1,9 +1,7 @@ #!/bin/sh -FILE=${1:-$HOME/etc/theme/wine} - for NUM in $(seq 0 7); do - CN=$(grep "^\*color${NUM}:" $FILE | cut -d':' -f2 | tr -d ' ') + CN=$(xrdb -query | grep "^\*color${NUM}:"| cut -d':' -f2 | tr -d ' ') printf "\e[0;3${NUM}m%s " $CN done echo @@ -16,7 +14,7 @@ for NUM in $(seq 0 7); do done echo for NUM in $(seq 0 7); do - CN=$(grep "^\*color$((${NUM} + 8)):" $FILE | cut -d':' -f2 | tr -d ' ') + 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"