aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-03-29 12:32:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-03-29 12:32:02 -0300
commitaf7db7c9289805fde0557df374378eb96558c2e6 (patch)
treee874d55f16af005bc23777cbc0a34f8832e65ae9
parentb374555a17faa329be94110efc85640ead9f8e6a (diff)
downloadawesome-af7db7c9289805fde0557df374378eb96558c2e6.tar.gz
awesome-af7db7c9289805fde0557df374378eb96558c2e6.tar.bz2
Adds xrandr support
-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")