Skip to content

ijustlovemath/pbr

Repository files navigation

pbr - a pianobar client for Termux

Installing

  1. Install prerequisites
pkg install git pianobar pulseaudio

Additionally, install the Termux API app from Fdroid, for access to media notifications.

  1. Create a config file for libao

~/.libao

default_driver=pulse
  1. Fill in your user credentials

~/.config/pianobar/config

user = pandora.username@email.com
password = sup3rs4f3p4ssw0rd
event_command = /data/data/com.termux/files/home/.config/pianobar/pbn.sh
  1. Make requisite directories
mkdir -p ~/.local/usr/bin
mkdir -p ~/.local/tmp
  1. Clone this repo, and copy the contents into ~/.config/pianobar
git clone https://github.com/ijustlovemath/pbr ~/.local/tmp/pbr
mv ~/.local/tmp/pbr/* ~/.config/pianobar/
  1. Install the symlinks
pushd ~/.config/pianobar
ln -s $(readlink -f media-notif.sh) ~/.local/usr/bin/pbr
ln -s $(readlink -f pianobar.sh) ~/.local/usr/bin/cpbr
ln -s $(readlink -f pbq.sh) ~/.local/usr/bin/pbq
ln -s $(readlink -f pbs.sh) ~/.local/usr/bin/pbs
  1. (optional) update your path to make the whole thing usable

in your bash/zshrc:

export PATH="$PATH:~/.local/usr/bin"

Usage

Spawn a media notification

pbr

This will also start the downloader/liker notification (called pianobar-tools), and pulseaudio

Press the play/pause button to make it play Press next to skip to next song

You also have access to the full pianobar interface this way

Open current song in Spotify search

Click the Previous button on the media notification (pianobar has no way to play the previous song)

Download the current song

cpbr d

or click the \/ button in pianobar-tools

Like/Dislike the current song

cpbr +/-

or click the <3 or </3 button in pianobar-tools

Spawn a notification with current song info

/!\ warning! this may cause increased battery usage

This command will hang, refreshing the notification once per second

pbs

About

a pianobar cli designed for use with termux and control-pianobar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors