aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/rc-4.3-3.lua (renamed from .config/awesome/rc-stable.lua)6
1 files changed, 2 insertions, 4 deletions
diff --git a/.config/awesome/rc-stable.lua b/.config/awesome/rc-4.3-3.lua
index bf07965..b8bd490 100644
--- a/.config/awesome/rc-stable.lua
+++ b/.config/awesome/rc-4.3-3.lua
@@ -667,12 +667,11 @@ for i = 1, 9 do
-- move client to prev/next tag and switch to it
awful.key({ modkey, "Shift" }, "Left",
function()
- -- get current tag
local t = client.focus and client.focus.first_tag or nil
if t == nil then
return
end
- -- get previous tag (modulo 9 excluding 0 to wrap from 1 to 9)
+
local tag = client.focus.screen.tags[(t.name - 2) % 9 + 1]
client.focus:move_to_tag(tag)
awful.tag.viewprev()
@@ -680,12 +679,11 @@ for i = 1, 9 do
{ description = "move client to previous tag and switch to it", group = "tag" }),
awful.key({ modkey, "Shift" }, "Right",
function()
- -- get current tag
local t = client.focus and client.focus.first_tag or nil
if t == nil then
return
end
- -- get next tag (modulo 9 excluding 0 to wrap from 9 to 1)
+
local tag = client.focus.screen.tags[(t.name % 9) + 1]
client.focus:move_to_tag(tag)
awful.tag.viewnext()