Giter VIP home page Giter VIP logo

Comments (33)

thyeun avatar thyeun commented on July 17, 2024 1

Manually to force it appear and hard code it only control for spotify.

Screenshot_2023-05-13-15-47-42_28923

from dotfiles.

Nocxium avatar Nocxium commented on July 17, 2024

Thanks once again. Haha i guess you managed to figure it out in the end.

This is kind of out of topic, but are you also encountering the eww bug where the log just keeps growing into insane amount of size? I currently have set rm -rf on each boot, but i imagine its unhealthy for the SSD/HDD.

Do you by any change know how to deactive the logs on eww?

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

Same here, cant solve it :(

the log file, do you mean inside the .cache folder?

Im not sure it is or not, but for me, within this few day, that log file are empty and zero file size.
Screenshot_2023-05-14-16-46-51_4192

from dotfiles.

Nocxium avatar Nocxium commented on July 17, 2024

Ah nice, it seems like you are not affected by the bug then :) Yeah that is the right file. For me it can reach like 30 GB in 1 day, and its a known bug

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

i got modify the init file, but i dont think it is related.

You can try.
before

pkill eww
pkill myshell
eww daemon

after

pkill eww
pkill eww daemon
pkill myshell
eww daemon

before change/restart laptop, deleted all the .log file that related with eww

from dotfiles.

Nocxium avatar Nocxium commented on July 17, 2024

You mean to just run all these commands in the terminal?
I just ran all of those commands, and restarted the computer, but still got the problem :/

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

no, include in your init file. this file inside your ~/.config/eww/scripts/

deleted also your .log file that related with EWW

from dotfiles.

Nocxium avatar Nocxium commented on July 17, 2024

Thanks for the clarification :)

Still doesnt solve the problem though. I hope the devs of eww fixes the bug soon... Seems like quite a few people have talked about it on their github

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

Not sure, but i'm not facing eww .log file size increasing issue. :)

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

type into a terminal

pkill myshell
~/.config/eww/scripts/myshell/myshell --eww

does any error popup?

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

i got no popup error

as you can see from below image.
Screenshot_2023-05-15-21-58-21_4306

let me further explain.
If you pkill myshell, you only will get malfunction that related with function of .js script. (like apps_launcher not function)

.config/eww/scripts/myshell/myshell --eww, this one will reload the myshell and reload all the related directory in .cache/aylur

p/s : if you want to see myshell error, you can run gjs -m myshell in terminal (make sure dont pkill myshell). If you get no error by using gjs -m myshell, meaning that your .js script are fine and workable.

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

I recommend pkilling myshell first so it won't complain about the notification daemon already running

# these are the same
~/.config/eww/scripts/myshell/myshell --eww
# and
cd ~/.config/eww/scripts/myshell/myshell
gjs -m myshell --eww

anyway I think I fixed the app launcher and I think this issue was also causing the media player to not show up

edit
I think if myshell is already running and you try to run it again nothing actually happens you just see the stdout of the process

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur Not sure how you make the media player show up, but here still cant see the media player show up on the eww bar

but thank you so much for your work, your eww bar are lovely.

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

what is the output of eww get media when something is playing?

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur if i run the cli eww get media, the file for media.json are still empty as you can see from below image
Screenshot_2023-05-16-01-07-40_23054

as for the song result, you can see the the chinese song playing is appear on my conky at the right side

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur Not sure how is the .js structure design from you, but some how the file media.json never push into .cache and create it, it is different from what you done on others (ie: notification.json, network.json and etc)

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

what is the output of this?

dbus-send --session \
  --dest=org.freedesktop.DBus \
  --type=method_call \
  --print-reply /org/freedesktop/DBus \
  org.freedesktop.DBus.ListNames | grep org.mpris.MediaPlayer2

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur Below is the output of the cli

dbus-send --session \
  --dest=org.freedesktop.DBus \
  --type=method_call \
  --print-reply /org/freedesktop/DBus \
  org.freedesktop.DBus.ListNames | grep org.mpris.MediaPlayer2

Screenshot_2023-05-16-01-18-43_9604

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

is there no warning or error relating media.js if you do

~/.config/eww/scripts/init

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

Below image show the init result.

Screenshot_2023-05-16-01-29-11_11139

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

update .config/eww/scripts/myshell/apps.js first

git clone https://github.com/Aylur/dotfiles.git
cp dotfiles/.config/eww/scripts/myshell/apps.js ~/.config/eww/scripts/myshell/apps.js

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

Have to continue tomorrow, here already 2am, and thank you for your hard work

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur I already update the apps.js 2 hours ago after your post below.

I recommend pkilling myshell first so it won't complain about the notification daemon already running

# these are the same
~/.config/eww/scripts/myshell/myshell --eww
# and
cd ~/.config/eww/scripts/myshell/myshell
gjs -m myshell --eww

anyway I think I fixed the app launcher and I think this issue was also causing the media player to not show up

edit I think if myshell is already running and you try to run it again nothing actually happens you just see the stdout of the process

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur I noticed something as below might related with the media player not appear.

From the file ~/.config/eww/scripts/yuck/windows/vbar.yuck

line 26, 44, if remove the null, the media player will appear two icon next and previous. but not sure it is related or not.

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

I pushed an update, can you try this again?

git clone https://github.com/Aylur/dotfiles.git
cp dotfiles/.config/eww/scripts/myshell/apps.js ~/.config/eww/scripts/myshell/apps.js
~/.config/eww/scripts/init

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur New update is for the apps right? If yes, done.

but the media player still not appear.

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

If there is no error or warning on myshell.js I have no idea what could be the problem.

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur After restart laptop and login, the media player wont appear, but if i manually re-run gjs -m myshell --eww before i start/fire up spotify, media player wont appear also. And by using this step, the media.json in .cache still empty.

if i restart laptop and login, the media player wont appear, but if i start spotify and re-run gjs -m myshell --eww, than the media player will appear, so what goes wrong here? And by using this step, the media.json in .cache will have all the info

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur Something to know, without open spotify, the media player will appear on the bar?

or

Need to open spotify first, than only the media player appear on the bar?

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

by default if there is no media player, then the widget shouldn't be visible, it should only appear when there are 1 or more media players running

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur My current situation is after open spotify and manually trigger/run the command gjs -m myshell --eww one more time (even init already run) than only the media player visible.

So, where did my things goes wrong?

from dotfiles.

Aylur avatar Aylur commented on July 17, 2024

Without any warnings or errors from the logs I can't help you

from dotfiles.

thyeun avatar thyeun commented on July 17, 2024

@Aylur After your latest update for the async spawn, the right side icon appear faster and no need relogin to get the icon appear (sometime need it).

But for the media player automatically appear still not working, and of cause, there was no error, that why cant figure out why yours are possible to be automatically show out, and my was not? =.=

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.