fetch

A MSYS2-compatible sys-info prompt
Log | Files | Refs | README | LICENSE

commit 266e352cc66b14b9b76621623ca87b5cd1c6eda3
parent a9d7df0a1559f9e66ee40adc59a38a942d355bc3
Author: Byron Torres <b@torresjrjr>
Date:   Sun, 31 Jan 2021 01:29:01 +0000

Gather the graphic's dimensions programmatically

Diffstat:
Mfetch | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fetch b/fetch @@ -17,9 +17,6 @@ padding() { printf '\e[%sC' "${graphic_x}" ;} ## Graphic -graphic_y=7 # height -graphic_x=15 # width - graphic() { #b=':::::::::::::::::::::::::::::::::::::::::::::' # status background printf "\ @@ -33,6 +30,9 @@ ${c2} ${b}${c0} " } +graphic_y=$(graphic | wc -l) # height +graphic_x=$(graphic | wc -L) # width + ## Statuslines