mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
little things
This commit is contained in:
parent
c7ce79278e
commit
a262a1403e
|
@ -26,6 +26,7 @@ Notable features:
|
||||||
- Powerful volume bar
|
- Powerful volume bar
|
||||||
- Custom layouts
|
- Custom layouts
|
||||||
- Freedesktop menu
|
- 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.
|
They're scattered all over the set, so try each theme and choose the one you enjoy the most.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require("layouts.fairgaps")
|
require("layouts.fairgaps")
|
||||||
require("layouts.spiralgaps")
|
require("layouts.spiralgaps")
|
||||||
require("layouts.tilegaps")
|
require("layouts.tilegaps")
|
||||||
|
|
||||||
module("layouts")
|
module("layouts")
|
||||||
|
|
|
@ -101,11 +101,10 @@ layouts =
|
||||||
awful.layout.suit.floating, -- 1
|
awful.layout.suit.floating, -- 1
|
||||||
awful.layout.suit.tile, -- 2
|
awful.layout.suit.tile, -- 2
|
||||||
awful.layout.suit.fair, -- 3
|
awful.layout.suit.fair, -- 3
|
||||||
awful.layout.suit.tile.bottom, -- 4
|
awful.layout.suit.fair.horizontal, -- 4
|
||||||
awful.layout.suit.fair.horizontal, -- 5
|
layouts.tilegaps, -- 5
|
||||||
layouts.tilegaps, -- 6
|
layouts.fairgaps, -- 6
|
||||||
layouts.fairgaps, -- 7
|
layouts.spiralgaps, -- 7
|
||||||
layouts.spiralgaps, -- 8
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
@ -130,7 +129,6 @@ for s = 1, screen.count() do
|
||||||
tags[s] = awful.tag(tags.names, s, tags.layout)
|
tags[s] = awful.tag(tags.names, s, tags.layout)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Menu
|
-- {{{ Menu
|
||||||
|
@ -730,21 +728,46 @@ globalkeys = awful.util.table.join(
|
||||||
-- Take a screenshot
|
-- Take a screenshot
|
||||||
awful.key({ altkey }, "p", function() awful.util.spawn("screenshot",false) end),
|
awful.key({ altkey }, "p", function() awful.util.spawn("screenshot",false) end),
|
||||||
|
|
||||||
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
|
-- Tag browsing
|
||||||
awful.key({ altkey, "Shift" }, "j", awful.tag.viewprev ),
|
awful.key({ modkey }, "Left", awful.tag.viewprev ),
|
||||||
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
|
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, }, "Escape", awful.tag.history.restore),
|
|
||||||
awful.key({ modkey, }, "k",
|
-- Default client focus
|
||||||
|
awful.key({ altkey }, "k",
|
||||||
function ()
|
function ()
|
||||||
awful.client.focus.byidx( 1)
|
awful.client.focus.byidx( 1)
|
||||||
if client.focus then client.focus:raise() end
|
if client.focus then client.focus:raise() end
|
||||||
end),
|
end),
|
||||||
awful.key({ modkey, }, "j",
|
awful.key({ altkey }, "j",
|
||||||
function ()
|
function ()
|
||||||
awful.client.focus.byidx(-1)
|
awful.client.focus.byidx(-1)
|
||||||
if client.focus then client.focus:raise() end
|
if client.focus then client.focus:raise() end
|
||||||
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),
|
awful.key({ modkey, }, "w", function () mymainmenu:show({keygrabber=true}) end),
|
||||||
|
|
||||||
-- Show/Hide Wibox
|
-- Show/Hide Wibox
|
||||||
|
@ -765,18 +788,20 @@ globalkeys = awful.util.table.join(
|
||||||
client.focus:raise()
|
client.focus:raise()
|
||||||
end
|
end
|
||||||
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
|
-- Standard program
|
||||||
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
|
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
|
||||||
awful.key({ modkey, "Control" }, "r", awesome.restart),
|
awful.key({ modkey, "Control" }, "r", awesome.restart),
|
||||||
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
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
|
-- Dropdown terminal
|
||||||
awful.key({ modkey, }, "z", function () scratch.drop(terminal) end),
|
awful.key({ modkey, }, "z", function () scratch.drop(terminal) end),
|
||||||
|
|
|
@ -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_mail_notify = theme.dir .. "/icons/mail_notify.png"
|
||||||
theme.widget_no_net_notify = theme.dir .. "/icons/no_net_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_tile = "[t]"
|
||||||
theme.layout_txt_tileleft = "[l]"
|
theme.layout_txt_tileleft = "[l]"
|
||||||
theme.layout_txt_tilebottom = "[b]"
|
theme.layout_txt_tilebottom = "[b]"
|
||||||
|
@ -46,8 +48,11 @@ theme.layout_txt_magnifier = "[M]"
|
||||||
theme.layout_txt_floating = "[*]"
|
theme.layout_txt_floating = "[*]"
|
||||||
|
|
||||||
theme.layout_txt_tilegaps = "[tg]"
|
theme.layout_txt_tilegaps = "[tg]"
|
||||||
|
theme.layout_txt_fixed = "[fx]"
|
||||||
|
theme.layout_txt_fixed_alt = "[fx2]"
|
||||||
theme.layout_txt_fairvgaps = "[fvg]"
|
theme.layout_txt_fairvgaps = "[fvg]"
|
||||||
theme.layout_txt_spiralgaps = "[sg]"
|
theme.layout_txt_spiralgaps = "[sg]"
|
||||||
|
theme.layout_txt_termfair = "[tf]"
|
||||||
|
|
||||||
theme.tasklist_floating = ""
|
theme.tasklist_floating = ""
|
||||||
theme.tasklist_maximized_horizontal = ""
|
theme.tasklist_maximized_horizontal = ""
|
||||||
|
|
Loading…
Reference in a new issue