awesomerc: use awful.tag.viewtoggle
Signed-off-by: koniu <gkusnierz@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8ff69e3529
commit
05e044ba8e
|
@ -78,7 +78,7 @@ mytaglist = {}
|
||||||
mytaglist.buttons = awful.util.table.join(
|
mytaglist.buttons = awful.util.table.join(
|
||||||
awful.button({ }, 1, awful.tag.viewonly),
|
awful.button({ }, 1, awful.tag.viewonly),
|
||||||
awful.button({ modkey }, 1, awful.client.movetotag),
|
awful.button({ modkey }, 1, awful.client.movetotag),
|
||||||
awful.button({ }, 3, function (tag) tag.selected = not tag.selected end),
|
awful.button({ }, 3, awful.tag.viewtoggle),
|
||||||
awful.button({ modkey }, 3, awful.client.toggletag),
|
awful.button({ modkey }, 3, awful.client.toggletag),
|
||||||
awful.button({ }, 4, awful.tag.viewnext),
|
awful.button({ }, 4, awful.tag.viewnext),
|
||||||
awful.button({ }, 5, awful.tag.viewprev)
|
awful.button({ }, 5, awful.tag.viewprev)
|
||||||
|
@ -247,7 +247,7 @@ for i = 1, keynumber do
|
||||||
function ()
|
function ()
|
||||||
local screen = mouse.screen
|
local screen = mouse.screen
|
||||||
if tags[screen][i] then
|
if tags[screen][i] then
|
||||||
tags[screen][i].selected = not tags[screen][i].selected
|
awful.tag.viewtoggle(tags[screen][i])
|
||||||
end
|
end
|
||||||
end),
|
end),
|
||||||
awful.key({ modkey, "Shift" }, i,
|
awful.key({ modkey, "Shift" }, i,
|
||||||
|
|
Loading…
Reference in New Issue