You are not logged in.
how can i launch ncmpcpp without launching mpd before? any scrip? editing the ncmpcpp config file?
i use urxvt terminal
regards
Last edited by adcdam (2015-05-03 01:34:41)
Offline
Sure.. just type 'ncmpcpp' into a terminal while mpd isn't running.
I don't see why you'd want to run a client when the server isn't running, but I'm sure you have your reasons.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
what i want is to launch ncmpcpp with mpd working but with just one command.
to use and play music with ncmpcpp i have first to type mpd and then ncmpcpp, what i want is to type just one command.
Offline
some options:
add mpd to some autostart script for your session
set up a socket unit for your systemd user instance to start mpd automatically the first time ncmpcpp tries to connect
run ncmpcpp through a script/shell function that checks/ensures mpd is running
Offline
first of all the only stupid question is that which you already know the answer too. I would suggest is systemctl the mpd either on startup or when you login then using ncmpcpp it will start as normal.
edit: you could always create a alias with you bash/zsh to start mpd and then ncmpcpp at the same time.
you have to understand that mpd is a deaman for remote normaly and also that it is a server by default. it is a good music server localy and remotly and in such is adaptible to many uses.
Last edited by bleach (2015-05-01 23:21:51)
Offline
I tried to lauch mpd at start with i3 config file, it worked but i lost aprox 20 mb of ram, i also tried with systemd (i dont like systemd) with
systemctl --user enable mpd.service and then
systemctl --user start mpd.service it worked but it cost 20 mb of ram at start.
what i want is to start mpd and ncmpcpp at the same time with a script or something and then kill it with
mpd --kill im not skilled at doing scripts
how can i do that?
Last edited by adcdam (2015-05-02 05:32:40)
Offline
Why don't you just type :
mpd && ncmpcppYou can even bind this command to an alias like :
alias music="mpd && ncmpcpp"and put that in your .bashrc.
Edit : bleach already suggested that ![]()
Last edited by Kolibry (2015-05-02 07:01:01)
Asus 1225B - 11,6" - AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go - Radeon HD6290
ArchLinux Openbox - My Github
Offline
Are you sure that mpd is the right choice for you? You seem to be going out of your way to nerf it's capabilities, when there may be a music player out there that does exactly what you want.
https://wiki.archlinux.org/index.php/Li … ne_players
I'm not saying that running mpd+client like you suggest isn't a viable solution, but it seems like you're trying to use a spanner to do the job of a screwdriver.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
function ncmpcpp() {
mpd
/usr/bin/ncmpcpp
mpd --kill
}"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks a lot!!! i set an alias in the .bashrc file and worked!!!! thanks to all!!!
i will check some command line players but now i have ncmpcpp running the way i like it.
thanks again!
Offline