Aylur / dotfiles

My personal config files
Other
2.44k stars 127 forks source link

eww widget got deallocated #27

Closed fr13ndxd closed 1 year ago

fr13ndxd commented 1 year ago

my eww logs get spammed with

Caused by: Couldn't upgrade reference, widget got deallocated 2023-06-08T12:25:30.373Z ERROR eww::error_handling_ctx > Error while updating UI after state change

& media player doesnt work

when i run the init:

sh $HOME/.config/eww/scripts/init           1 ✘
 2023-06-08T12:36:56.273Z INFO  eww > Initializing Eww server. (/run/user/1000/eww-server_a998a4d5bb250fd2)
Run `eww logs` to see any errors while editing your configuration.
 2023-06-08T12:36:56.275Z INFO  eww::server > Loading paths: config-dir: /home/fr13nd/.config/eww, ipc-socket: /run/user/1000/eww-server_a998a4d5bb250fd2, log-file: /home/fr13nd/.cache/eww_a998a4d5bb250fd2.log

error: referenced unknown widget `desktop`
   ┌─ ./setups/leftbar.yuck:17:49
   │
17 │                         :anchor "bottom right")(desktop))
   │                                                 ─────── Used here

Cache directory: /home/fr13nd/.cache/aylur/

(myshell:465330): Gjs-CRITICAL **: 14:36:56.886: JS ERROR: GLib.SpawnError: Failed to execute child process “eww” (Argument list too long)
_output@file:///home/fr13nd/.config/eww/scripts/myshell/main.js:98:50
vfunc_activate/<@file:///home/fr13nd/.config/eww/scripts/myshell/main.js:71:28
vfunc_activate@file:///home/fr13nd/.config/eww/scripts/myshell/main.js:71:10
App@file:///home/fr13nd/.config/eww/scripts/myshell/main.js:61:14
main@file:///home/fr13nd/.config/eww/scripts/myshell/main.js:133:5
@file:///home/fr13nd/.config/eww/scripts/myshell/myshell:46:5
Aylur commented 1 year ago

Have you edited anything in the config?

fr13ndxd commented 1 year ago

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)

fr13ndxd commented 1 year ago

the log spam makes the bar unresponsive etc

fr13ndxd commented 1 year ago

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

thyeun commented 1 year ago

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

fr13ndxd commented 1 year ago

i just reinstalled the dotfiles again still not worky

thyeun commented 1 year ago

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

fr13ndxd commented 1 year ago

image image media player doesnt show

fr13ndxd commented 1 year ago

media player doesnt show with nothing, firefox, spotify etc

fr13ndxd commented 1 year ago

and the eww logs are getting spammed

thyeun commented 1 year ago

@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.

fr13ndxd commented 1 year ago

how to manualy trigger it?

thyeun commented 1 year ago

@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

thyeun commented 1 year ago

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

fr13ndxd commented 1 year ago

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

fr13ndxd commented 1 year ago

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

fr13ndxd commented 1 year ago

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

thyeun commented 1 year ago

@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
fr13ndxd commented 1 year ago

cant get the notification icon to appear

thyeun commented 1 year ago

@FR13NXD mean that your bluetooth also not appear?

fr13ndxd commented 1 year ago

i have desktop, so i dont have any bluetooth adapters

fr13ndxd commented 1 year ago

but it doesnt appear

thyeun commented 1 year ago

@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.

fr13ndxd commented 1 year ago

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

thyeun commented 1 year ago

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

fr13ndxd commented 1 year ago

done, still bluetooth icon nowhere

thyeun commented 1 year ago

@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

fr13ndxd commented 1 year ago

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

thyeun commented 1 year ago

@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.

fr13ndxd commented 1 year ago

well i will try your eww for a second

fr13ndxd commented 1 year ago

but which, v1 or v2

thyeun commented 1 year ago

@FR13NXD V2

fr13ndxd commented 1 year ago

image nothing

fr13ndxd commented 1 year ago

image both dotfiles doesnt show the images in launcher for me

fr13ndxd commented 1 year ago

even the shutdown menu doesnt show

thyeun commented 1 year ago

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

fr13ndxd commented 1 year ago

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

thyeun commented 1 year ago

@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

fr13ndxd commented 1 year ago

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

thyeun commented 1 year ago

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

fr13ndxd commented 1 year ago

no i didnt

fr13ndxd commented 1 year ago

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

thyeun commented 1 year ago

@FR13NXD Dont understand why you run init twice?

fr13ndxd commented 1 year ago

because i wanted to show you the error

thyeun commented 1 year ago

@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

fr13ndxd commented 1 year ago

@Aylur hello

thyeun commented 1 year ago

@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. =.=

fr13ndxd commented 1 year ago

yeah but i cant even trigger it with your command

fr13ndxd commented 1 year ago

and wifi icon doesnt show too, null

fr13ndxd commented 1 year ago

image has to do probably with the eww log