Skip to content
This repository was archived by the owner on Sep 24, 2022. It is now read-only.

theorytoe/musicctl.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

musicctl.lua

musicctl.lua is a libaray for AweseomWM that gives functions to control MPRIS-capable media players.

Installation

playerctl In order for this module to function properly.

# clone repo
git clone https://git.sr.ht/~theorytoe/musicctl.lua

# copy file to config dir
cp ./musicctl.lua ~/.config/awesome

Patching musicctl

musicctl was designed to not depend on anything other than the core AweseomWM library and playerctl. However, there are patches in this repository that add the following features:

  • "floating", top-aligned widgets (needs compositor for transparency) top_align.patch
  • Animations via rubato rubato.patch

You can apply/remove a patch as follows:

# -b creates a backup file
patch -b < patches/rubato.patch

# -R reverses the above
patch -R < patches/rubato.patch

Generating docs

Docs are generated using LDoc in HTML format.

ldoc musicctl.lua -f markdown

Usage

Example usages are found in example/

-- in rc.lua
local musicctl = require('musicctl')
musicctl.vol_up()

Contributing

See:

About

mirror of https://sr.ht/~theorytoe/musicctl.lua/

Resources

License

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Contributors