1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 20:41:22 +00:00

little things

This commit is contained in:
luke bonham 2013-08-16 19:44:55 +02:00
parent c7ce79278e
commit a262a1403e
4 changed files with 102 additions and 72 deletions

View file

@ -26,6 +26,7 @@ Notable features:
- Powerful volume bar
- Custom layouts
- Freedesktop menu
- By direction client focus (like in bspwm)
They're scattered all over the set, so try each theme and choose the one you enjoy the most.

View file

@ -1,5 +1,4 @@
require("layouts.fairgaps")
require("layouts.spiralgaps")
require("layouts.tilegaps")
module("layouts")

View file

@ -101,11 +101,10 @@ layouts =
awful.layout.suit.floating, -- 1
awful.layout.suit.tile, -- 2
awful.layout.suit.fair, -- 3
awful.layout.suit.tile.bottom, -- 4
awful.layout.suit.fair.horizontal, -- 5
layouts.tilegaps, -- 6
layouts.fairgaps, -- 7
layouts.spiralgaps, -- 8
awful.layout.suit.fair.horizontal, -- 4
layouts.tilegaps, -- 5
layouts.fairgaps, -- 6
layouts.spiralgaps, -- 7
}
-- }}}
@ -130,7 +129,6 @@ for s = 1, screen.count() do
tags[s] = awful.tag(tags.names, s, tags.layout)
end
-- }}}
-- {{{ Menu
@ -730,21 +728,46 @@ globalkeys = awful.util.table.join(
-- Take a screenshot
awful.key({ altkey }, "p", function() awful.util.spawn("screenshot",false) end),
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ altkey, "Shift" }, "j", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ altkey, "Shift" }, "k", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "k",
-- Tag browsing
awful.key({ modkey }, "Left", awful.tag.viewprev ),
awful.key({ modkey }, "Right", awful.tag.viewnext ),
awful.key({ modkey }, "Escape", awful.tag.history.restore),
-- Default client focus
awful.key({ altkey }, "k",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "j",
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
@ -765,18 +788,20 @@ globalkeys = awful.util.table.join(
client.focus:raise()
end
end),
awful.key({ altkey, "Shift" }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ altkey, "Shift" }, "h", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
awful.key({ modkey, "Control" }, "n", awful.client.restore),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
awful.key({ modkey, "Control" }, "n", awful.client.restore),
-- Dropdown terminal
awful.key({ modkey, }, "z", function () scratch.drop(terminal) end),

View file

@ -32,6 +32,8 @@ theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.
theme.widget_mail_notify = theme.dir .. "/icons/mail_notify.png"
theme.widget_no_net_notify = theme.dir .. "/icons/no_net_notify.png"
theme.useless_gap_width = 5
theme.layout_txt_tile = "[t]"
theme.layout_txt_tileleft = "[l]"
theme.layout_txt_tilebottom = "[b]"
@ -46,8 +48,11 @@ theme.layout_txt_magnifier = "[M]"
theme.layout_txt_floating = "[*]"
theme.layout_txt_tilegaps = "[tg]"
theme.layout_txt_fixed = "[fx]"
theme.layout_txt_fixed_alt = "[fx2]"
theme.layout_txt_fairvgaps = "[fvg]"
theme.layout_txt_spiralgaps = "[sg]"
theme.layout_txt_termfair = "[tf]"
theme.tasklist_floating = ""
theme.tasklist_maximized_horizontal = ""