haideralipunjabi / polybar-browsermediacontrol

Browser Media Control module for Polybar

Home Page:https://blog.haideralipunjabi.com/posts/making-modules-for-polybar-shell-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

polybar-browsermediacontrol

A Browser Media Control module for Polybar

screenshot
Demo with Material Polybar

Dependencies

Usage

Place the given script in some folder, and use it in your polybar config as

[module/browsermediacontrol]  
type = custom/script  
exec = /path/to/files/browsermediacontrol
scroll-up = /path/to/files/browsermediacontrol --volume 1
scroll-down = /path/to/files/browsermediacontrol --volume -1 
interval = 0.1

Note: You can change the integer argument in scroll-up/down to increase the speed of increase/decrease

Features:

  • Customizable Title Truncate
  • Volume Control on Scroll

Customization

You can change the variables in browsermediacontrol to customize the icons shown in polybar, text overflow length, etc.