From f05506576e512aee6f638676f41d8a0f0bfa70e5 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Tue, 13 Sep 2016 16:29:28 +0200 Subject: [PATCH] lain: new commit --- lain | 2 +- rc.lua.blackburn | 12 ++++-------- rc.lua.copland | 12 ++++-------- rc.lua.dremora | 12 ++++-------- rc.lua.holo | 12 ++++-------- rc.lua.multicolor | 12 ++++-------- rc.lua.powerarrow-darker | 12 ++++-------- rc.lua.rainbow | 12 ++++-------- rc.lua.steamburn | 12 ++++-------- 9 files changed, 33 insertions(+), 65 deletions(-) diff --git a/lain b/lain index 2697333..7e6f133 160000 --- a/lain +++ b/lain @@ -1 +1 @@ -Subproject commit 2697333bdcc6d1ec84e28e76892a007e62ecad2c +Subproject commit 7e6f1336f26e8c36a1768ae1f7f076a30030a8a8 diff --git a/rc.lua.blackburn b/rc.lua.blackburn index d7bb99d..0d42591 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -476,14 +476,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.copland b/rc.lua.copland index a67cd3b..011478e 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -548,14 +548,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.dremora b/rc.lua.dremora index 8e4f479..262ae60 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -475,14 +475,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.holo b/rc.lua.holo index 61b23a7..f390985 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -614,14 +614,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 0cb2282..7ffe6ba 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -567,14 +567,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 0df2f4f..8e267d5 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -537,14 +537,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 6fd60da..f15ee72 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -481,14 +481,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join( diff --git a/rc.lua.steamburn b/rc.lua.steamburn index c7dcd40..c691287 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -491,14 +491,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "g", function () awful.util.spawn(graphics) 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 }, "x", function () + awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", + beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) + end) ) clientkeys = awful.util.table.join(