From e458ea034b8264c6bcc986fede145108fd6cfdfb Mon Sep 17 00:00:00 2001 From: sqozz Date: Wed, 4 Feb 2015 11:59:38 +0100 Subject: [PATCH] added monitor navigation --- awesome/rc.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 6cd7848..c54aefb 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -381,8 +381,8 @@ for s = 1, screen.count() do -- right_layout:add(yawn.widget) -- right_layout:add(tempicon) -- right_layout:add(tempwidget) - right_layout:add(baticon) - right_layout:add(batwidget) +-- right_layout:add(baticon) +-- right_layout:add(batwidget) right_layout:add(clockicon) right_layout:add(mytextclock) @@ -416,7 +416,7 @@ end -- {{{ Mouse Bindings root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), +-- awful.button({ }, 3, function () mymainmenu:toggle() end), awful.button({ }, 4, awful.tag.viewnext), awful.button({ }, 5, awful.tag.viewprev) )) @@ -428,9 +428,13 @@ globalkeys = awful.util.table.join( -- https://github.com/copycat-killer/dots/blob/master/bin/screenshot awful.key({ altkey }, "p", function() os.execute("screenshot") end), + -- Monitor navigation + awful.key({ modkey }, "F1", function() awful.screen.focus(1) end), + awful.key({ modkey }, "F2", function() awful.screen.focus(2) end), + -- Lock Screen -- awful.key({ modkey }, "l", function() awful.util.spawn("python3 /home/sqozz/programming/python3/BackgroundChanger/bgchanger.py") end), - awful.key({ modkey }, "l", function() awful.util.spawn("slock") end), + awful.key({ modkey, "Shift" }, "l", function() awful.util.spawn("slock") end), -- Tag browsing awful.key({ modkey }, "Left", awful.tag.viewprev ),