mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2025-01-11 02:08:08 +00:00
Moved more bindings to binds.lua
This commit is contained in:
parent
7061b480e4
commit
98a60e70ed
|
@ -293,59 +293,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
|
@ -343,59 +343,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
|
@ -293,59 +293,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
53
rc.lua.holo
53
rc.lua.holo
|
@ -428,59 +428,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
|
@ -360,59 +360,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
|
@ -351,59 +351,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
|
@ -291,59 +291,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
|
@ -304,59 +304,6 @@ require("settings.binds")
|
|||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end),
|
||||
|
||||
-- Show/Hide Wibox
|
||||
awful.key({ modkey }, "b", function ()
|
||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||
|
|
|
@ -42,7 +42,60 @@ awful.key({ modkey, "Control" }, "r", awesome.restart),
|
|||
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
||||
|
||||
-- Dropdown terminal
|
||||
awful.key({ modkey, }, "z", function () drop(terminal) end)
|
||||
awful.key({ modkey, }, "z", function () drop(terminal) end),
|
||||
|
||||
-- Take a screenshot
|
||||
-- https://github.com/copycat-killer/dots/blob/master/bin/screenshot
|
||||
awful.key({ altkey }, "p", function() os.execute("screenshot") end),
|
||||
|
||||
-- Tag browsing
|
||||
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||
awful.key({ modkey }, "Right", awful.tag.viewnext ),
|
||||
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||
|
||||
-- Non-empty tag browsing
|
||||
awful.key({ altkey }, "Left", function () lain.util.tag_view_nonempty(-1) end),
|
||||
awful.key({ altkey }, "Right", function () lain.util.tag_view_nonempty(1) end),
|
||||
|
||||
-- Default client focus
|
||||
awful.key({ altkey }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ altkey }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- By direction client focus
|
||||
awful.key({ modkey }, "j",
|
||||
function()
|
||||
awful.client.focus.bydirection("down")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "k",
|
||||
function()
|
||||
awful.client.focus.bydirection("up")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "h",
|
||||
function()
|
||||
awful.client.focus.bydirection("left")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey }, "l",
|
||||
function()
|
||||
awful.client.focus.bydirection("right")
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
|
||||
-- Show Menu
|
||||
awful.key({ modkey }, "w",
|
||||
function ()
|
||||
mymainmenu:show({ keygrabber = true })
|
||||
end)
|
||||
)
|
||||
|
||||
-- Bind all key numbers to tags.
|
||||
|
|
Loading…
Reference in a new issue