mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2025-01-11 02:08:08 +00:00
Moved more bindings!
This commit is contained in:
parent
98a60e70ed
commit
09387e8326
|
@ -327,47 +327,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set Master playback 100%")
|
awful.util.spawn("amixer -q set Master playback 100%")
|
||||||
volumewidget.update()
|
volumewidget.update()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -380,47 +380,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
||||||
volume.notify()
|
volume.notify()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -327,47 +327,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set Master playback 100%")
|
awful.util.spawn("amixer -q set Master playback 100%")
|
||||||
volumewidget.update()
|
volumewidget.update()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
41
rc.lua.holo
41
rc.lua.holo
|
@ -462,47 +462,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set " .. myvolumebar.channel .. " playback 100%")
|
awful.util.spawn("amixer -q set " .. myvolumebar.channel .. " playback 100%")
|
||||||
myvolumebar.notify()
|
myvolumebar.notify()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -391,47 +391,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set Master playback 100%")
|
awful.util.spawn("amixer -q set Master playback 100%")
|
||||||
volumewidget.update()
|
volumewidget.update()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -380,47 +380,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set Master playback 100%")
|
awful.util.spawn("amixer -q set Master playback 100%")
|
||||||
volumewidget.update()
|
volumewidget.update()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -325,47 +325,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
||||||
volume.notify()
|
volume.notify()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -334,47 +334,6 @@ globalkeys = awful.util.table.join(globalkeys,
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set Master playback 100%")
|
awful.util.spawn("amixer -q set Master playback 100%")
|
||||||
volumewidget.update()
|
volumewidget.update()
|
||||||
end),
|
|
||||||
|
|
||||||
-- MPD control
|
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
|
||||||
function ()
|
|
||||||
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
|
||||||
mpdwidget.update()
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Copy to clipboard
|
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
|
||||||
|
|
||||||
-- User programs
|
|
||||||
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
|
||||||
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
|
||||||
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
|
||||||
awful.key({ modkey }, "x",
|
|
||||||
function ()
|
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
|
||||||
mypromptbox[mouse.screen].widget,
|
|
||||||
awful.util.eval, nil,
|
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,47 @@ awful.key({ modkey }, "l",
|
||||||
awful.key({ modkey }, "w",
|
awful.key({ modkey }, "w",
|
||||||
function ()
|
function ()
|
||||||
mymainmenu:show({ keygrabber = true })
|
mymainmenu:show({ keygrabber = true })
|
||||||
|
end),
|
||||||
|
|
||||||
|
-- MPD control
|
||||||
|
awful.key({ altkey, "Control" }, "Up",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
|
||||||
|
mpdwidget.update()
|
||||||
|
end),
|
||||||
|
awful.key({ altkey, "Control" }, "Down",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
|
||||||
|
mpdwidget.update()
|
||||||
|
end),
|
||||||
|
awful.key({ altkey, "Control" }, "Left",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
|
||||||
|
mpdwidget.update()
|
||||||
|
end),
|
||||||
|
awful.key({ altkey, "Control" }, "Right",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
|
||||||
|
mpdwidget.update()
|
||||||
|
end),
|
||||||
|
|
||||||
|
-- Copy to clipboard
|
||||||
|
awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end),
|
||||||
|
|
||||||
|
-- User programs
|
||||||
|
awful.key({ modkey }, "q", function () awful.util.spawn(browser) end),
|
||||||
|
awful.key({ modkey }, "i", function () awful.util.spawn(browser2) end),
|
||||||
|
awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end),
|
||||||
|
awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end),
|
||||||
|
|
||||||
|
-- Prompt
|
||||||
|
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
||||||
|
awful.key({ modkey }, "x",
|
||||||
|
function ()
|
||||||
|
awful.prompt.run({ prompt = "Run Lua code: " },
|
||||||
|
mypromptbox[mouse.screen].widget,
|
||||||
|
awful.util.eval, nil,
|
||||||
|
awful.util.getdir("cache") .. "/history_eval")
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue