Skip to content

Commit

Permalink
Merge pull request #26 from actionless/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
mokasin authored Oct 13, 2019
2 parents a2fa7ee + 33fb3f8 commit bd43d24
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,31 @@ directly in `widget.lua` (for example to add a margin).
It is advisable to customize the source file in a separate branch. This makes
it easy to update to a new version of APW via rebasing.

### Overriding hidden widget properties without directly editing widget.lua

`.pulseBar` and `.pulse` widget properies allowing to directly
override some widget behavior or properties which are not customizeable
by `beautiful` theme variables.

```lua
local volume = require("third_party/apw/widget")

-- adjust progress bar step:
volume.pulseBar.step = 0.02

-- set Scroll Lock LED on keyboard to show Mute status:
volume.pulse.OrigToggleMute = volume.pulse.ToggleMute
volume.pulse.ToggleMute = function(self)
volume.pulse.OrigToggleMute(self)
if volume.pulse.Mute then
awful.spawn.spawn('xset led named "Scroll Lock"')
else
awful.spawn.spawn('xset -led named "Scroll Lock"')
end
end
```


Mixer
----

Expand Down

0 comments on commit bd43d24

Please sign in to comment.