aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.dot/awesome.link/keys.lua4
-rw-r--r--config.dot/awesome.link/rc.lua1
2 files changed, 5 insertions, 0 deletions
diff --git a/config.dot/awesome.link/keys.lua b/config.dot/awesome.link/keys.lua
index ec381ad..b04f33f 100644
--- a/config.dot/awesome.link/keys.lua
+++ b/config.dot/awesome.link/keys.lua
@@ -31,6 +31,10 @@ globalkeys = awful.util.table.join(root.keys(),
-- Xlock
awful.key({ modkey, }, "Print", function () awful.spawn("xlock") end, {description = "", group = "client"}),
+ -- Xrandr
+ -- See https://awesomewm.org/recipes/xrandr/
+ awful.key({ modkey, }, "F7", function () xrandr.xrandr() end, {description = "", group = "client"}),
+
-- Volume keys
awful.key({ }, "XF86AudioRaiseVolume", function () awful.spawn("amixer set Master 9%+", false) end, {description = "volume up", group = "client"}),
awful.key({ }, "XF86AudioLowerVolume", function () awful.spawn("amixer set Master 9%-", false) end, {description = "volume down", group = "client"}),
diff --git a/config.dot/awesome.link/rc.lua b/config.dot/awesome.link/rc.lua
index 7dd75c5..817cf17 100644
--- a/config.dot/awesome.link/rc.lua
+++ b/config.dot/awesome.link/rc.lua
@@ -12,6 +12,7 @@ beautiful = require("beautiful")
naughty = require("naughty")
lain = require("lain")
freedesktop = require("freedesktop")
+xrandr = require("xrandr")
-- Variables
dofile(configdir .. "/variables.lua")