mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2025-01-10 17:58:09 +00:00
Moved more bindings!
This commit is contained in:
parent
98a60e70ed
commit
09387e8326
|
@ -327,48 +327,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set Master playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
|
@ -380,48 +380,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
|
@ -327,48 +327,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set Master playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
43
rc.lua.holo
43
rc.lua.holo
|
@ -462,48 +462,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set " .. myvolumebar.channel .. " playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
|
@ -391,48 +391,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set Master playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
|
@ -380,48 +380,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set Master playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
|
@ -325,48 +325,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
|
@ -334,48 +334,7 @@ globalkeys = awful.util.table.join(globalkeys,
|
|||
function ()
|
||||
awful.util.spawn("amixer -q set Master playback 100%")
|
||||
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)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
|
|
@ -95,7 +95,48 @@ awful.key({ modkey }, "l",
|
|||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end)
|
||||
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)
|
||||
)
|
||||
|
||||
-- Bind all key numbers to tags.
|
||||
|
|
Loading…
Reference in a new issue