Let's Linux #034: cmus setup
budlabs
In this video I will show how i have set up the musicplayer cmus. Global keybindings in i3, assign the window to a certain container and launch it with i3run to make it minimizable.
the files used in this video can be found on github: https://github.com/budlabs/youtube/tree/master/letslinux/034-cmus-setup
This is the first (or second if one counts the sxiv video) of three (or four) about how to enjoy media in i3wm.
In the next video I will create a hookmodule in polybar to display the currently playing track. In the final video we will glue our functionality to the videoplayer mpv, and by doing so we can use the same hookmodule and keybindings for both of our mediaplayers!
video info:
color scheme: Gruvbox Light, by morhertz https://github.com/morhetz/gruvbox
terminal font: Hack/fixedsys
terminal emulator: URxvt
figlet font: 3d.flf, by xero
filemanager: thunar
icon theme: DamaDamas
gtk theme: numix (gruvbox light)
adding music to cmus
press : to enter command mode then:
add PATH_TO_MUSIC_DIRECTORY
exit cmus properly (:q)
With the keybinding below in i3 we can launch/show/hide cmus in a urxvt instace with the instance name cmus:
bindsym Mod4+d exec --no-startup-id i3run -i cmus -e 'urxvtc -name cmus -e cmus'
See more details on how i3run works in my video: minimize_windows_in_i3wm
window rule to force cmus to the B container
By adding this rule cmus will be placed in the B container by i3fyra:
for_window [instance=cmus] title_format "cmus", focus; exec --no-startup-id exec i3fyra -m B
See more details on how this works in the video: i3fyra
See man cmus-tutorial for a good introduction to the program. Use cmus-remote to send commands or change options in a running cmus instance.
previous track
bindsym Mod4+d exec --no-startup-id cmus-remote --prev
next track
bindsym Mod4+d exec --no-startup-id cmus-remote --next
toggle play/pause
bindsym Mod4+d exec --no-startup-id cmus-remote --pause
related videos:
queue files in mpv
https://youtu.be/VAAV3cQsqAE
minimize-windows-in-i3wm
https://youtu.be/QqDMpuIikXA
i3fyra
https://youtu.be/t4Tve-xpwus
links
https://wiki.archlinux.org/index.php/Cmus
https://cmus.github.io
In the video I use my scripts: i3run and i3fyra, they are available in the i3ass suit:
https://github.com/budRich/i3ass
lolban is the output of figlet piped through lolcat. I have a video where i show how it works. That video is called: Let's Linux #009: Automatic script creation, and can be found here: https://youtu.be/QGUmMtEnIkI
The figlet font used with lolban is created by xero. It is called: 3d.flf And can be found on github: https://github.com/xero/figlet-fonts ... https://www.youtube.com/watch?v=Pf1iKpZN1DM
58351065 Bytes