From e3df36ce8aaeda27e2bb69fe695d424d4ba8989a Mon Sep 17 00:00:00 2001 From: Stephen Byrne Date: Mon, 27 Aug 2018 12:29:37 -0400 Subject: [PATCH] super+space for run, disable clipdate --- clipdate/clipdate.lua | 3 +++ rc.lua | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/clipdate/clipdate.lua b/clipdate/clipdate.lua index 617d83d..199f672 100644 --- a/clipdate/clipdate.lua +++ b/clipdate/clipdate.lua @@ -44,10 +44,13 @@ function clipdate_widget:init(args) end function run(cmd) + --[[ local f = io.popen(cmd,'r') local s = f:read('*a') f:close() return s + ]]-- + return "" end function getDate(cmd) diff --git a/rc.lua b/rc.lua index b67de73..455658f 100644 --- a/rc.lua +++ b/rc.lua @@ -56,7 +56,8 @@ beautiful.init(awful.util.getdir("config") .. "themes/default/theme.lua") -- This is used later as the default terminal and editor to run. --terminal = "x-terminal-emulator" -terminal = "terminology" +--terminal = "terminology" +terminal = "lxterminal" editor = os.getenv("EDITOR") or "editor" editor_cmd = terminal .. " -e " .. editor @@ -368,10 +369,10 @@ globalkeys = awful.util.table.join( {description = "restore minimized", group = "client"}), -- Prompt - awful.key({ modkey }, "Escape", function () awful.screen.focused().mypromptbox:run() end, + awful.key({ modkey }, " ", function () awful.screen.focused().mypromptbox:run() end, {description = "run prompt", group = "launcher"}), ---[[ awful.key({ modkey }, "x", + awful.key({ modkey }, "t", function () awful.prompt.run { prompt = "Run Lua code: ", @@ -380,7 +381,7 @@ globalkeys = awful.util.table.join( history_path = awful.util.get_cache_dir() .. "/history_eval" } end, - {description = "lua execute prompt", group = "awesome"}), ]]-- + {description = "lua execute prompt", group = "awesome"}), -- Menubar awful.key({ modkey }, "p", function() menubar.show() end, @@ -518,6 +519,7 @@ clientbuttons = awful.util.table.join( awful.button({ }, 1, function (c) client.focus = c; c:raise() end), awful.button({ modkey }, 1, awful.mouse.client.move), awful.button({ modkey }, 2, awful.mouse.client.resize) + ,awful.button({ modkey, "Control" }, 1, awful.mouse.client.resize) ,awful.button({}, mouseThumbUp, function(c) awful.tag.viewprev(c.screen.index) end) ,awful.button({}, mouseThumbDown, function(c) awful.tag.viewnext(c.screen.index) end) )