xanclic / krunner-mpd Goto Github PK
View Code? Open in Web Editor NEWA KRunner (DBus) module for controlling MPD
A KRunner (DBus) module for controlling MPD
This prefix should be usable with any command that adds tracks to the playlist; and no command should require it.
In debug mode, as much as possible should be logged with timestamps to some file.
“As much as possible” includes incoming KRunner queries, outgoing MPD requests, incoming MPD replies, and outgoing results to KRunner.
This should be enabled with a command line parameter or (more likely) with a configuration file entry.
I'm looking for a krunner plugin which can control mpd (without launching a GUI), and find this one.
The description says I need to launch a ruby program (as a daemon in fact) in order to make this plugin work.
But why is there a need for a daemon...? Shouldn't this intend to be only "controlling" the mpd, rather than "reporting" it, which means it doesn't need to be stateful (i.e. it should be stateless)?
Hi
I use:
I installed the package from AUR and configured the file in ~/.config/krunner-mpd/config.yaml with the following info:
mpd
port: 65511
But none of the keywords (play/pause/next/previous) seem to trigger anything in krunner. How do I activate it?
Sometimes the whole result list consists of meaningless “jump to” results, without those tracks actually being part of the play list; or maybe they are, but they still shouldn’t be there (for instance, when prefixed with “queue album” – that prefix is not part of any of the listed titles, so they shouldn’t be there).
Currently, all parameters (MPD host and port) are specified through the command line and thus usually through the DBus service file. That’s not very nice since that file is part of the installation so it will be overwritten on every update.
A configuration file (e.g. ~/.config/krunner-mpd/config) would allow the parameter values to persist through updates without user intervention.
Relatively often, no results are returned. This may be an artifact of not setting the runner speed to SlowSpeed (compare https://api.kde.org/frameworks/krunner/html/classPlasma_1_1AbstractRunner.html#a7a25eda24c099a0753a8887316b7f215), but we cannot do that. The central KRunner DBus runner should do that, but it doesn’t, and it doesn’t offer an interface to do it manually.
But hey, maybe there’s some other issue, too, so let’s investigate.
As has been suggested in issue #1, one might create an AUR package. Now that there is a make install
, that shouldn’t be too difficult in theory.
It’s probably the better idea to keep the service resident, but maybe it is easy enough to adjust the .desktop file so that the plugin is launched by krunner on every query and let the script itself exit once a response has been sent.
(Originally suggested in issue #1.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.