-
Notifications
You must be signed in to change notification settings - Fork 19
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
Sound widget using pulseaudio if present #13
Conversation
I will switch to your drawer module soon. You made great progress fixing it. If you want some help about wirefu, I am on IRC |
Some help on wirefu may be useful since I can't understand anything of it... I wasn't able to run any demo. Have you got any working examples? |
I pushed a new commit I had in the stash since a while. This should make it easier to debug. Here is how to use it: First, as I suggest not to use it directly in Awesome to avoid the crash, create a symlink to Then you can open mpris like this using If VLC and amarok are running, it should print a bunch of stuff and pause amarok. You can replace amarok by any other player, you can install the "d-feet" (Gnome) or qdbusviewer (Qt) tool to browse services. The notification demo work only when no window manager are running as it will try to claim service already reserved. If the mpris demo still doesn't work, then make sure you have LGI 0.8+ (you really should anyway, it is much faster, idem for luajit). If it still fail after that, then please copy paste the log in a new wirefu issue. It work for me. It pause amarok and print the currently paused song then try to access a non-existant VLC method and give the right error (argument count mismatch). |
Funziona perfettamente come da te descritto. |
(google translated, I am french, not Italian :P ) |
Sorry, I mess up with languages like a lot (Mon francais est même pire) :-P I think I'll start tinkering a little on the mpris module then I'll look into the menu-over-dbus that seem a little more complex. Good news is that I'm not having segfaults (I use lua5.2) |
The problem is that it wont work. As shown in lgi-devs/lgi#88 , there is a memory issue somewhere and Awesome will eventually crash, killing all your applications and returning to the login screen. This issue have to be fixed for Wirefu to work at all. Otherwise it will silently crash Awesome at some point. I can take care of the dbus menu stuff, I once participated in the RFC, so I have a pretty good idea how it work. The mpris case it very simple and the I will take a look at 5.2, but as the segfault happen with both 5.1 and luajit2, I have slim hopes it is a lua issue, maybe you've been lucky. Try compiling Awesome without dbus (remove the content of dbus.c, dbus.h and naughty) and try to include the notification demo (you need to remove the glib mainloop lines from the bottom of the file). Awesome should crash within seconds. |
This new version uses pulseaudio instead of alsamixer if startup check reveals it's running.
Replaces #12 because was too messy