Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi menu dosent render with the correct width and height #3

Open
mooncoffee1 opened this issue Aug 23, 2023 · 21 comments
Open

Wifi menu dosent render with the correct width and height #3

mooncoffee1 opened this issue Aug 23, 2023 · 21 comments

Comments

@mooncoffee1
Copy link

mooncoffee1 commented Aug 23, 2023

it has a weird form in the left corner of the screen and with wrong width and height
image

the wofi theme its not the problem ig, i tried without the style.css

@fearlessgeekmedia
Copy link
Owner

I'm not sure what might be going on. Which Wayland compositor are you using? I haven't even done anything with wifi4wofi in a bit since I don't even use it myself anymore (part of the reason I haven't done any work on it lately) but I can definitely investigate a bit more.

@mooncoffee1
Copy link
Author

im using sway, but on hyprland it was the same, idk whats the problem

@fearlessgeekmedia
Copy link
Owner

OK. I will take a look at it.

@fearlessgeekmedia
Copy link
Owner

OK, I'm at a little bit of a loss here. I didn't think I'd need to ask, but which Linux distribution are you running?

Since it's happening for you in both Sway and Hyprland, I don't think I'll need those versions but give those to me just in case, too.

I'm here on Hyprland on NixOS Unstable Branch and it's working fine for me.

Which Wofi theme is that, too? Just so I can replicate what you've got on my system.

@mooncoffee1
Copy link
Author

im on arch linux, on sway-1:1.8.1-1 version, and the wofi theme its catpuccin theme from catppuccin's official github

@fearlessgeekmedia
Copy link
Owner

OK, thanks! I'm on it!

@mooncoffee1
Copy link
Author

thank you!

@fearlessgeekmedia
Copy link
Owner

Just to be sure, what does your ~/.config/wofi/wifi look like? I don't think that's the problem, but I just want to be sure.

@mooncoffee1
Copy link
Author

Config for wofi-wifi-menu

position values:

1 2 3

8 0 4

7 6 5

POSITION=3

#y-offset
YOFF=10

#x-offset
XOFF=-65

#fields to be displayed
FIELDS=SSID,IN-USE,BARS,SECURITY

@fearlessgeekmedia
Copy link
Owner

OK, thanks. Just tested it out and that doesn't seem to be the problem. I will keep investigating.

@fearlessgeekmedia
Copy link
Owner

Where did you get the catpuccin theme for wofi, btw? Becasue I cannot find it on the catpuccin github.

@mooncoffee1
Copy link
Author

@fearlessgeekmedia
Copy link
Owner

Awesome! Thank you!

@mooncoffee1
Copy link
Author

this is smth that appears when i run the script, if it helps,
(wofi:40981): Gtk-CRITICAL **: 19:34:55.470: gtk_widget_set_size_request: assertion 'height >= -1' failed

@fearlessgeekmedia
Copy link
Owner

fearlessgeekmedia commented Aug 24, 2023

That happened with the original script I forked it from too. Not the problem , in this case, though.

So I installed the catpuccin theme. My YOFF=17 and XOFF=0. XOFF=-65 put it partially off of the screen for me.

But that's not what is happening for you. Your window size is just not quite right. I just did a temporary work around where it forces the height to 500px. I will need to work on the script further to make this more customizable. I'll have this pushed in a bit.

@fearlessgeekmedia
Copy link
Owner

OK, pull the latest and let me know if it fixes the issue for you.

@mooncoffee1
Copy link
Author

strange, the same thing
image
maybe i dont have a package installed, or smth, idk whats the problem

@fearlessgeekmedia
Copy link
Owner

I'm not sure. It seems to me that there might be something in some configuration keeping it from being 500px but I'm not sure what it would be.

Do you have something that's common in both the Sway and Hyprland configurations that might possibly be effecting it? Just a guess.

@fearlessgeekmedia
Copy link
Owner

Actually I'm finding the height setting I'm putting in seems to have no effect on my system too. Investigating further.

@fearlessgeekmedia
Copy link
Owner

So it seems there's something going on your system's configuration (probably something with the compositor configs themselves, both Sway and Hyprland) and I don't have that going on here, so I can't really replicate the issue.

So until I know more, I won't be able to fix this specific issue. Perhaps someone else might know what's going on with it.

I did fork the script and worked on it initially while on Arch Linux, and I don't think the distribution is the issue, even though I'm not on Arch anymore.

@mooncoffee1
Copy link
Author

got back to hyprland still the same, but any other wofi menus working perfectly, like wofi drun, wofi emoji, and wofi calculator, idk why this menu isnt working properly ;(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants