GithubHelp home page GithubHelp logo

eww widget got deallocated about dotfiles HOT 142 CLOSED

aylur avatar aylur commented on September 14, 2024
eww widget got deallocated

from dotfiles.

Comments (142)

thyeun avatar thyeun commented on September 14, 2024 1

@FR13NXD Sorry for cant supported you. =.=

from dotfiles.

Aylur avatar Aylur commented on September 14, 2024

Have you edited anything in the config?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

only the fedora icon to arch linux icon
also discovered this in the logs:

Variable not found "main_monitor"
ok

(this shows up when i click the thing where media player should be means right under the clock)

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

the log spam makes the bar unresponsive etc

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

when i reinstalled the dotfiles, it worked without the desktop thing error, but it still spam the logs with that and cant open media player
alot things are null, like wifi etc

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD look like you not using the latest update. Try to reclone the git dotfiles again.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

i just reinstalled the dotfiles again still not worky

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD what things not work, can you upload a screenshot to let us see?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
image
media player doesnt show

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

media player doesnt show with nothing, firefox, spotify etc

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

and the eww logs are getting spammed

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD For media player, you have to ask @Aylur, his media player work, but my one not working but my one have to manually trigger it.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

how to manualy trigger it?

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD As you can see the below images, it work with manually trigger for the media player.

For manually trigger, you have to bind a key into you hyprland.conf, as bind = $mainMod SHIFT, a, exec, $myshell and $myshell = $HOME/.config/eww/scripts/myshell/./myshell --eww --file.

You have to start the media player first, as example, start spotify and play a song, than manually trigger the bind key of myshell
Screenshot_2023-05-29-17-04-01_27423

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD For null icons, it mean you missing out some of the dependencies and wrong path for the images file.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
i ran it while media playing, still didnt apear and i am not missing any depencies, i installed all that are listed in the installation at main page

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

and i also use only the eww bar from the dotfiles if it changes anything

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
for the depencies i installed all that are here, if something is missing from here, then i am missing it probably

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Try this step

  1. Relogin until you see the notification icon appear (the white color bell icon)
  2. Than start your spotify.
  3. Than manually trigger the bind key for myshell

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

cant get the notification icon to appear

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD mean that your bluetooth also not appear?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

i have desktop, so i dont have any bluetooth adapters

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

but it doesnt appear

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD you have to into the dependency too, install the gnome-bluetooth-3.0, this is one cycle check, if one of it missing, it will stop to continue.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

installed it (probably was already installed), ran scripts/init and nothing

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD After install, relogin!!!, you re-run init wont help you to refresh.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

done, still bluetooth icon nowhere

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD It should be working if every correctly done. (correct dependencies, correct path, and latest git clone).

I can show you my as below with light theme too
Screenshot_2023-06-07-16-21-55_12555

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
when i click the change theme icon, it restarts the bar etc and doesnt change the theme

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Than you have to ask @Aylur, my one is working fine, only the media player have to manually trigger. =.=

And sorry cant support you.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

well i will try your eww for a second

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

but which, v1 or v2

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD V2

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
nothing

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
both dotfiles doesnt show the images in launcher for me

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

even the shutdown menu doesnt show

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD You have to change the variables.scss i using direct path.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

oh okay now the launcher cat shows up even the power menu, but the media player.

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Media player my one you have to manually trigger. Dont run it under terminal, set it into your hyprland key-binding, than trigger it

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
also at start, it looks like this, but when i click on the clock, it goes back to transparent background

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Do you remove/hide something on your init file?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

no i didnt

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
but when i execute the init manually it shows this error

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Dont understand why you run init twice?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

because i wanted to show you the error

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD To show out your error, after you login, you have to run gjs -m $HOME/.config/eww/scripts/myshell/./myshell --eww --file. Not spawn init

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

@Aylur hello

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD You are the second one that cant see the media player appear after me. We both no luck to see the media player automatically. =.=

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

yeah but i cant even trigger it with your command

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

and wifi icon doesnt show too, null

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
has to do probably with the eww log

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Sometime i also need to relogin one or two times, for seeing the notification icon appear, but this might because of my lousy laptop. Than only manually trigger work.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

is there a way to trigger the notification icon?

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Not sure for this, but what i know is, it is a one cycle check, if one of it missing, no matter how many time you manually trigger the media player, it wont show out, have to all the icon show up, than manually trigger only the media player appear.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

couldnt even manually trigger the media player

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

Do you start the spotify before you trigger?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

btw do you know any similar dotfiles that i can use? as i dont think i am able to fix this

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

For hyprland-eww, from what i see on reddit, only @Aylur one is the best, others only OK. i mean easy setup and configuration, others abit hard and some are separated.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

i mean i only care about the bar

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

