Let's Linux

Опубликовано: 17 Апрель 2026
на канале: budlabs
642
12

I create a hook-module in polybar that will display information about the currently playing media. I start in this video to display information from cmus, the music player i did set up in the previous video.

the files used in this video can be found on github:
https://github.com/budlabs/youtube/tr...

This is the second video in a series on how to enjoy media in i3wm.

In later videos in this series I will glue this functions 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)





The path to the example cmus-status script is:
/usr/share/doc/cmus/examples/cmus-status-display

Place the cmus-status script in your path and then set the following setting in cmus:
:set status_display_program=polymediatitle


polybar module

text
[module/mediatitle]
type = custom/ipc
hook-0 = cat ~/polymediaoutput
initial = 1


related videos:

cmus setup
   • Let's Linux #034: cmus setup  

polybar_hook_modules
   • Let's Linux #011: Polybar hook modules  

polypoison
   • Let's Linux #015: polypoison  

queue files in mpv
   • Let's Linux #031: best image viewer for i3  

i3fyra
   • Let's Linux #003: i3fyra  


links
https://wiki.archlinux.org/index.php/...
https://cmus.github.io

https://github.com/jaagr/polybar/wiki...

https://github.com/jaagr/polybar/wiki...

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:    • Let's Linux #009: Automatic script creation  

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