You are not logged in.

#1 2010-05-22 21:48:59

Lea
Member
From: Slovenia
Registered: 2010-01-21
Posts: 34

[SOLVED] Awesome & awful.key

I'm using bash script for setting backlight. But now i have problem with connecting script with keyboard.

Like this is working. I need to press modkey+"p":

awful.key({ modkey }, "p", function () awful.util.spawn("sudo bl.sh -100") end),

But I want to use key where is F2. But this is not normal F2 because I have macbook and pommed. So I tried to find number of this key and xev said that is 233. showkey said that is 224. I tried both this numbers  like this:

awful.key({ }, "#233", function () awful.util.spawn("sudo bl.sh -100") end),

and still not working. Is this syntax ok? If it is, how do i get real number of this key? Tnx.

EDIT: I used key name.

Last edited by Lea (2010-05-23 16:48:59)

Offline

Board footer

Powered by FluxBB