Browse Source

~/.config/awesome: Control audio using X media keys.

Lucas Stadler 13 years ago
parent
commit
6760bf2432
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .config/awesome/rc.lua

+ 5 - 1
.config/awesome/rc.lua

252
    awful.key({ modkey }, "l", function() os.execute(os.getenv('HOME') .. "/.bin/xkbswap") end),
252
    awful.key({ modkey }, "l", function() os.execute(os.getenv('HOME') .. "/.bin/xkbswap") end),
253
    awful.key({ modkey, "Shift" }, "l", function() os.execute("xlock -mode blank") end),
253
    awful.key({ modkey, "Shift" }, "l", function() os.execute("xlock -mode blank") end),
254
    awful.key({ modkey }, "b", function() awful.util.spawn("chromium --allow-file-access-from-files", false) end),
254
    awful.key({ modkey }, "b", function() awful.util.spawn("chromium --allow-file-access-from-files", false) end),
255
    awful.key({ modkey, "Shift" }, "b", function() awful.util.spawn("chromium --incognito --allow-file-access-from-files", false) end)
255
    awful.key({ modkey, "Shift" }, "b", function() awful.util.spawn("chromium --incognito --allow-file-access-from-files", false) end),
256
257
	 awful.key({ }, "XF86AudioMute", function() os.execute("amixer set Master toggle") end),
258
    awful.key({ }, "XF86AudioLowerVolume", function() os.execute("amixer set Master 5%-") end),
259
    awful.key({ }, "XF86AudioRaiseVolume", function() os.execute("amixer set Master 5%+") end)
256
)
260
)
257
261
258
clientkeys = awful.util.table.join(
262
clientkeys = awful.util.table.join(