1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 19:22:32 +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 - 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.

View file

@ -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")

View file

@ -8,17 +8,17 @@
-- {{{ Required Libraries -- {{{ Required Libraries
local gears = require("gears") local gears = require("gears")
local awful = require("awful") local awful = require("awful")
awful.rules = require("awful.rules") awful.rules = require("awful.rules")
awful.autofocus = require("awful.autofocus") awful.autofocus = require("awful.autofocus")
local wibox = require("wibox") local wibox = require("wibox")
local beautiful = require("beautiful") local beautiful = require("beautiful")
local naughty = require("naughty") local naughty = require("naughty")
local vicious = require("vicious") local vicious = require("vicious")
local scratch = require("scratch") local scratch = require("scratch")
local yawn = require("yawn") local yawn = require("yawn")
local layouts = require("layouts") local layouts = require("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),

View file

@ -6,51 +6,56 @@
--[[ ]]-- --[[ ]]--
theme = {} theme = {}
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/rainbow" theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/rainbow"
theme.wallpaper = theme.dir .. "/wall.png" theme.wallpaper = theme.dir .. "/wall.png"
theme.font = "Tamsyn 10" theme.font = "Tamsyn 10"
theme.fg_normal = "#9E9E9E" theme.fg_normal = "#9E9E9E"
theme.fg_focus = "#EBEBFF" theme.fg_focus = "#EBEBFF"
theme.bg_normal = "#242424" theme.bg_normal = "#242424"
theme.bg_focus = "#242424" theme.bg_focus = "#242424"
theme.fg_urgent = "#000000" theme.fg_urgent = "#000000"
theme.bg_urgent = "#FFFFFF" theme.bg_urgent = "#FFFFFF"
theme.border_width = "1" theme.border_width = "1"
theme.border_normal = "#242424" theme.border_normal = "#242424"
theme.border_focus = "#999999" theme.border_focus = "#999999"
theme.taglist_fg_focus = "#EBEBFF" theme.taglist_fg_focus = "#EBEBFF"
theme.taglist_bg_focus = "#3D3D3D" theme.taglist_bg_focus = "#3D3D3D"
theme.menu_height = "16" theme.menu_height = "16"
theme.menu_width = "140" theme.menu_width = "140"
theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png"
theme.taglist_squares_sel = theme.dir .. "/icons/square_sel2.png" theme.taglist_squares_sel = theme.dir .. "/icons/square_sel2.png"
theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png"
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.layout_txt_tile = "[t]" theme.useless_gap_width = 5
theme.layout_txt_tileleft = "[l]"
theme.layout_txt_tilebottom = "[b]"
theme.layout_txt_tiletop = "[tt]"
theme.layout_txt_fairv = "[fv]"
theme.layout_txt_fairh = "[fh]"
theme.layout_txt_spiral = "[s]"
theme.layout_txt_dwindle = "[d]"
theme.layout_txt_max = "[m]"
theme.layout_txt_fullscreen = "[F]"
theme.layout_txt_magnifier = "[M]"
theme.layout_txt_floating = "[*]"
theme.layout_txt_tilegaps = "[tg]" theme.layout_txt_tile = "[t]"
theme.layout_txt_fairvgaps = "[fvg]" theme.layout_txt_tileleft = "[l]"
theme.layout_txt_spiralgaps = "[sg]" theme.layout_txt_tilebottom = "[b]"
theme.layout_txt_tiletop = "[tt]"
theme.layout_txt_fairv = "[fv]"
theme.layout_txt_fairh = "[fh]"
theme.layout_txt_spiral = "[s]"
theme.layout_txt_dwindle = "[d]"
theme.layout_txt_max = "[m]"
theme.layout_txt_fullscreen = "[F]"
theme.layout_txt_magnifier = "[M]"
theme.layout_txt_floating = "[*]"
theme.tasklist_floating = "" theme.layout_txt_tilegaps = "[tg]"
theme.tasklist_maximized_horizontal = "" theme.layout_txt_fixed = "[fx]"
theme.tasklist_maximized_vertical = "" 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 = ""
theme.tasklist_maximized_vertical = ""
return theme return theme