Ticket #27976: rc.lua.diff
File rc.lua.diff, 1.6 KB (added by cubranic@…, 13 years ago) |
---|
-
rc.lua
old new 283 283 -- This should map on the top row of your keyboard, usually 1 to 9. 284 284 for i = 1, keynumber do 285 285 globalkeys = awful.util.table.join(globalkeys, 286 awful.key({ modkey }, " #" .. i + 9,286 awful.key({ modkey }, "" .. i, 287 287 function () 288 288 local screen = mouse.screen 289 289 if tags[screen][i] then 290 290 awful.tag.viewonly(tags[screen][i]) 291 291 end 292 292 end), 293 awful.key({ modkey, "Control" }, " #" .. i + 9,293 awful.key({ modkey, "Control" }, "" .. i, 294 294 function () 295 295 local screen = mouse.screen 296 296 if tags[screen][i] then 297 297 awful.tag.viewtoggle(tags[screen][i]) 298 298 end 299 299 end), 300 awful.key({ modkey, "Shift" }, " #" .. i + 9,300 awful.key({ modkey, "Shift" }, "" .. i, 301 301 function () 302 302 if client.focus and tags[client.focus.screen][i] then 303 303 awful.client.movetotag(tags[client.focus.screen][i]) 304 304 end 305 305 end), 306 awful.key({ modkey, "Control", "Shift" }, " #" .. i + 9,306 awful.key({ modkey, "Control", "Shift" }, "" .. i, 307 307 function () 308 308 if client.focus and tags[client.focus.screen][i] then 309 309 awful.client.toggletag(tags[client.focus.screen][i])