1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

#79 default code updated

This commit is contained in:
Luke Bonham 2015-03-30 20:41:55 +02:00
parent 0420770f74
commit 57460e76af
8 changed files with 118 additions and 54 deletions

View file

@ -517,6 +517,7 @@ clientkeys = awful.util.table.join(
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -525,6 +526,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -533,18 +535,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end

View file

@ -588,6 +588,7 @@ clientkeys = awful.util.table.join(
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -596,6 +597,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -604,18 +606,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end

View file

@ -513,10 +513,11 @@ clientkeys = awful.util.table.join(
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout. -- be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -525,6 +526,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -533,18 +535,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end

View file

@ -645,10 +645,11 @@ clientkeys = awful.util.table.join(
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout. -- be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -657,6 +658,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -665,18 +667,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end

View file

@ -584,10 +584,11 @@ clientkeys = awful.util.table.join(
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout. -- be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -596,6 +597,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -604,18 +606,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end

View file

@ -559,10 +559,11 @@ clientkeys = awful.util.table.join(
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout. -- be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -571,6 +572,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -579,18 +581,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end

View file

@ -511,10 +511,11 @@ clientkeys = awful.util.table.join(
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout. -- be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -523,6 +524,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -531,18 +533,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end

View file

@ -520,10 +520,11 @@ clientkeys = awful.util.table.join(
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout. -- be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -532,6 +533,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -540,18 +542,24 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.movetotag(tag) if tag then
awful.client.movetotag(tag)
end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
local tag = awful.tag.gettags(client.focus.screen)[i] if client.focus then
if client.focus and tag then local tag = awful.tag.gettags(client.focus.screen)[i]
awful.client.toggletag(tag) if tag then
awful.client.toggletag(tag)
end
end end
end)) end))
end end