about summary refs log tree commit diff
path: root/awesome/.config/awesome/rc.lua
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2020-11-30 21:52:33 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2020-11-30 21:52:33 +0700
commitb73bf44b7518cdf6d75b3bf79c67d217aced651f (patch)
tree7cdc3480f97d46d9553a5d92a210eb5e1d34124d /awesome/.config/awesome/rc.lua
parent7e2a016dc724dd9f6767a002f5da889740f137c6 (diff)
downloaddotfiles-b73bf44b7518cdf6d75b3bf79c67d217aced651f.tar.gz
Update 2020-11-30
Diffstat (limited to 'awesome/.config/awesome/rc.lua')
-rw-r--r--awesome/.config/awesome/rc.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index bfb390d..1e8432f 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -443,10 +443,10 @@ local globalkeys = awful.util.table.join(
             {description = "swap with previous client by index",
              group = "client"}),
   awful.key({modkey}, "0",
-            function () awful.screen.focus_relative(1) end,
+            function () awful.screen.focus_relative(-1) end,
             {description = "focus the next screen", group = "screen"}),
   awful.key({modkey}, "`",
-            function () awful.screen.focus_relative(-1) end,
+            function () awful.screen.focus_relative(1) end,
             {description = "focus the previous screen", group = "screen"}),
   awful.key({modkey}, "u", awful.client.urgent.jumpto,
             {description = "jump to urgent client", group = "client"}),
@@ -594,9 +594,11 @@ local clientkeys = awful.util.table.join(
   awful.key({modkey, "Control"}, "space",
             function (c) c:swap(awful.client.getmaster()) end,
             {description = "move to master", group = "client"}),
-  awful.key({modkey, "Shift"}, "0", function (c) c:move_to_screen() end,
+  awful.key({modkey, "Shift"}, "0",
+            function (c) c:move_to_screen(c.screen.index - 1) end,
             {description = "move to screen", group = "client"}),
-  awful.key({modkey, "Shift"}, "`", function (c) c:move_to_screen() end,
+  awful.key({modkey, "Shift"}, "`",
+            function (c) c:move_to_screen(c.screen.index + 1) end,
             {description = "move to screen", group = "client"}),
   awful.key({modkey}, "t", function (c) c.ontop = not c.ontop end,
             {description = "toggle keep on top", group = "client"}),