Skip to content
Shared tags for multi-monitor system
Lua
Branch: master
Clone or download
Pull request Compare This branch is 16 commits ahead, 1 commit behind lammermann:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
init.lua
taglist.lua

README.md

Sharetags plugin for awesome wm

Shared tags for multi-monitor system

Usage:

local sharetags = require("sharetags")

-- Widget setup
local sharetags_taglist = require("sharetags.taglist")
tags = sharetags.create_tags(tags_names, tags_layout)
mytaglist = {}
for s = 1, screen.count() do
    -- Create a taglist widget
    --mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, buttons)
    mytaglist[s] = sharetags_taglist(tags, s, awful.widget.taglist.filter.all, buttons)
end



-- Keys setup

-- 1-9
local keys = {"#10", "#11", "#12", "#13", "#14", "#15", "#16", "#17", "#18"}

for i, key in ipairs(keys) do
        globalkeys = awful.util.table.join(globalkeys,
        awful.key({ modkey }, key,
                  function ()
                      local screen = mouse.screen
                      local tag = tags[i]
                      sharetags.select_tag(tag, screen)

                  end),
        awful.key({ modkey, "Control" }, key,
                  function ()
                      local screen = mouse.screen
                      local tag = tags[i]
                      sharetags.toggle_tag(tag, screen)
                  end),
        awful.key({ modkey, "Shift" }, key,
                  function ()
                      if client.focus then
                          local tag = tags[i]
                          awful.client.movetotag(tag)
                     end
                  end)
        )
end
You can’t perform that action at this time.