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.
Alexey Solodkiy
Alexey Solodkiy Update README.md
Latest commit ef0a4cb Nov 20, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore move files to root Dec 16, 2014
README.md Update README.md Nov 20, 2016
init.lua Fix maximized client if display sizes not equal Jan 12, 2016
taglist.lua sync alert tags on all screens Jan 12, 2016

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.