add xrandr module and shortcut

This commit is contained in:
vincent 2018-11-07 20:59:47 +01:00
parent 1f5b961559
commit c01a53c635

View File

@ -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"}),