Commit Graph

27 Commits

Author SHA1 Message Date
Stefano Mazzucco 847b6ec517 Update copyright header 2019-05-08 16:17:47 +01:00
Stefano Mazzucco 601c94ced0 Add rockspec for release 0.6.0 2019-05-08 16:04:34 +01:00
Stefano Mazzucco c60aa07d98 Use lgi to get icons directly from GTK
Rather than setting a path to the icons, use lgi to get the current GTK theme
and then look up the icons. Then set the image as a cairo surface by using the
GTK api directly.

With this change, one can modify their GTK icon theme (e.g. with lxappearance),
restart AwesomeWM and have the widget's icon automatically updated.
2019-05-08 15:56:32 +01:00
Stefano Mazzucco 392d37c0b4 Use widget constructor as documented in official docs 2019-05-08 15:23:58 +01:00
Stefano Mazzucco 9a2b6f8ab5 Set image using widget property rather than method
This is the documented behaviour in awesome 4.x
2019-05-08 15:17:25 +01:00
Daniel Vartanov fbb711bac3 Remove a redundant comma which causes a syntax error 2019-01-14 22:30:54 +00:00
Stefano Mazzucco 2fd68904bd Release v0.5.0 2018-12-02 21:56:16 +00:00
Stefano Mazzucco b65db3a134 Make notification timeout configurable
Feature requested originally by p-conrad in
https://github.com/stefano-m/awesome-pulseaudio_widget/pull/4
2018-12-02 21:52:37 +00:00
Stefano Mazzucco 948d98be90 Prevent volume notifications from stacking
Feature requested originally by p-conrad in
https://github.com/stefano-m/awesome-pulseaudio_widget/pull/4
2018-12-02 21:43:15 +00:00
Stefano Mazzucco fb8a6f4e5c Bump dependencies and conform to latest dbus_proxy API
Modify the callbacks used by connect_signal to take the actual argument from
the signal rather than an array containing the arguments. This breaking change
was introduced by dbus_proxy 0.9.0.
2017-11-11 17:59:57 +00:00
Stefano Mazzucco 721d0cd385 Move rockspec files to rockspec dir 2017-11-11 17:54:05 +00:00
Stefano Mazzucco eec1fbea32 Add "Contributing" section to README 2017-07-16 13:05:16 +01:00
Stefano Mazzucco c8aed9d048 Improve documentation about installing localy with luarocks
Make clear that when installing with `luarocks install --local` one needs to
export the local LUA_PATH or the libraries won't be picked up.

Addresses https://github.com/stefano-m/awesome-pulseaudio_widget/issues/2
2017-07-16 13:02:46 +01:00
Stefano Mazzucco 3410f9ac7a Unify code from widget and widget_client files
It turns out that Awesome can automatically deal with GLib's main loop and we
don't need an external process to listen to pulseaudio's DBus. This greatly
simplifies the code since we:

- can merge the widget and widget_client files
- don't need to do all the string parsing but can modify the widget directly

Credit to https://github.com/psychon for raising the issue and providing sample
code.

Closes #1 (https://github.com/stefano-m/awesome-pulseaudio_widget/issues/1)
2017-07-10 22:27:33 +01:00
Stefano Mazzucco a9da866952 Add rockspec for version 0.3.0 2017-06-02 12:23:21 +01:00
Stefano Mazzucco 8a357e481f Add support for sources (i.e. microphones)
The widget will to its best to detect the active source.

- Updated client code to detect source changes and add object path information to
  the volume and mute updated signals.
- Added new functions to toggle mute and change volume on the microphone. The
  functions name have `_mic` appended.
- Refactored widget code to reduce duplication.
- Updated README with examples on how to add controls for the microphone to `rc.lua`.
2017-06-02 12:12:42 +01:00
Stefano Mazzucco a80a9a39b6 Rename get_sink to get_device as per latest pulseaudio_dbus changes 2017-06-02 10:28:51 +01:00
Stefano Mazzucco fd61d03f94 Add rockspec for version 0.2.1 2017-05-25 22:26:50 +01:00
Stefano Mazzucco 8916e9a973 Honor muted state on initialization and sink change 2017-05-25 22:07:53 +01:00
Stefano Mazzucco 5d9df5db5f Add dynamic volume/sink updates: use dbus_proxy and Awesome 4.x
- use Awesome 4.x API. This widget will not work with earlier versions.
- use the latest pulseaudio_dbus (v0.10.0) backed by dbus_proxy.
- use client script to listen to signals from pulseaudio to update the widget
  status.
- update copyright notice
- refactor widget code
- update the documentation
- add rockspec for development
- add rockspec for version 0.2.0
2017-05-25 14:41:27 +01:00
Stefano Mazzucco b04347033f Add "Limitations" section to README 2016-11-21 22:54:36 +00:00
Stefano Mazzucco 4d8229e377 Fix typo in README 2016-10-04 22:32:48 +01:00
Stefano Mazzucco 1a2a55acfe Release v0.1.1 2016-09-17 23:45:14 +01:00
Stefano Mazzucco dc52f1c58b Do not break stuff if pulseaudio is not available
Wrap pulse.get_address with pcall and notify Awesome if an error
occurred instead of breaking everything.
2016-09-17 23:37:14 +01:00
Stefano Mazzucco b66eed7394 Ignore *.rock files built by luarocks 2016-08-14 20:16:27 +01:00
Stefano Mazzucco 6bc135a693 Restart development 2016-08-14 20:16:15 +01:00
Stefano Mazzucco 2a287cdd20 Initial commit and first public release: 0.1.0 2016-08-14 20:08:49 +01:00