i3status script for displaying current Sonos track
In ~/.i3/config
:
bar {
i3status | /path/to/i3sonos.rb
}
This will assume a speaker name is set in ~/.i3sonos.conf
, otherwise
it must be passed as an argument to i3sonos.rb
.
~/.i3sonos.conf
is JSON file which has two fields:
{
"enabled": true,
"speaker": "office"
}
This file read at startup and changes to it are ignored once i3 is running. To re-read the config file, restart i3.
- Handle changing speakername in
i3sonos.conf
MIT, please see the LICENSE file.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request