do you know any similar eww bars like this?

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

dharma

Alot you can find there, but it is separated, you have to combine it, if you want beside the bar

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

oh alright

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

@thyeun do you know this eww config? https://youtu.be/3P2iqjs0gt4

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

@Aylur and also you said that you will make tutorial how to setup the dotfiles in one of your youtube comments, can i just make sure i didnt do anything wrong?

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD Dont know =.= you have to ask the owner.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

i have now your dotfiles, so you are the owner

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@FR13NXD i mean the youtube you ask me, i dont know where to find him.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

what

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

https://youtu.be/3P2iqjs0gt4 this one

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

oh

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

@thyeun do you have any nice waybars?

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

No, my waybar ugly. waybar alot you can find it at reddit. =.=

from dotfiles.

Aylur avatar Aylur commented on September 14, 2024

Your issue is probably with something in .config/eww/scripts/myshell, try commenting out stuff you don't need.
This is just how using others dotfiles are, you kind have to figure it out yourself.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

@Aylur .config/eww/scripts/myshell is a directory

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

image
i commented battery and bluetooth as i dont need them, is this what you meant? in main.js

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

well i reinstalled my operating system, now it works, except battery of cource because i have desktop. i dont know what the problem was but reinstalling my operating system worked for me, means reinstalling all the packages etc, maybe i had wrong version of eww? i dont know

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

This seems to be so weird

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

well before it was the same story, installed arch, tried it, it worked, after some time it just broke. ill keep this issue updated if it breaks.

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

I have the same issues:

Selected workspace icon is not filled by white color (not sure if it is expected). Weather data is unavailable. The last two icons at the bottom of the vertical bar report "null" and power buttons icons missing:
image

Furthermore, when clicked on Fedora icon, and the search bar appears, not all applications have their icons despite they should have:
image

For example PowerShell is specified by $HOME/.local.share/applications/powershell.desktop:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=PowerShell
Comment=PowerShell
Icon=/usr/share/icons/hicolor/scalable/apps/powershell.svg
Exec=gnome-terminal -- /usr/bin/bash -c 'pwsh'
Terminal=false
Categories=Tags;Describing;Application

and the icon path specified is correct.

Another "issue" is that, when I open a terminal app, like kitty or wezterm, by the application search accessible by Fedora icon, the terminal opens always at .config/eww folder instead of HOME.

The last issue I see is that the key combination on my keyboard for decreasing and increasing the volume (Fn + LeftArrow and Fn + RightArrow) are not caught well by the environment, because, when I press them, the Volume icon appears on the right but the volume level does not change. Instead, if I use the key combination Fn + UpArrow and Fn + DownArrow for increasing and decreasing screen luminosity, it works well.

from dotfiles.

thyeun avatar thyeun commented on September 14, 2024

@D3vil0p3r

  1. For filled up icon, first time using it, it will response slow.
  2. For weather, you have to fill up your current location in the weather file. ~/.config/eww/scripts/weather
  3. For apps icon, it will cache into your .cache/aylur/apps directory, if you didn see it for the first time, meaning that, it still not in that cache directory. After a few time using your apps from the launcher, you will see it.
  4. For the terminal open in directory ~/.config/eww, i have the same too. =.=
  5. For the volume key, you have to change according to what your need from your hyprland.conf. Due to that this is dotfiles, each of us have our own fav key-bind.

from dotfiles.

Aylur avatar Aylur commented on September 14, 2024

The script I wrote for the workspaces just isn't very good.
For the weather you need an OpenWeather api key.
If something is null it means the eww variable wasn't set or updated yet, which can be caused by missing dependency or some issue on your specific usecase/setup.
I have no idea why the powermenu icons are missing, you can swap them out for nerd fonts if that works.
The applauncher only loads icons that Gtk.IconTheme can lookup from an icon name and not custom paths to files.
For opening apps I use gtk-launch which for some reason I don't know opens the terminal at .config/eww.
As for the volume/brightness popup, you should checkout the scripts and figure it out yourself.

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

Meanwhile, I fixed

3- As @Aylur suggested, I removed direct icon path from the .desktop files then I run gtk-update-icon-cache and gtk4-update-icon-cache (not sure if useful or not) and then reboot.
5- Audio issue fixed by installing pipewire-pulse that will remove pulseaudio and then:

systemctl --user enable wireplumber
systemctl --user enable pipewire
systemctl --user enable pipewire-pulse
systemctl --user start wireplumber
systemctl --user start pipewire
systemctl --user start pipewire-pulse

then reboot.

I will investigate on the remaining issues.

UPDATE 4.: the problem is that when gtk-launch is launched on a specific directory, after the command is run, it returns in the directory where gtk-launch has been launched. In our EWW case, gtk-launch is run in .config/eww folder. Could be inserting a cd $HOME before gtk-launch a good idea?

