Ticket #27976: rc.lua.diff

File rc.lua.diff, 1.6 KB (added by cubranic@…, 12 years ago)

Diff to lua.rc to fix bindings to numeric keys

  • rc.lua

    old new  
    283283-- This should map on the top row of your keyboard, usually 1 to 9.
    284284for i = 1, keynumber do
    285285    globalkeys = awful.util.table.join(globalkeys,
    286         awful.key({ modkey }, "#" .. i + 9,
     286        awful.key({ modkey }, "" .. i,
    287287                  function ()
    288288                        local screen = mouse.screen
    289289                        if tags[screen][i] then
    290290                            awful.tag.viewonly(tags[screen][i])
    291291                        end
    292292                  end),
    293         awful.key({ modkey, "Control" }, "#" .. i + 9,
     293        awful.key({ modkey, "Control" }, "" .. i,
    294294                  function ()
    295295                      local screen = mouse.screen
    296296                      if tags[screen][i] then
    297297                          awful.tag.viewtoggle(tags[screen][i])
    298298                      end
    299299                  end),
    300         awful.key({ modkey, "Shift" }, "#" .. i + 9,
     300        awful.key({ modkey, "Shift" }, "" .. i,
    301301                  function ()
    302302                      if client.focus and tags[client.focus.screen][i] then
    303303                          awful.client.movetotag(tags[client.focus.screen][i])
    304304                      end
    305305                  end),
    306         awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
     306        awful.key({ modkey, "Control", "Shift" }, "" .. i,
    307307                  function ()
    308308                      if client.focus and tags[client.focus.screen][i] then
    309309                          awful.client.toggletag(tags[client.focus.screen][i])