v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
654 stars 58 forks source link

--height,--width, posx, posy, --fontname are not working #187

Open HarishRajDR opened 2 years ago

HarishRajDR commented 2 years ago

I was trying to make pop-ups for the icons in my polybar, I want to display some HTML (essentially a website). I used this example https://gist.github.com/Misko-2083/227b53efa059f888f27bf6135b03b86b. My problem is that the window size is too small to view anything. None of these commands work --height --width --posx --posy . On the other note --fontname is also not working. Any help is appreciated. Let me know if you need any logs or something.

SS of output of the above code: image

v1cont commented 2 years ago

hi

yes it's a buggy behavior. i'll check it when i got a free time

as a workaround just remove --fixed and --pos* arguments

Wed, 20 Jul 2022 01:41:55 -0700 "Harish Raj.D.R" @.***> написав:

I was trying to make pop-ups for the icons in my polybar, I want to display some HTML (essentially a website). I used this example https://gist.github.com/Misko-2083/227b53efa059f888f27bf6135b03b86b. My problem is that the window size is too small to view anything. None of these commands work --height --width --posx --posy . On the other note --fontname is also not working. Any help is appreciated. Let me know if you need any logs or something.

here's my modified code `#!/bin/bash

UI=$(cat <<EOF <!DOCTYPE html>

HTML Example

About List Hmm



Rodrigues Txt

EOF )

echo "$UI" | stdbuf -oL -eL yad --width=500 --height=500 posx=500 posy=500 \ --html --center --fixed\ --undecorated --close-on-unfocus --no-buttons \ --print-uri 2>&1 \ | while read -r line; do case ${line##*/} in gg) yad --about ;; bb) yad --list --column=column hello there ;; ee) yad --text=hmm ;; rodrigues) yad --text=rodrigues ;; txt) echo "text" | yad --text-info ;; esac done`

SS of output of the above code: image

-- wbr Victor Ananjevsky @.***>

k3dar commented 2 years ago

hi, can be fixed by reverting 8442c52a2048e85e410eb8945641222eb0b9dc34 :sunglasses: (not --fontname)

HarishRajDR commented 2 years ago

hi, can be fixed by reverting 8442c52a2048e85e410eb8945641222eb0b9dc34 :sunglasses: (not --fontname)

Thank You!