Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
11
votes
2
answers
11325
views
How can I create a playlist and add songs to it in cmus?
Question's in the title, really. Cmus documentation is pretty light on how to create new play lists, add songs to them, and then play them. I'd like to know step-by-step how to do that.
Question's in the title, really. Cmus documentation is pretty light on how to create new play lists, add songs to them, and then play them. I'd like to know step-by-step how to do that.
Raven
(1333 rep)
Jun 18, 2020, 09:41 PM
• Last activity: May 11, 2024, 12:49 PM
0
votes
0
answers
428
views
How do I confirm cmus is using alsa?
I've searched the net and came up with the configuration below. but I don't think my cmus install is using alsa. How do I know? Well, I installed strawberry and have configured it to use alsa. If I play youtube on the browser and then try playing on strawberry , I'll get a message that goes like "pl...
I've searched the net and came up with the configuration below. but I don't think my cmus install is using alsa.
How do I know? Well, I installed strawberry and have configured it to use alsa. If I play youtube on the browser and then try playing on strawberry , I'll get a message that goes like "playback device is busy right now". I have to stop the Youtube playback first before strawberry starts playing music.
If I do same with cmus, I can hear sound from **both** cmus and Youtube.
Any ideas? Thanks
**this is my configuration**
[my-user@fedora ~]$ cat /etc/asound.conf
#
# Place your global alsa-lib configuration here...
#
defaults.pcm.card 1
defaults.ctl.card 1
[my-user@fedora ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [Dell monitor]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Series [Mini-i Series], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
[my-user@fedora ~]$ cat ~/.config/cmus/rc
set output_plugin=alsa
set dsp.alsa.device=default
set mixer.alsa.device=default
set mixer.alsa.channel=Master
mrjayviper
(2253 rep)
Feb 12, 2023, 03:59 AM
1
votes
0
answers
291
views
How can I start a playlist from the command line in cmus?
I would like to start playing a play list from cmus with a command line. This is to create a bash alias that would start playing a specific playlist. I tried cmus pl-import playlist_name But it doesn't import the playlist. This question https://unix.stackexchange.com/questions/593727/how-can-i-creat...
I would like to start playing a play list from cmus with a command line. This is to create a bash alias that would start playing a specific playlist. I tried
cmus pl-import playlist_name
But it doesn't import the playlist.
This question https://unix.stackexchange.com/questions/593727/how-can-i-create-a-playlist-and-add-songs-to-it-in-cmus explains how to create a playlist and add songs to it from within cmus.
Paul Rougieux
(231 rep)
Sep 30, 2022, 09:52 AM
1
votes
1
answers
978
views
How can I add the marked track to a playlist in cmus?
I'd like to quickly add the currently marked track (in view 1, 2 or 4) to my playlist of favorites with a key-bindable command in `cmus`. The man page doesn't reveal a winning strategy. How to do it? `:add -p ` only seems to accept paths as arguments, and it works on the currently marked playlist.
I'd like to quickly add the currently marked track (in view 1, 2 or 4) to my playlist of favorites with a key-bindable command in
cmus
.
The man page doesn't reveal a winning strategy. How to do it?
:add -p
only seems to accept paths as arguments, and it works on the currently marked playlist.
mael
(13 rep)
Aug 23, 2021, 05:49 PM
• Last activity: Sep 23, 2021, 02:56 PM
0
votes
2
answers
544
views
Is there a way to trigger the closing of one program by closing another? A shell script perhaps?
So, my situation is this: I have created a launcher, key bindings and an alias that opens GLava and CMus in a drop-down terminal at the same time, using this shell script: #!/bin/bash c=$(ps -e | grep -c xfce4-terminal) if [ $c -gt 0 ] then xfce4-terminal --tab --drop-down -x cmus | glava --desktop...
So, my situation is this: I have created a launcher, key bindings and an alias that opens GLava and CMus in a drop-down terminal at the same time, using this shell script:
#!/bin/bash
c=$(ps -e | grep -c xfce4-terminal)
if [ $c -gt 0 ]
then
xfce4-terminal --tab --drop-down -x cmus | glava --desktop & $1
else
xfce4-terminal --drop-down -x cmus | glava --desktop & $1
fi
It is perfect and glorious, but for one small problem. I'd very much like for both programs to also CLOSE at the same time. Is there a way to have one programs' termination trigger another? Specifically, if I have CMus and GLava open, I'd like to be able to close CMus (say, by simply pressing 'q' and quitting CMus or by closing the terminal, or killing the program, OR a special key binding, etc.) and have GLava immediately close/terminate as well. As it stands, I have a separate key binding to pkill GLava after I've closed CMus, which works fine, I suppose, but is certainly a little clunkier than I'd like. Maybe there's a way for GLava to only get triggered if CMus is running, a sort of whitelist maybe? A simple shell that closes both programs that I can bind? Or another thought perhaps? I'm open to any suggestions, being the noob that I am. Any help is much appreciated.
poutingcavity
(71 rep)
May 25, 2021, 08:06 AM
• Last activity: May 30, 2021, 10:14 AM
1
votes
1
answers
292
views
Stop playing after queue ends in cmus
I'd like to be able to queue songs and play the queue and I would also like for the playback to end when the queue ends. Currently another song is played when the queue ends (I haven't quite been able to figure out how that song is chosen).
I'd like to be able to queue songs and play the queue and I would also like for the playback to end when the queue ends. Currently another song is played when the queue ends (I haven't quite been able to figure out how that song is chosen).
Philippe
(569 rep)
Mar 7, 2021, 12:07 AM
• Last activity: Mar 7, 2021, 01:30 AM
0
votes
1
answers
391
views
How to take control of existing terminal programs via ssh (cmus)
So I have a terminal with cmus running on my main PC at my desk. I want to ssh to this main PC from my laptop and "take control" of cmus remotely, so that i can adjust volume, pause and play, choose the song, etc. Note: I don't want to stream music via ssh. I just want to take control of an existing...
So I have a terminal with cmus running on my main PC at my desk.
I want to ssh to this main PC from my laptop and "take control" of cmus remotely, so that i can adjust volume, pause and play, choose the song, etc.
Note: I don't want to stream music via ssh. I just want to take control of an existing cmus session via ssh.
both machines are running linux mint.
My question is different to other questions already asked because I want to take control of an *existing* cmus process, rather than spawning a new one.
TheIronKnuckle
(143 rep)
Sep 26, 2020, 10:21 AM
• Last activity: Sep 27, 2020, 01:17 PM
0
votes
0
answers
158
views
cmus hiding artist songs
I'm using `cmus` with Debian Buster. In the artists list (view 1), I see a single `Al Green`, with a single song. If I filter :filter artist="Al Green" I see Al Green repeated twice, first with the previously visible song (from the Pulp Fiction album), and second with his full album. However, when I...
I'm using
cmus
with Debian Buster. In the artists list (view 1), I see a single Al Green
, with a single song. If I filter
:filter artist="Al Green"
I see Al Green repeated twice, first with the previously visible song (from the Pulp Fiction album), and second with his full album. However, when I remove the filter
:filter
then there's only one Al Green
again, with a single song. What's happening here?
EDIT
I noticed that one Al Green is on A, and the other is on G (on alphabetical order). Elton John appears in both E and J, with different songs in each. Why?
Rodrigo
(1894 rep)
Mar 19, 2020, 04:11 AM
• Last activity: Mar 19, 2020, 09:19 PM
Showing page 1 of 8 total questions