Skip to content

A PolyBar custom module to interact with Cider - An open-source, community-oriented Apple Music

License

Notifications You must be signed in to change notification settings

tnguye20/cider-polybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cider-polybar

A PolyBar custom script to interact with Cider - An open-source, community-oriented Apple Music

demo.mp4

Installation

Download the latest Release package to get the binary for the module. If you choose to download the binary directly then skip the untar step.

tar -xvzf <LOCATION>/cider-polybar.tar.gz
sudo cp cider-polybar /usr/local/bin

Inspect using the -h flag for all possible comamnd.

Options:
      --version  Show version number                                   [boolean]
  -a, --action   Send informative actions to Cider
            [string] [choices: "playpause", "play", "pause", "next", "previous",
                                   "get-currentmediaitem", "volume", "autoplay"]
  -v, --volume   Increase/Decrease volume with this increment. Use with -a
                 volume                                                 [number]
  -h, --help     Show help                                             [boolean]

Insert this block inside of polybar config to use the module, tweak the interval to your liking.

...
modules-left = bspwm i3 ciderbar
...
[module/ciderbar]
type = custom/script
exec = cider-polybar -a get-currentmediaitem
scroll-up = cider-polybar -a volume -v 0.01
scroll-down = cider-polybar -a volume -v -0.01
interval = 0.3

Optionally, if you use i3 like I do, add this to your i3 config to have keymappings

bindsym $mod+m [class="Cider"] scratchpad show
bindsym $mod+Ctrl+p exec cider-polybar -a playpause
bindsym $mod+Shift+v exec cider-polybar -a volume -v -0.02
bindsym $mod+Ctrl+v exec  cider-polybar -a volume -v 0.02
bindsym $mod+n exec cider-polybar -a next
bindsym $mod+Ctrl+ n exec cider-polybar -a previous

About

A PolyBar custom module to interact with Cider - An open-source, community-oriented Apple Music

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published