You are not logged in.

#1 2013-03-19 15:18:37

Scorfly
Member
Registered: 2013-03-19
Posts: 2

[awesome] Key binding isn't working

Hello

I got a problem, my keybinding does't work

Th one I created is :

    awful.key({ modkey,           }, "F11", function () exec("xscreensaver-command -lock") end),

the part of the rc.lua file :

[...]
-- {{{ Key bindings
globalkeys = awful.util.table.join(
    awful.key({ modkey,           }, "Left",   awful.tag.viewprev       ),
    awful.key({ modkey,           }, "Right",  awful.tag.viewnext       ),
    awful.key({ modkey,           }, "Escape", awful.tag.history.restore),
    awful.key({ modkey,           }, "F11", function () exec("xscreensaver-command -lock") end),


    awful.key({ modkey,           }, "j",
        function ()
            awful.client.focus.byidx( 1)
            if client.focus then client.focus:raise() end
        end),
    awful.key({ modkey,           }, "k",
        function ()
            awful.client.focus.byidx(-1)
            if client.focus then client.focus:raise() end
        end),
    awful.key({ modkey,           }, "w", function () mymainmenu:show({keygrabber=true}) end),

    -- Layout manipulation
    awful.key({ modkey, "Shift"   }, "j", function () awful.client.swap.byidx(  1)    end),
    awful.key({ modkey, "Shift"   }, "k", function () awful.client.swap.byidx( -1)    end),
    awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
    awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
    awful.key({ modkey,           }, "u", awful.client.urgent.jumpto),
    awful.key({ modkey,           }, "Tab",
        function ()
            awful.client.focus.history.previous()
            if client.focus then
                client.focus:raise()
            end
        end),

    -- Standard program
    awful.key({ modkey,           }, "Return", function () awful.util.spawn(terminal) end),
    awful.key({ modkey, "Control" }, "r", awesome.restart),
    awful.key({ modkey, "Shift"   }, "q", awesome.quit),

    awful.key({ modkey,           }, "l",     function () awful.tag.incmwfact( 0.05)    end),
[...]

do you have some clue to help me ?


ps : oups, i thought i was on awesome forum and no archlinux forum, maybe you would help me too ?

Last edited by Scorfly (2013-03-19 15:22:24)

Offline

#2 2013-03-19 17:48:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [awesome] Key binding isn't working

What if you use this instead:

awful.key({ modkey,           }, "F11", function() awful.util.spawn("xscreensaver-command -lock") end),

Also remember to restart awesome after making any changes to rc.lua.

Last edited by anonymous_user (2013-03-19 17:48:46)

Offline

#3 2013-03-20 07:29:16

Scorfly
Member
Registered: 2013-03-19
Posts: 2

Re: [awesome] Key binding isn't working

Thx it works !

Offline

Board footer

Powered by FluxBB