Comments (33)
Manually to force it appear and hard code it only control for spotify.
from dotfiles.
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.
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.
from dotfiles.
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.
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.
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.
no, include in your init
file. this file inside your ~/.config/eww/scripts/
deleted also your .log file that related with EWW
from dotfiles.
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.
Not sure, but i'm not facing eww
.log file size increasing issue. :)
from dotfiles.
type into a terminal
pkill myshell
~/.config/eww/scripts/myshell/myshell --eww
does any error popup?
from dotfiles.
i got no popup error
as you can see from below image.
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.
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.
@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.
what is the output of eww get media
when something is playing?
from dotfiles.
@Aylur if i run the cli eww get media
, the file for media.json are still empty as you can see from below image
as for the song result, you can see the the chinese song playing is appear on my conky at the right side
from dotfiles.
@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.
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.
@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
from dotfiles.
is there no warning or error relating media.js if you do
~/.config/eww/scripts/init
from dotfiles.
Below image show the init
result.
from dotfiles.
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.
Have to continue tomorrow, here already 2am, and thank you for your hard work
from dotfiles.
@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 --ewwanyway 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.
@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.
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.
@Aylur New update is for the apps right? If yes, done.
but the media player still not appear.
from dotfiles.
If there is no error or warning on myshell.js I have no idea what could be the problem.
from dotfiles.
@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.
@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.
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.
@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.
Without any warnings or errors from the logs I can't help you
from dotfiles.
@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)
- How can I add a name to the mpris`s black_list HOT 1
- Cannot launch some apps by desktop shortcuts in applauncher or dock HOT 11
- Weird artifacts when clicking the desktop HOT 3
- Chinese or Japanese pop-ups will expand the bar HOT 9
- temperature-symbolic missing HOT 4
- Menu Click issue HOT 1
- keybind for don't disturb mode HOT 1
- latest configs broke Theme Settings
- [Question] How to use HoverRevealer HOT 1
- Enhancement: Refresh app lists without restarting ags HOT 1
- I pressed some key combination and I'm seeing strange symbols instead of icons HOT 4
- Applauncher list is empty after second open HOT 1
- Media Indicator sometimes does not display currently playing media
- External monitor brightnessctl support requires ddcci-driver-linux driver HOT 2
- Suggestion for your own ags config HOT 1
- ags crashes when scrolling continuously over the volume widget HOT 3
- icons in the overview doesn't show up HOT 1
- Icons broken/missing HOT 3
- font can`t be change when log in or reload ags
- Top Bar: Set specific Icon Theme For certain Parts HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotfiles.