From 03e03cda654a067c129f06e9a2e5d710306d073d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 12 Aug 2008 18:13:51 +0200 Subject: [PATCH] awesomerc: add default binding to access class/instance Signed-off-by: Julien Danjou --- awesomerc.lua.in | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 1bc4ac178..a97df566e 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -240,11 +240,18 @@ keybinding({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, - -- Prompt keybinding({ modkey }, "F1", function () - awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash) - end):add() + awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash) + end):add() keybinding({ modkey }, "F4", function () - awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval) - end):add() + awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval) + end):add() +keybinding({ modkey, "Ctrl" }, "i", function () + if mypromptbox.text then + mypromptbox.text = nil + else + mypromptbox.text = "Class: " .. client.focus.class .. " Instance: ".. client.focus.instance + end + end):add() --- Tabulous, tab manipulation keybinding({ modkey, "Control" }, "y", function ()