]> git.madduck.net Git - etc/awesome.git/blobdiff - .config/awesome/rc.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

more autoformat
[etc/awesome.git] / .config / awesome / rc.lua
index ec9eb190a56a1bee2aa8e47f9d8f2a8cdaeee829..3c760ee91d06ef2a4e9077d096c6d5cde0e4f4a5 100644 (file)
@@ -599,6 +599,7 @@ default_tags = gears.table.join(default_tags, {
                        "krafftwerk/DisplayPort-0",
                        "present/HDMI.*",
                        "cafe/eDP-?1",
                        "krafftwerk/DisplayPort-0",
                        "present/HDMI.*",
                        "cafe/eDP-?1",
+                       "tournament/HDMI.*",
                },
        },
        {
                },
        },
        {
@@ -697,9 +698,14 @@ end
 
 local function move_tags_to_screen_relative(direction)
        local s = awful.screen.focused()
 
 local function move_tags_to_screen_relative(direction)
        local s = awful.screen.focused()
+       local ts = screen:count() - (s.index + direction) % screen:count()
        for _, tag in ipairs(s.selected_tags) do
        for _, tag in ipairs(s.selected_tags) do
-               print("index: " .. s.index .. " count: " .. screen:count())
-               tag.screen = screen[(s.index + screen:count() + direction) % screen.count()]
+               print("index: " .. s.index .. " count: " .. screen:count() .. " target: " .. ts)
+               tag.screen = screen[ts]
+
+               for _, t in ipairs(tag.screen.tags) do
+                       t.selected = (tag == t)
+               end
        end
 end
 
        end
 end