Am 10.05.2011 05:12, schrieb Zveroy:
> 2011/5/10 Rainer Stengele <[email protected]>:
>> Hi!
>>
>> I am using run_or_raise successfully!
>> Now on one of my PCs I have firefox, on the other iceweasel as browser.
>>
>> Is the run_or_raise function capable to bind both applications to the same 
>> key?
>>
>> awful.key({ modkey, }, "f", function () run_or_raise("firefox-bin", { name = 
>> "Iceweasel" }) end),
>> -- awful.key({ modkey, }, "f", function () run_or_raise("firefox-bin", { 
>> name = "Firefox" }) end),
>>
>> As far as I see the matching string of run_or_raise is matching substrings.
>> Could it be expanded to match a regex like "Iceweasel|Firefox"?
> 
> You can use something like this:
> 
> awful.key({ modkey, }, "f", function () run_or_raise("firefox-bin", {
> name = { "Iceweasel", "Firefox" } }) end),
> 
> However, i like a little different approach:
> 
> awful.key({ modkey,           }, "b", function ()
> run_or_raise(browser, { instance = "Navigator" }) end),
> 
>> Sorry I am only strating with Lua.
>>
>> Thanks,
>> --Rainer
> 

Yep,

awful.key({ modkey,           }, "b", function () run_or_raise(browser, { 
instance = "Navigator" }) end),

works!

Thanks,
-- Rainer



-- 
To unsubscribe, send mail to [email protected].

Reply via email to