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 end
function run(cmd) function run(cmd)
--[[
local f = io.popen(cmd,'r') local f = io.popen(cmd,'r')
local s = f:read('*a') local s = f:read('*a')
f:close() f:close()
return s return s
]]--
return ""
end end
function getDate(cmd) 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. -- This is used later as the default terminal and editor to run.
--terminal = "x-terminal-emulator" --terminal = "x-terminal-emulator"
terminal = "terminology" --terminal = "terminology"
terminal = "lxterminal"
editor = os.getenv("EDITOR") or "editor" editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor editor_cmd = terminal .. " -e " .. editor
@@ -368,10 +369,10 @@ globalkeys = awful.util.table.join(
{description = "restore minimized", group = "client"}), {description = "restore minimized", group = "client"}),
-- Prompt -- 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"}), {description = "run prompt", group = "launcher"}),
--[[ awful.key({ modkey }, "x", awful.key({ modkey }, "t",
function () function ()
awful.prompt.run { awful.prompt.run {
prompt = "Run Lua code: ", prompt = "Run Lua code: ",
@@ -380,7 +381,7 @@ globalkeys = awful.util.table.join(
history_path = awful.util.get_cache_dir() .. "/history_eval" history_path = awful.util.get_cache_dir() .. "/history_eval"
} }
end, end,
{description = "lua execute prompt", group = "awesome"}), ]]-- {description = "lua execute prompt", group = "awesome"}),
-- Menubar -- Menubar
awful.key({ modkey }, "p", function() menubar.show() end, 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({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move), awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 2, awful.mouse.client.resize) 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({}, mouseThumbUp, function(c) awful.tag.viewprev(c.screen.index) end)
,awful.button({}, mouseThumbDown, function(c) awful.tag.viewnext(c.screen.index) end) ,awful.button({}, mouseThumbDown, function(c) awful.tag.viewnext(c.screen.index) end)
) )