-- Notification library
require("naughty")
+require("obvious.volume_alsa")
+
-- Load Debian menu entries
require("debian.menu")
-- Create a textclock widget
mytextclock = awful.widget.textclock({ align = "right" }, " %c ", 1)
+myvolumealsa = obvious.volume_alsa()
+
-- Create a systray
mysystray = widget({ type = "systray" })
},
mylayoutbox[s],
mytextclock,
+ myvolumealsa,
s == 1 and mysystray or nil,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
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",