super+space for run, disable clipdate
This commit is contained in:
@@ -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
10
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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user