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