About the icons null, when I reboot they appear correctly, so I don't think it is a missing deps. Furthermore I didn't do any tweaks. I'm using your original repo:
image

Then, when I open a terminal and I run eww reload, the null strings are back:
image

I see they are managed in ~/.config/eww/yuck/widgets/bar_widgets.yuck and they are {bluetooth.icon}, {bluetooth.connected_devices[0].icon}, {battery.icon} and {notifications.icon}. Where their source is specifically defined?

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

@Aylur I got the souce of the issue of Powermenu not showing icons. The fault is in .config/eww/scss/variables.scss. This file defines a wrong variable for other users different from you, because assets variable is defined as:

$assets: 'home/demeter/.config/eww/assets/';

So, all elements using this variable won't work. I don't know if in a .scss file is possible to access to env variables as $HOME, but it will solve the issue and the icons will appear to the powermenu.

Another issue I found is on .config/eww/assets because here there is a broken symbolic link of wallpaper.png:

lrwxrwxrwx user user  32 B  Sun Jun 11 01:01:22 2023  wallpaper.png@ ⇒ /home/demeter/.config/background

and of course the source of this link does not exist. It is better to replace this broken link with the real wallpaper.png file.

Also .local/bin/hypr has a direct reference to /home/demeter. It could be useful for having all of them more generic for all users.

Could you please fix these things in the repo?

from dotfiles.

Aylur avatar Aylur commented on September 14, 2024

Could be inserting a cd $HOME before gtk-launch a good idea?

tried PWD=$HOME gtk-launch and cd $HOME && gtk-launch, but they don't seem to work.

Then, when I open a terminal and I run eww reload, the null strings are back:

Because you also need to restart `.config/eww/scripts/myshell/myshell. This is the runtime that updates most eww variables, but it doesn't detect if eww was reloaded.

I see they are managed in ~/.config/eww/yuck/widgets/bar_widgets.yuck and they are {bluetooth.icon}, {bluetooth.connected_devices[0].icon}, {battery.icon} and {notifications.icon}. Where their source is specifically defined?

in .config/eww/scripts/myshell/bluetooth.js

$assets: 'home/demeter/.config/eww/assets/';

Changed it to ./assets.

It is better to replace this broken link with the real wallpaper.png file.

That symlink is part of how I change wallpaper, instead of changing it I will just mention it in the readme.

Also .local/bin/hypr has a direct reference to /home/demeter. It could be useful for having all of them more generic for all users.

I forgot to remove that file, as I have moved it to home-manager.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

@D3vil0p3r just a question, which polkit agent do you use? give me output of sudo pacman -Q | grep polkit

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

@D3vil0p3r just a question, which polkit agent do you use? give me output of sudo pacman -Q | grep polkit

polkit 122-1
polkit-gnome 0.105-10
polkit-qt5 0.114.0-1

Why this question?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

do you have the polkit running? as i think this may be the issue

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

systemctl status polkit-gnome

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

Which issue in particular are you referring?

sudo systemctl status polkit.service
 
● polkit.service - Authorization Manager
     Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
     Active: active (running) since Sun 2023-06-11 17:47:01 CEST; 1h 0min ago
       Docs: man:polkit(8)
   Main PID: 800 (polkitd)
      Tasks: 4 (limit: 18908)
     Memory: 6.1M
        CPU: 282ms
     CGroup: /system.slice/polkit.service
             └─800 /usr/lib/polkit-1/polkitd --no-debug

Jun 11 17:47:00 penthost systemd[1]: Starting Authorization Manager...
Jun 11 17:47:01 penthost polkitd[800]: Started polkitd version 122
<SNIP>

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

i was thinking about it couldnt get the variables because of missing permisions, idk if you understand, try kill polkit-gnome and get polkit-kde-agent and run it

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

i was thinking about it couldnt get the variables because of missing permisions, idk if you understand, try kill polkit-gnome and get polkit-kde-agent and run it

Do you mean the issue I have about that icons that sometimes become "null"?

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

yes

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

like when it fails to get the informations that it should put in there, so it puts null

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

because of permisions

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

also hyprland (http://wiki.hyprland.org/Useful-Utilities/Must-have/#authentication-agent) recommends polkit-kde-agent, im thinking that they refer to this issue
you can try it atleast

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

Y, I will try, even if I was thinking that the explanation of @Aylur is still valid.

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

tell me if it worked

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

@D3vil0p3r did it work?

from dotfiles.

D3vil0p3r avatar D3vil0p3r commented on September 14, 2024

Gimme some min. I need to end an activity, it will take 30 min

from dotfiles.

fr13ndxd avatar fr13ndxd commented on September 14, 2024

alright

from dotfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.