A volume widget for awesomewm 3.5.
Low | Medium | High | Mute | Headphones |
---|---|---|---|---|
- Dependencies: amixer from the
alsa-utils
package. cd ~/.config/awesome/lib
git clone https://github.com/miraleung/awesome-volume.git
cd ..
- In
rc.lua
: - Add to the top:
```
local volume require("lib.awesome-volume.volume")
```
- After the line
if s == 1 then right_layout:add(wibox.widget.systray()) end
, add
```
right_layout:add(volume_widget)
```
- Add keybindings to the section
globalkeys = awful.util.table.join(...)
:
```
awful.key({ modkey, <Modifier> }, <Key>, function() volume_up() end),
awful.key({ modkey, <Modifier> }, <Key>, function() volume_down() end),
awful.key({ modkey, <Modifier> }, <Key>, function() volume_mute() end)
```