diff --git a/source_polybar.py b/source_polybar.py index e3ba2e9..081096d 100755 --- a/source_polybar.py +++ b/source_polybar.py @@ -28,8 +28,8 @@ def main(): width = 100% height = 2.5% radius = 0 - font-0 = "JetBrainsMono Nerd Font;2" - font-1 = "IPAGothic" + font-0 = "JetBrainsMono Nerd Font:pixelsize=13;2" + font-1 = "IPAGothic:pixelsize=13;2" background = ${{colors.background}} foreground = ${{colors.foreground}} @@ -44,17 +44,27 @@ def main(): separator = | separator-foreground = ${{colors.disabled}} - modules-left = xworkspaces + modules-left = xworkspaces music modules-center = arch xwindow modules-right = aud bat mem cpu temp wlan eth date cursor-click = pointer enable-ipc = true - ;[module/music] - ;type = custom/script - ;exec = /home/ferit/scripts/nowplaying.sh - ;tail = true - ;interval = 2 + [module/music] + type = custom/script + exec = /home/ferit/scripts/nowplaying.sh + tail = true + interval = 2 + + click-left = playerctl play-pause + click-right = playerctl stop + double-click-left = playerctl next + double-click-right = playerctl previous + scroll-up = playerctl position 5+ + scroll-down = playerctl position 5- + format-prefix = " " + format-prefix-foreground = {primary_color} + format =