1
0

super+space for run, disable clipdate

This commit is contained in:
Stephen Byrne
2018-08-27 12:29:37 -04:00
parent 02169165f1
commit e3df36ce8a
2 changed files with 9 additions and 4 deletions

View File

@@ -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)

10
rc.lua
View File

@@ -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)
)