mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 02:04:21 +02:00
widget: don't allow to switch tags with the mouse
Because of the use of shared tags, buttons should behave as key bindings (defined in `bindings.lua`). Since I don't use mouse to switch tags, it is just easier to remove buttons.
This commit is contained in:
parent
d00ba1f4cd
commit
54034803dc
1 changed files with 1 additions and 21 deletions
|
@ -133,26 +133,6 @@ local promptbox = {}
|
|||
local layoutbox = {}
|
||||
|
||||
local taglist = {}
|
||||
taglist.buttons = awful.util.table.join(
|
||||
awful.button({ }, 1,
|
||||
function(t)
|
||||
if t.screen ~= mouse.screen then
|
||||
sharetags.tag_move(t, mouse.screen)
|
||||
end
|
||||
awful.tag.viewonly(t)
|
||||
end),
|
||||
awful.button({ modkey }, 1, awful.client.movetotag),
|
||||
awful.button({ }, 3,
|
||||
function(t)
|
||||
if t.screen ~= mouse.screen then
|
||||
sharetags.tag_move(t, mouse.screen)
|
||||
end
|
||||
awful.tag.viewtoggle(t)
|
||||
end),
|
||||
awful.button({ modkey }, 3, awful.client.toggletag),
|
||||
awful.button({ }, 4, awful.tag.viewnext),
|
||||
awful.button({ }, 5, awful.tag.viewprev))
|
||||
|
||||
local tasklist = {}
|
||||
tasklist.buttons = awful.util.table.join(
|
||||
awful.button({ }, 1, function (c)
|
||||
|
@ -206,7 +186,7 @@ for s = 1, screen.count() do
|
|||
end, tasklist.buttons)
|
||||
|
||||
-- Create the taglist
|
||||
taglist[s] = sharetags.taglist(s, sharetags.label.all, taglist.buttons)
|
||||
taglist[s] = sharetags.taglist(s, sharetags.label.all)
|
||||
-- Create the wibox
|
||||
wibox[s] = awful.wibox({ screen = s,
|
||||
fg = beautiful.fg_normal,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue