From 5bdc4fef2d7b1a97f2839d64ffc1d0ecda05542c Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Mon, 11 Jul 2022 11:20:24 -0700 Subject: [PATCH] added polybar music module --- .config/polybar/config.ini | 34 +++++++++++++++++++++ .config/polybar/music.sh | 61 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100755 .config/polybar/music.sh diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index e60280a..cb4c4d2 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -41,12 +41,15 @@ font-0 = PowerlineSymbols:size=14;4 font-1 = Font Awesome 5 Free Solid:pixelsize=12;2 font-2 = FiraCode Nerd Font Mono:pixelsize=10;2 +modules-left = music music-prev music-play-pause music-next modules-center = windows modules-right = tray cursor-click = pointer cursor-scroll = ns-resize +enable-ipc = true + [colors] background = ${xrdb:background} @@ -143,6 +146,37 @@ label =  RAM: %percentage_used%% label-foreground = ${colors.text} +[module/music] +type = custom/script +tail = true +interval = 1 +format-prefix = " " +format =