From c01a53c635677b62fe70e0820ad44b2bf44bba8b Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 7 Nov 2018 20:59:47 +0100 Subject: [PATCH] add xrandr module and shortcut --- awesome/.config/awesome/rc.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 765a831..ef77bfa 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -7,6 +7,8 @@ local wibox = require("wibox") -- Theme handling library local lain = require("lain") local beautiful = require("beautiful") +--import xrandr library +local xrandr = require("xrandr") -- Notification library local naughty = require("naughty") local menubar = require("menubar") @@ -257,6 +259,8 @@ globalkeys = gears.table.join( end, {description = "focus previous by index", group = "client"} ), + awful.key({modkey},"o" , function() xrandr.xrandr() end, + {description = "xrandr shortcut", group = "awesome"}), awful.key({ modkey, }, "w", function () mymainmenu:show() end, {description = "show main menu", group = "awesome"}),