From af7db7c9289805fde0557df374378eb96558c2e6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Mar 2018 12:32:02 -0300 Subject: Adds xrandr support --- config.dot/awesome.link/keys.lua | 4 ++++ config.dot/awesome.link/rc.lua | 1 + 2 files changed, 5 insertions(+) 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") -- cgit v1.2.3