From b15f3f8f5ceae6d6f519ec1b4786c3797081f46c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 20 Jul 2015 19:27:16 -0300 Subject: Network shell shortcut --- config.dot/awesome.link/keys.lua | 1 + config.dot/awesome.link/rc.lua | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/config.dot/awesome.link/keys.lua b/config.dot/awesome.link/keys.lua index c2fcec4..5e2ec36 100644 --- a/config.dot/awesome.link/keys.lua +++ b/config.dot/awesome.link/keys.lua @@ -16,6 +16,7 @@ globalkeys = awful.util.table.join(root.keys(), awful.key({ modkey, }, "t", function () awful.util.spawn("tor-browser") end), awful.key({ modkey, }, "u", function () awful.util.spawn("luakit") end), awful.key({ modkey, }, "v", function () awful.util.spawn("gvim") end), + awful.key({ modkey, }, "x", function () awful.util.spawn("terminal shell network") end), awful.key({ modkey, }, "z", function () awful.util.spawn("terminal shell root") end), awful.key({ modkey, }, "y", function () awful.util.spawn("xclip-clean") end), diff --git a/config.dot/awesome.link/rc.lua b/config.dot/awesome.link/rc.lua index a6cc32e..b56e4c0 100644 --- a/config.dot/awesome.link/rc.lua +++ b/config.dot/awesome.link/rc.lua @@ -258,15 +258,15 @@ globalkeys = awful.util.table.join( awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), -- Prompt - awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), - - awful.key({ modkey }, "x", - function () - awful.prompt.run({ prompt = "Run Lua code: " }, - mypromptbox[mouse.screen].widget, - awful.util.eval, nil, - awful.util.getdir("cache") .. "/history_eval") - end) + awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end) + + --awful.key({ modkey }, "x", + -- function () + -- awful.prompt.run({ prompt = "Run Lua code: " }, + -- mypromptbox[mouse.screen].widget, + -- awful.util.eval, nil, + -- awful.util.getdir("cache") .. "/history_eval") + -- end) ) clientkeys = awful.util.table.join( -- cgit v1.2.3