Skip to content

Simple polybar script for showing what song is playing in cmus

Notifications You must be signed in to change notification settings

mikeri/polycmus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

polycmus

Simple polybar script for showing what song is playing in cmus

Started as raytruong/polybar-cmus, but rewritten for these changes:

  • This script does not display playing time/progress
  • This script displays play/pause icon depending on player state
  • This script handles missing tags by displaying the file name instead
  • This script calls cmus-remote once (as opposed to four times) per interval

cmus-polybar

Configuration example

Change the icon color by editing the script, default value #444.

iconcolor="#444"

Add the script to polybar

[module/cmus]
type = custom/script

exec = ~/.config/polybar/cmus.sh
exec-if = pgrep -x cmus
interval = 1

click-left = cmus-remote --pause
scroll-down = cmus-remote --next
scroll-up = cmus-remote --prev

label-maxlen = 100

About

Simple polybar script for showing what song is playing in cmus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages