You are not logged in.

#1 2015-05-01 22:30:07

adcdam
Member
From: Argentina
Registered: 2012-04-15
Posts: 44

stupid question about ncmpcpp [solved]

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

#2 2015-05-01 22:35:54

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: stupid question about ncmpcpp [solved]

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

#3 2015-05-01 22:52:11

adcdam
Member
From: Argentina
Registered: 2012-04-15
Posts: 44

Re: stupid question about ncmpcpp [solved]

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

#4 2015-05-01 23:02:32

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: stupid question about ncmpcpp [solved]

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

#5 2015-05-01 23:03:18

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: stupid question about ncmpcpp [solved]

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

#6 2015-05-02 01:43:42

adcdam
Member
From: Argentina
Registered: 2012-04-15
Posts: 44

Re: stupid question about ncmpcpp [solved]

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

#7 2015-05-02 07:00:27

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: stupid question about ncmpcpp [solved]

Why don't you just type :

mpd && ncmpcpp

You can even bind this command to an alias like :

alias music="mpd && ncmpcpp"

and put that in your .bashrc.

Edit : bleach already suggested that smile

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

#8 2015-05-02 11:51:58

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: stupid question about ncmpcpp [solved]

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

#9 2015-05-02 11:59:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: stupid question about ncmpcpp [solved]

function ncmpcpp() {
   mpd
   /usr/bin/ncmpcpp
   mpd --kill
}

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2015-05-03 01:38:14

adcdam
Member
From: Argentina
Registered: 2012-04-15
Posts: 44

Re: stupid question about ncmpcpp [solved]

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

Board footer

Powered by FluxBB