diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2024-10-05 11:51:10 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2024-10-05 11:51:10 -0500 |
commit | 5a20302dc51bd0cae9562460c8e202bfd604b6ea (patch) | |
tree | 29f0f404eb1d5cfef35d02c92ac2a15474f4f025 /awesome/bar.lua | |
parent | d1f9ee5eced0c273de6c598f88ddb0f7b4e54230 (diff) | |
download | dotconfig-5a20302dc51bd0cae9562460c8e202bfd604b6ea.tar.xz dotconfig-5a20302dc51bd0cae9562460c8e202bfd604b6ea.zip |
pavolctld module and more
Diffstat (limited to 'awesome/bar.lua')
-rw-r--r-- | awesome/bar.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/awesome/bar.lua b/awesome/bar.lua index 285ffe6..523beec 100644 --- a/awesome/bar.lua +++ b/awesome/bar.lua @@ -19,6 +19,8 @@ local widget_cpu_usage = require("widgets.cpu") local widget_ram_usage = require("widgets.ram") local widget_temperature = require("widgets.temperature") local classiclayoutbox = require("widgets.classiclayoutbox") +local volume_control = require("widgets.pavolctld") +local widget_volume = volume_control.textbox -- Menu -- Create a launcher widget and a main menu @@ -66,6 +68,10 @@ local tasklist_buttons = gears.table.join( awful.button({ }, 5, function () awful.client.focus.byidx(-1) end) ) +local volume_buttons = gears.table.join( + awful.button({ }, 4, function() volume_control.volume_inc(5) end), + awful.button({ }, 5, function() volume_control.volume_dec(5) end) +) awful.screen.connect_for_each_screen(function (s) awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s, awful.layout.layouts[1]) @@ -144,6 +150,13 @@ awful.screen.connect_for_each_screen(function (s) widget_ram_usage, wibox.widget.textbox "%", }, + { + layout = wibox.layout.fixed.horizontal, + buttons = volume_buttons, + wibox.widget.textbox "VOL: ", + widget_volume, + wibox.widget.textbox "%", + }, mylauncher, }, } |