FrenzyExists / frenzch.sh

A simple dynamic fetch for aesthetics :3
MIT License
27 stars 1 forks source link

Breaks when trying to show dual displays. #8

Open nullnullnull999 opened 3 years ago

nullnullnull999 commented 3 years ago

I currently have a dual monitor setup and the display section glitches out trying to show both my 1920x1080 monitors.

image image

What it should probably do (ft. neofetch) image

FrenzyExists commented 3 years ago

Ah I see, mmm, I think the prob is with the extra spacing, the resolution is obtained by xrandr --current | grep ' connected' | grep -o '[0-9]\+x[0-9]\+' and to keep the size consistent: size=$((32 - $(echo "$res" | wc -m) - $(echo "display" | wc -m) - 2)) Since having the res called twice is quite a large string because the fetch size is 32 letters (hardcoded atm), I think I could add something like display ........ 1920x1080 (2) as a way to show there's two monitors of the same size, I still wonder how I could keep the sizing if both monitors are of different sizes :thinking: . I'll keep in it mind, I'll let you know if I fix the issue, thanks for the heads up! :+1:

FrenzyExists commented 1 year ago

Update:

@glintty I finally fixed the issue, two years late but heyyy better late than never.