From 9ec80bad0cbc0911465ad25f6f89eedbc771f9be Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 29 Jul 2010 21:37:11 +0000 Subject: [PATCH] * add volume support controls --- .config/awesome/rc.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index cf8633e..684ea27 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -7,6 +7,8 @@ require("beautiful") -- Notification library require("naughty") +require("obvious.volume_alsa") + -- Load Debian menu entries require("debian.menu") @@ -76,6 +78,8 @@ mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon), -- Create a textclock widget mytextclock = awful.widget.textclock({ align = "right" }, " %c ", 1) +myvolumealsa = obvious.volume_alsa() + -- Create a systray mysystray = widget({ type = "systray" }) @@ -149,6 +153,7 @@ for s = 1, screen.count() do }, mylayoutbox[s], mytextclock, + myvolumealsa, s == 1 and mysystray or nil, mytasklist[s], layout = awful.widget.layout.horizontal.rightleft @@ -168,6 +173,8 @@ root.buttons(awful.util.table.join( globalkeys = awful.util.table.join( -- awful.key({ modkey, }, "Left", awful.tag.viewprev ), -- awful.key({ modkey, }, "Right", awful.tag.viewnext ), + awful.key({},"XF86AudioRaiseVolume",function () obvious.volume_alsa.raise(0, "Master", 2) end), + awful.key({},"XF86AudioLowerVolume",function () obvious.volume_alsa.lower(0, "Master", 2) end), awful.key({ modkey, }, "Escape", awful.tag.history.restore), awful.key({ modkey, }, "j", -- 2.39.2