aboutsummaryrefslogtreecommitdiff
path: root/config.dot
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-08-17 17:24:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-08-17 17:24:31 -0300
commit3f7027442ad7da6d89413b2b868c697b2fadad53 (patch)
tree62e681597fdd03c95f800c8db74456d05b7d2d07 /config.dot
parent5353762c8a79621ca668c42dcd4104901cf144bf (diff)
parent2bc3a810fe82f69d59c92d555f4461cdd6012cf8 (diff)
downloadawesome-3f7027442ad7da6d89413b2b868c697b2fadad53.tar.gz
awesome-3f7027442ad7da6d89413b2b868c697b2fadad53.tar.bz2
Merge branch 'feature/stretch'
Diffstat (limited to 'config.dot')
-rw-r--r--config.dot/awesome.link/errors.lua24
m---------config.dot/awesome.link/freedesktop0
-rw-r--r--config.dot/awesome.link/functions.lua15
-rw-r--r--config.dot/awesome.link/globalkeys.lua185
-rw-r--r--config.dot/awesome.link/keys.lua91
m---------config.dot/awesome.link/lain0
-rw-r--r--config.dot/awesome.link/layout.lua18
-rw-r--r--config.dot/awesome.link/menu.lua22
m---------config.dot/awesome.link/powerarrow0
-rw-r--r--config.dot/awesome.link/rc.lua49
-rw-r--r--config.dot/awesome.link/signals.lua110
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/ac.pngbin0 -> 167 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/bat.pngbin0 -> 191 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/clock.pngbin0 -> 356 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/cpu.pngbin0 -> 295 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/dish.pngbin0 -> 188 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/dwindle.pngbin0 -> 304 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/fairh.pngbin0 -> 288 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/fairv.pngbin0 -> 316 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/floating.pngbin0 -> 267 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/fs.pngbin0 -> 201 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/fullscreen.pngbin0 -> 266 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/magnifier.pngbin0 -> 275 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/mail.pngbin0 -> 204 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/max.pngbin0 -> 434 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/mem.pngbin0 -> 123 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/net_down.pngbin0 -> 348 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/net_up.pngbin0 -> 350 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/note.pngbin0 -> 260 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/note_on.pngbin0 -> 342 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/spiral.pngbin0 -> 305 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/spkr.pngbin0 -> 350 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/square_a.pngbin0 -> 146 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/square_b.pngbin0 -> 141 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/submenu.pngbin0 -> 180 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/temp.pngbin0 -> 353 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/tile.pngbin0 -> 293 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/tilebottom.pngbin0 -> 275 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/tileleft.pngbin0 -> 294 bytes
-rwxr-xr-xconfig.dot/awesome.link/themes/multicolor/icons/tiletop.pngbin0 -> 276 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/close_focus.pngbin0 -> 1279 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/close_normal.pngbin0 -> 1419 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_active.pngbin0 -> 413 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_inactive.pngbin0 -> 264 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_active.pngbin0 -> 492 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_inactive.pngbin0 -> 350 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_active.pngbin0 -> 602 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_inactive.pngbin0 -> 688 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_active.pngbin0 -> 693 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_inactive.pngbin0 -> 695 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_focus.pngbin0 -> 293 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_normal.pngbin0 -> 272 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_active.pngbin0 -> 286 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_inactive.pngbin0 -> 685 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_active.pngbin0 -> 619 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_inactive.pngbin0 -> 769 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_active.pngbin0 -> 622 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_inactive.pngbin0 -> 888 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_active.pngbin0 -> 726 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_inactive.pngbin0 -> 981 bytes
-rw-r--r--config.dot/awesome.link/themes/multicolor/theme.lua344
-rw-r--r--config.dot/awesome.link/themes/multicolor/wall.pngbin0 -> 2082259 bytes
l---------config.dot/awesome.link/themes/powerarrow1
-rw-r--r--config.dot/awesome.link/themes/simplex/theme.lua102
-rw-r--r--config.dot/awesome.link/variables.lua27
-rw-r--r--config.dot/awesome.link/wibar.lua111
-rw-r--r--config.dot/awesome.link/wibox.lua123
-rw-r--r--config.dot/awesome.link/widgets.lua236
m---------config.dot/awesome.link/widgets/awesompd0
-rw-r--r--config.dot/awesome.link/widgets/awesompd.lua57
-rw-r--r--config.dot/awesome.link/widgets/leds.lua13
-rw-r--r--config.dot/awesome.link/widgets/volume.lua34
72 files changed, 809 insertions, 753 deletions
diff --git a/config.dot/awesome.link/errors.lua b/config.dot/awesome.link/errors.lua
new file mode 100644
index 0000000..3e82711
--- /dev/null
+++ b/config.dot/awesome.link/errors.lua
@@ -0,0 +1,24 @@
+-- {{{ Error handling
+-- Check if awesome encountered an error during startup and fell back to
+-- another config (This code will only ever execute for the fallback config)
+if awesome.startup_errors then
+ naughty.notify({ preset = naughty.config.presets.critical,
+ title = "Oops, there were errors during startup!",
+ text = awesome.startup_errors })
+end
+
+-- Handle runtime errors after startup
+do
+ local in_error = false
+ awesome.connect_signal("debug::error", function (err)
+ -- Make sure we don't go into an endless error loop
+ if in_error then return end
+ in_error = true
+
+ naughty.notify({ preset = naughty.config.presets.critical,
+ title = "Oops, an error happened!",
+ text = tostring(err) })
+ in_error = false
+ end)
+end
+-- }}}
diff --git a/config.dot/awesome.link/freedesktop b/config.dot/awesome.link/freedesktop
new file mode 160000
+Subproject 01b60f4da53728a65ccdc7beb443ee67bc6b386
diff --git a/config.dot/awesome.link/functions.lua b/config.dot/awesome.link/functions.lua
index aa98502..f596053 100644
--- a/config.dot/awesome.link/functions.lua
+++ b/config.dot/awesome.link/functions.lua
@@ -2,3 +2,18 @@ function file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end
end
+
+-- {{{ Helper functions
+function client_menu_toggle_fn()
+ local instance = nil
+
+ return function ()
+ if instance and instance.wibox.visible then
+ instance:hide()
+ instance = nil
+ else
+ instance = awful.menu.clients({ theme = { width = 250 } })
+ end
+ end
+end
+-- }}}
diff --git a/config.dot/awesome.link/globalkeys.lua b/config.dot/awesome.link/globalkeys.lua
index 949c07b..c213f07 100644
--- a/config.dot/awesome.link/globalkeys.lua
+++ b/config.dot/awesome.link/globalkeys.lua
@@ -1,27 +1,31 @@
-- {{{ Key bindings
globalkeys = awful.util.table.join(
- awful.key({ modkey, }, "Left", awful.tag.viewprev ),
- awful.key({ modkey, }, "Right", awful.tag.viewnext ),
- awful.key({ modkey, }, "Escape", awful.tag.history.restore),
+ awful.key({ modkey, }, "s", hotkeys_popup.show_help, {description = "show help", group = "awesome"}),
+ awful.key({ modkey, }, "Left", awful.tag.viewprev, {description = "view previous", group = "tag"}),
+ awful.key({ modkey, }, "Right", awful.tag.viewnext, {description = "view next", group = "tag"}),
+ awful.key({ modkey, }, "Escape", awful.tag.history.restore, {description = "go back", group = "tag"}),
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
- if client.focus then client.focus:raise() end
- end),
+ end,
+ {description = "focus next by index", group = "client"}
+ ),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
- if client.focus then client.focus:raise() end
- end),
- awful.key({ modkey, }, "w", function () mymainmenu:show({keygrabber=true}) end),
+ end,
+ {description = "focus previous by index", group = "client"}
+ ),
+ awful.key({ modkey, }, "w", function () mymainmenu:show() end,
+ {description = "show main menu", group = "awesome"}),
-- Layout manipulation
- awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
- awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
- awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
- awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
- awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
+ awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end, {description = "swap with next client by index", group = "client"}),
+ awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end, {description = "swap with previous client by index", group = "client"}),
+ awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end, {description = "focus the next screen", group = "screen"}),
+ awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end, {description = "focus the previous screen", group = "screen"}),
+ awful.key({ modkey, }, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}),
--- Default tab behavior
awful.key({ modkey, }, "Tab",
@@ -30,7 +34,8 @@ globalkeys = awful.util.table.join(
if client.focus then
client.focus:raise()
end
- end),
+ end,
+ {description = "go back", group = "client"}),
--- Cyclic tab behavior
--- See http://stackoverflow.com/questions/11697102/awesome-alttab-just-switches-between-two-apps
@@ -41,7 +46,9 @@ globalkeys = awful.util.table.join(
if client.focus then
client.focus:raise()
end
- end),
+ end,
+ {description = "go back cyclically", group = "client"}),
+
awful.key({ "Mod1", }, "Tab",
function ()
-- awful.client.focus.history.previous()
@@ -49,87 +56,129 @@ globalkeys = awful.util.table.join(
if client.focus then
client.focus:raise()
end
- end),
+ end,
+ {description = "go forward cyclically", group = "client"}),
-- 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, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}),
+ awful.key({ modkey, "Control" }, "r", awesome.restart, {description = "reload awesome", group = "awesome"}),
+ awful.key({ modkey, "Shift" }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}),
+
+ awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end, {description = "increase master width factor", group = "layout"}),
+ awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end, {description = "decrease master width factor", group = "layout"}),
+ awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end, {description = "increase the number of master clients", group = "layout"}),
+ awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1, nil, true) end, {description = "decrease the number of master clients", group = "layout"}),
+ awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1, nil, true) end, {description = "increase the number of columns", group = "layout"}),
+ awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end, {description = "decrease the number of columns", group = "layout"}),
+ awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end, {description = "select next", group = "layout"}),
+ awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end, {description = "select previous", group = "layout"}),
- 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",
+ function ()
+ local c = awful.client.restore()
+ -- Focus restored client
+ if c then
+ client.focus = c
+ c:raise()
+ end
+ end,
+ {description = "restore minimized", group = "client"}),
-- Prompt
- awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end)
+ awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
+ {description = "run prompt", group = "launcher"}),
- --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)
+ awful.key({ modkey }, "x",
+ function ()
+ awful.prompt.run {
+ prompt = "Run Lua code: ",
+ textbox = awful.screen.focused().mypromptbox.widget,
+ exe_callback = awful.util.eval,
+ history_path = awful.util.get_cache_dir() .. "/history_eval"
+ }
+ end,
+ {description = "lua execute prompt", group = "awesome"})
+
+ -- Menubar
+ --awful.key({ modkey }, "p", function() menubar.show() end,
+ -- {description = "show the menubar", group = "launcher"}),
)
clientkeys = awful.util.table.join(
- awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
- awful.key({ modkey, }, "q", function (c) c:kill() end),
- awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
- awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
- awful.key({ modkey, }, "o", awful.client.movetoscreen ),
- awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
- awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end),
+ awful.key({ modkey, }, "f",
+ function (c)
+ c.fullscreen = not c.fullscreen
+ c:raise()
+ end,
+ {description = "toggle fullscreen", group = "client"}),
+ awful.key({ modkey, }, "q", function (c) c:kill() end, {description = "close", group = "client"}),
+ awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle , {description = "toggle floating", group = "client"}),
+ awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end, {description = "move to master", group = "client"}),
+ awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, {description = "move to screen", group = "client"}),
+ awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, {description = "toggle keep on top", group = "client"}),
+ awful.key({ modkey, }, "n",
+ function (c)
+ -- The client currently has the input focus, so it cannot be
+ -- minimized, since minimized clients can't have the focus.
+ c.minimized = true
+ end ,
+ {description = "minimize", group = "client"}),
awful.key({ modkey, }, "m",
function (c)
- c.maximized_horizontal = not c.maximized_horizontal
- c.maximized_vertical = not c.maximized_vertical
- end)
+ c.maximized = not c.maximized
+ c:raise()
+ end ,
+ {description = "maximize", group = "client"})
)
--- Compute the maximum number of digit we need, limited to 9
-keynumber = 0
-for s = 1, screen.count() do
- keynumber = math.min(9, math.max(#tags[s], keynumber));
-end
-
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
-for i = 1, keynumber do
+for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys,
+ -- View tag only.
awful.key({ modkey }, "#" .. i + 9,
function ()
- local screen = mouse.screen
- if tags[screen][i] then
- awful.tag.viewonly(tags[screen][i])
+ local screen = awful.screen.focused()
+ local tag = screen.tags[i]
+ if tag then
+ tag:view_only()
end
- end),
+ end,
+ {description = "view tag #"..i, group = "tag"}),
+ -- Toggle tag display.
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
- local screen = mouse.screen
- if tags[screen][i] then
- awful.tag.viewtoggle(tags[screen][i])
+ local screen = awful.screen.focused()
+ local tag = screen.tags[i]
+ if tag then
+ awful.tag.viewtoggle(tag)
end
- end),
+ end,
+ {description = "toggle tag #" .. i, group = "tag"}),
+ -- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
- if client.focus and tags[client.focus.screen][i] then
- awful.client.movetotag(tags[client.focus.screen][i])
- end
- end),
+ if client.focus then
+ local tag = client.focus.screen.tags[i]
+ if tag then
+ client.focus:move_to_tag(tag)
+ end
+ end
+ end,
+ {description = "move focused client to tag #"..i, group = "tag"}),
+ -- Toggle tag on focused client.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
- if client.focus and tags[client.focus.screen][i] then
- awful.client.toggletag(tags[client.focus.screen][i])
+ if client.focus then
+ local tag = client.focus.screen.tags[i]
+ if tag then
+ client.focus:toggle_tag(tag)
+ end
end
- end))
+ end,
+ {description = "toggle focused client on tag #" .. i, group = "tag"})
+ )
end
clientbuttons = awful.util.table.join(
diff --git a/config.dot/awesome.link/keys.lua b/config.dot/awesome.link/keys.lua
index 5983ac9..9bd3d66 100644
--- a/config.dot/awesome.link/keys.lua
+++ b/config.dot/awesome.link/keys.lua
@@ -1,64 +1,59 @@
-- Key bindings
globalkeys = awful.util.table.join(root.keys(),
- awful.key({ modkey, }, "a", function () awful.util.spawn("thunar") end),
- awful.key({ modkey, }, "b", function () awful.util.spawn("firefox-profile default") end),
- awful.key({ modkey, }, "c", function () awful.util.spawn("terminal xcalendar") end),
- awful.key({ modkey, }, "d", function () awful.util.spawn("terminal shell local media") end),
- awful.key({ modkey, }, "e", function () awful.util.spawn("scrot '%Y-%m-%d-%H:%M:%S_$wx$h.png' -e 'mv $f ~/load/'") end),
- awful.key({ modkey, }, "g", function () awful.util.spawn("gimp") end),
- awful.key({ modkey, }, "h", function () awful.util.spawn("terminal chat") end),
- awful.key({ modkey, }, "i", function () awful.util.spawn("geeqie") end),
- awful.key({ modkey, }, "j", function () awful.util.spawn("gpick -p") end),
- awful.key({ modkey, }, "m", function () awful.util.spawn("terminal xmail") end),
- awful.key({ modkey, }, "n", function () awful.util.spawn("terminal news") end),
- awful.key({ modkey, }, "o", function () awful.util.spawn("chromium-browser --incognito") end),
- awful.key({ modkey, }, "p", function () awful.util.spawn("terminal keyringer default sclip") end),
- awful.key({ modkey, }, "s", function () awful.util.spawn("xsuspend") end),
- awful.key({ modkey, }, "t", function () awful.util.spawn("tor-browser") end),
- awful.key({ modkey, }, "u", function () awful.util.spawn("qrpaste") end),
- awful.key({ modkey, }, "v", function () awful.util.spawn("terminal vim") end),
- awful.key({ modkey, }, "x", function () awful.util.spawn("terminal wicd-curses") end),
- awful.key({ modkey, }, "y", function () awful.util.spawn("xclip-clean") end),
- awful.key({ modkey, }, "z", function () awful.util.spawn("terminal shell root") end),
+ awful.key({ modkey, }, "a", function () awful.util.spawn("thunar") end, {description = "thunar", group = "client"}),
+ awful.key({ modkey, }, "b", function () awful.util.spawn("firefox-profile default") end, {description = "firefox", group = "client"}),
+ awful.key({ modkey, }, "c", function () awful.util.spawn("terminal xcalendar") end, {description = "calendar", group = "client"}),
+ awful.key({ modkey, }, "d", function () awful.util.spawn("terminal shell local media") end, {description = "media", group = "client"}),
+ awful.key({ modkey, }, "e", function () awful.util.spawn("scrot '%Y-%m-%d-%H:%M:%S_$wx$h.png' -e 'mv $f ~/load/'") end, {description = "screenshot", group = "client"}),
+ awful.key({ modkey, }, "g", function () awful.util.spawn("gimp") end, {description = "gimp", group = "client"}),
+ awful.key({ modkey, }, "h", function () awful.util.spawn("terminal chat") end, {description = "chat", group = "client"}),
+ awful.key({ modkey, }, "i", function () awful.util.spawn("geeqie") end, {description = "geeqie", group = "client"}),
+ awful.key({ modkey, }, "j", function () awful.util.spawn("gpick -p") end, {description = "gpick", group = "client"}),
+ awful.key({ modkey, }, "m", function () awful.util.spawn("terminal xmail") end, {description = "mail", group = "client"}),
+ awful.key({ modkey, }, "n", function () awful.util.spawn("terminal news") end, {description = "news", group = "client"}),
+ awful.key({ modkey, }, "o", function () awful.util.spawn("chromium-browser --incognito") end, {description = "chromium", group = "client"}),
+ awful.key({ modkey, }, "p", function () awful.util.spawn("terminal keyringer default sclip") end, {description = "keyringer", group = "client"}),
+ awful.key({ modkey, }, "s", function () awful.util.spawn("xsuspend") end, {description = "suspend", group = "client"}),
+ awful.key({ modkey, }, "t", function () awful.util.spawn("tor-browser") end, {description = "tor-browser", group = "client"}),
+ awful.key({ modkey, }, "u", function () awful.util.spawn("qrpaste") end, {description = "qrpaste", group = "client"}),
+ awful.key({ modkey, }, "v", function () awful.util.spawn("terminal vim") end, {description = "editor", group = "client"}),
+ awful.key({ modkey, }, "x", function () awful.util.spawn("terminal wicd-curses") end, {description = "network", group = "client"}),
+ awful.key({ modkey, }, "y", function () awful.util.spawn("xclip-clean") end, {description = "clear clipboard", group = "client"}),
+ awful.key({ modkey, }, "z", function () awful.util.spawn("terminal shell root") end, {description = "root", group = "client"}),
-- Unused
- --awful.key({ modkey, }, "e", function () awful.util.spawn("command") end),
- --awful.key({ modkey, }, "u", function () awful.util.spawn("command") end),
+ --awful.key({ modkey, }, "e", function () awful.util.spawn("command") end, {description = "", group = "client"}),
+ --awful.key({ modkey, }, "u", function () awful.util.spawn("command") end, {description = "", group = "client"}),
-- Xlock
- awful.key({ modkey, }, "Print", function () awful.util.spawn("xlock") end),
+ awful.key({ modkey, }, "Print", function () awful.util.spawn("xlock") end, {description = "", group = "client"}),
-- Volume keys
- awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 9%+", false) end),
- awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 9%-", false) end),
- awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle", false) end),
+ awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 9%+", false) end, {description = "volume up", group = "client"}),
+ awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 9%-", false) end, {description = "volume down", group = "client"}),
+ awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle", false) end, {description = "mute", group = "client"}),
-- Hibernate
- awful.key({ }, "XF86Launch1", function () awful.util.spawn("xhibernate") end),
+ awful.key({ }, "XF86Launch1", function () awful.util.spawn("xhibernate") end, {description = "", group = "client"}),
-- Virtual environments
- awful.key({ modkey, "Control" }, "a", function () awful.util.spawn("kvmx up tails") end),
- awful.key({ modkey, "Control" }, "b", function () awful.util.spawn("kvmx up bankline") end),
- awful.key({ modkey, "Control" }, "e", function () awful.util.spawn("kvmx up test") end),
- awful.key({ modkey, "Control" }, "s", function () awful.util.spawn("kvmx up signal") end),
- awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("kvmx up tor") end),
- awful.key({ modkey, "Control" }, "v", function () awful.util.spawn("kvmx up vpn") end),
- awful.key({ modkey, "Control" }, "x", function () awful.util.spawn("kvmx up tor-expendable") end),
- awful.key({ modkey, "Control" }, "w", function () awful.util.spawn("kvmx up web") end),
- awful.key({ modkey, "Shift" }, "a", function () awful.util.spawn("kvmx hibernate tails") end),
- awful.key({ modkey, "Shift" }, "b", function () awful.util.spawn("kvmx hibernate bankline") end),
- awful.key({ modkey, "Shift" }, "e", function () awful.util.spawn("kvmx hibernate test") end),
- awful.key({ modkey, "Shift" }, "s", function () awful.util.spawn("kvmx hibernate signal") end),
- awful.key({ modkey, "Shift" }, "t", function () awful.util.spawn("kvmx hibernate tor") end),
- awful.key({ modkey, "Shift" }, "v", function () awful.util.spawn("kvmx hibernate vpn") end),
- awful.key({ modkey, "Shift" }, "x", function () awful.util.spawn("kvmx hibernate tor-expendable") end),
- awful.key({ modkey, "Shift" }, "w", function () awful.util.spawn("kvmx hibernate web") end)
+ awful.key({ modkey, "Control" }, "a", function () awful.util.spawn("kvmx up tails") end, {description = "vm: tails", group = "client"}),
+ awful.key({ modkey, "Control" }, "b", function () awful.util.spawn("kvmx up bankline") end, {description = "vm: bankline", group = "client"}),
+ awful.key({ modkey, "Control" }, "e", function () awful.util.spawn("kvmx up test") end, {description = "vm: test", group = "client"}),
+ awful.key({ modkey, "Control" }, "s", function () awful.util.spawn("kvmx up signal") end, {description = "vm: signal", group = "client"}),
+ awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("kvmx up tor") end, {description = "vm: tor", group = "client"}),
+ awful.key({ modkey, "Control" }, "v", function () awful.util.spawn("kvmx up vpn") end, {description = "vm: vpn", group = "client"}),
+ awful.key({ modkey, "Control" }, "x", function () awful.util.spawn("kvmx up tor-expendable") end, {description = "vm: tor-expendable", group = "client"}),
+ awful.key({ modkey, "Control" }, "w", function () awful.util.spawn("kvmx up web") end, {description = "vm: web", group = "client"}),
+ awful.key({ modkey, "Shift" }, "a", function () awful.util.spawn("kvmx hibernate tails") end, {description = "vm: down: tails", group = "client"}),
+ awful.key({ modkey, "Shift" }, "b", function () awful.util.spawn("kvmx hibernate bankline") end, {description = "vm: down: bankline", group = "client"}),
+ awful.key({ modkey, "Shift" }, "e", function () awful.util.spawn("kvmx hibernate test") end, {description = "vm: down: test", group = "client"}),
+ awful.key({ modkey, "Shift" }, "s", function () awful.util.spawn("kvmx hibernate signal") end, {description = "vm: down: signal", group = "client"}),
+ awful.key({ modkey, "Shift" }, "t", function () awful.util.spawn("kvmx hibernate tor") end, {description = "vm: down: tor", group = "client"}),
+ awful.key({ modkey, "Shift" }, "v", function () awful.util.spawn("kvmx hibernate vpn") end, {description = "vm: down: vpn", group = "client"}),
+ awful.key({ modkey, "Shift" }, "x", function () awful.util.spawn("kvmx hibernate tor-expendable") end, {description = "vm: down: tor-expendable", group = "client"}),
+ awful.key({ modkey, "Shift" }, "w", function () awful.util.spawn("kvmx hibernate web") end, {description = "vm: down: web", group = "client"})
)
--- Append keys from music widget
-if awesompd then
- musicwidget:append_global_keys()
-end
-
-- Set keys
root.keys(globalkeys)
diff --git a/config.dot/awesome.link/lain b/config.dot/awesome.link/lain
new file mode 160000
+Subproject 5b266ecf16c30674abb42f49acfb003c8656453
diff --git a/config.dot/awesome.link/layout.lua b/config.dot/awesome.link/layout.lua
new file mode 100644
index 0000000..22d95c4
--- /dev/null
+++ b/config.dot/awesome.link/layout.lua
@@ -0,0 +1,18 @@
+-- Table of layouts to cover with awful.layout.inc, order matters.
+awful.layout.layouts = {
+ awful.layout.suit.max,
+ awful.layout.suit.floating,
+ awful.layout.suit.tile,
+ awful.layout.suit.tile.left,
+ awful.layout.suit.tile.bottom,
+ awful.layout.suit.tile.top,
+ --awful.layout.suit.fair,
+ --awful.layout.suit.fair.horizontal,
+ --awful.layout.suit.spiral,
+ --awful.layout.suit.spiral.dwindle,
+ --awful.layout.suit.max,
+ --awful.layout.suit.max.fullscreen,
+ --awful.layout.suit.magnifier,
+ --awful.layout.suit.corner.nw,
+}
+-- }}}
diff --git a/config.dot/awesome.link/menu.lua b/config.dot/awesome.link/menu.lua
index 2fa3c60..098291d 100644
--- a/config.dot/awesome.link/menu.lua
+++ b/config.dot/awesome.link/menu.lua
@@ -1,17 +1,25 @@
-- {{{ Menu
--- Create a laucher widget and a main menu
+-- Create a launcher widget and a main menu
+menubar = require("menubar")
+hotkeys_popup = require("awful.hotkeys_popup").widget
+
myawesomemenu = {
- { "quit", awesome.quit },
- { "restart", awesome.restart },
- { "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" }
+ { "hotkeys", function() return false, hotkeys_popup.show_help end},
+ { "manual", terminal .. " -e man awesome" },
+ { "edit config", editor_cmd .. " " .. awesome.conffile },
+ { "restart", awesome.restart },
+ { "quit", function() awesome.quit() end}
}
-mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
- { "debian", debian.menu.Debian_menu.Debian },
+mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
+ { "debian", debian.menu.Debian_menu.Debian },
{ "terminal", terminal }
}
})
-mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
+mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
+
+-- Menubar configuration
+menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}}
diff --git a/config.dot/awesome.link/powerarrow b/config.dot/awesome.link/powerarrow
deleted file mode 160000
-Subproject 0417e1891b48f2843e3615e86d37c071bed0830
diff --git a/config.dot/awesome.link/rc.lua b/config.dot/awesome.link/rc.lua
index b2ae653..0998e3b 100644
--- a/config.dot/awesome.link/rc.lua
+++ b/config.dot/awesome.link/rc.lua
@@ -3,20 +3,18 @@ homedir = os.getenv("HOME")
configdir = homedir .. "/.config/awesome"
themes_dir = configdir .. "/themes"
--- Standard awesome library
-require("awful")
-require("awful.util")
-require("awful.autofocus")
-require("awful.rules")
+-- Awesome library dependencies
+gears = require("gears")
+awful = require("awful")
+wibox = require("wibox")
+autofocus = require("awful.autofocus")
+beautiful = require("beautiful")
+naughty = require("naughty")
+lain = require("lain")
+freedesktop = require("freedesktop")
--- Theme handling library
-require("beautiful")
-
--- Notification library
-require("naughty")
-
--- Widget libraries
-require("vicious")
+-- Variables
+dofile(configdir .. "/variables.lua")
-- Load Debian menu entries
require("debian.menu")
@@ -26,23 +24,25 @@ if awful.util.file_readable(homedir .. "/.custom/awesome/settings.lua") then
dofile(homedir .. "/.custom/awesome/settings.lua")
end
--- Variables
-dofile(configdir .. "/variables.lua")
+-- Theme
+--beautiful.init(awful.util.get_themes_dir() .. "default/theme.lua")
+--beautiful.init(awful.util.get_themes_dir() .. "zenburn/theme.lua")
+beautiful.init(themes_dir .. "/multicolor/theme.lua")
+
+-- Layout
+dofile(configdir .. "/layout.lua")
--- Load theme
-beautiful.init(themes_dir .. "/powerarrow/theme.lua")
+-- Check for errors
+dofile(configdir .. "/errors.lua")
-- Misc functions
dofile(configdir .. "/functions.lua")
--- Tags
-dofile(configdir .. "/tags.lua")
-
-- Menu
dofile(configdir .. "/menu.lua")
--- Wibox
-dofile(configdir .. "/wibox.lua")
+-- Wibar
+dofile(configdir .. "/wibar.lua")
-- Mouse
dofile(configdir .. "/mouse.lua")
@@ -50,7 +50,7 @@ dofile(configdir .. "/mouse.lua")
-- Global keys
dofile(configdir .. "/globalkeys.lua")
--- Custom keys
+-- Key mappings
dofile(configdir .. "/keys.lua")
-- Rules
@@ -58,6 +58,3 @@ dofile(configdir .. "/rules.lua")
-- Signals
dofile(configdir .. "/signals.lua")
-
--- Startup commands
-dofile(configdir .. "/programs.lua")
diff --git a/config.dot/awesome.link/signals.lua b/config.dot/awesome.link/signals.lua
index c65409f..d6a9f8a 100644
--- a/config.dot/awesome.link/signals.lua
+++ b/config.dot/awesome.link/signals.lua
@@ -1,30 +1,98 @@
-- {{{ Signals
-- Signal function to execute when a new client appears.
-client.add_signal("manage", function (c, startup)
- -- Add a titlebar
- -- awful.titlebar.add(c, { modkey = modkey })
+--client.add_signal("manage", function (c, startup)
+-- -- Add a titlebar
+-- -- awful.titlebar.add(c, { modkey = modkey })
+--
+-- -- Enable sloppy focus (focus on mouse over)
+-- --c:add_signal("mouse::enter", function(c)
+-- -- if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
+-- -- and awful.client.focus.filter(c) then
+-- -- client.focus = c
+-- -- end
+-- --end)
+--
+-- if not startup then
+-- -- Set the windows at the slave,
+-- -- i.e. put it at the end of others instead of setting it master.
+-- -- awful.client.setslave(c)
+--
+-- -- Put windows in a smart way, only if they does not set an initial position.
+-- if not c.size_hints.user_position and not c.size_hints.program_position then
+-- awful.placement.no_overlap(c)
+-- awful.placement.no_offscreen(c)
+-- end
+-- end
+--end)
+--
+--client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
+--client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
+-- }}}
+-- {{{ Signals
+-- Signal function to execute when a new client appears.
+client.connect_signal("manage", function (c)
+ -- Set the windows at the slave,
+ -- i.e. put it at the end of others instead of setting it master.
+ -- if not awesome.startup then awful.client.setslave(c) end
- -- Enable sloppy focus (focus on mouse over)
- --c:add_signal("mouse::enter", function(c)
- -- if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
- -- and awful.client.focus.filter(c) then
- -- client.focus = c
- -- end
- --end)
+ if awesome.startup and
+ not c.size_hints.user_position
+ and not c.size_hints.program_position then
+ -- Prevent clients from being unreachable after screen count changes.
+ awful.placement.no_offscreen(c)
+ end
+end)
+
+-- Add a titlebar if titlebars_enabled is set to true in the rules.
+client.connect_signal("request::titlebars", function(c)
+ -- buttons for the titlebar
+ local buttons = awful.util.table.join(
+ awful.button({ }, 1, function()
+ client.focus = c
+ c:raise()
+ awful.mouse.client.move(c)
+ end),
+ awful.button({ }, 3, function()
+ client.focus = c
+ c:raise()
+ awful.mouse.client.resize(c)
+ end)
+ )
- if not startup then
- -- Set the windows at the slave,
- -- i.e. put it at the end of others instead of setting it master.
- -- awful.client.setslave(c)
+ awful.titlebar(c) : setup {
+ { -- Left
+ awful.titlebar.widget.iconwidget(c),
+ buttons = buttons,
+ layout = wibox.layout.fixed.horizontal
+ },
+ { -- Middle
+ { -- Title
+ align = "center",
+ widget = awful.titlebar.widget.titlewidget(c)
+ },
+ buttons = buttons,
+ layout = wibox.layout.flex.horizontal
+ },
+ { -- Right
+ awful.titlebar.widget.floatingbutton (c),
+ awful.titlebar.widget.maximizedbutton(c),
+ awful.titlebar.widget.stickybutton (c),
+ awful.titlebar.widget.ontopbutton (c),
+ awful.titlebar.widget.closebutton (c),
+ layout = wibox.layout.fixed.horizontal()
+ },
+ layout = wibox.layout.align.horizontal
+ }
+end)
- -- Put windows in a smart way, only if they does not set an initial position.
- if not c.size_hints.user_position and not c.size_hints.program_position then
- awful.placement.no_overlap(c)
- awful.placement.no_offscreen(c)
- end
+-- Enable sloppy focus, so that focus follows mouse.
+client.connect_signal("mouse::enter", function(c)
+ if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
+ and awful.client.focus.filter(c) then
+ client.focus = c
end
end)
-client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
-client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
+client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
+client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}
diff --git a/config.dot/awesome.link/themes/multicolor/icons/ac.png b/config.dot/awesome.link/themes/multicolor/icons/ac.png
new file mode 100644
index 0000000..41f49c5
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/ac.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/bat.png b/config.dot/awesome.link/themes/multicolor/icons/bat.png
new file mode 100755
index 0000000..9610766
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/bat.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/clock.png b/config.dot/awesome.link/themes/multicolor/icons/clock.png
new file mode 100644
index 0000000..22aef71
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/clock.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/cpu.png b/config.dot/awesome.link/themes/multicolor/icons/cpu.png
new file mode 100644
index 0000000..1e3cba5
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/cpu.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/dish.png b/config.dot/awesome.link/themes/multicolor/icons/dish.png
new file mode 100644
index 0000000..6ae19fd
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/dish.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/dwindle.png b/config.dot/awesome.link/themes/multicolor/icons/dwindle.png
new file mode 100755
index 0000000..81bf3e9
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/dwindle.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/fairh.png b/config.dot/awesome.link/themes/multicolor/icons/fairh.png
new file mode 100755
index 0000000..89712e2
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/fairh.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/fairv.png b/config.dot/awesome.link/themes/multicolor/icons/fairv.png
new file mode 100755
index 0000000..e1ac18b
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/fairv.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/floating.png b/config.dot/awesome.link/themes/multicolor/icons/floating.png
new file mode 100755
index 0000000..e0a3c39
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/floating.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/fs.png b/config.dot/awesome.link/themes/multicolor/icons/fs.png
new file mode 100644
index 0000000..f869349
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/fs.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/fullscreen.png b/config.dot/awesome.link/themes/multicolor/icons/fullscreen.png
new file mode 100755
index 0000000..84b7c27
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/fullscreen.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/magnifier.png b/config.dot/awesome.link/themes/multicolor/icons/magnifier.png
new file mode 100755
index 0000000..1188d50
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/magnifier.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/mail.png b/config.dot/awesome.link/themes/multicolor/icons/mail.png
new file mode 100755
index 0000000..e8cf11e
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/mail.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/max.png b/config.dot/awesome.link/themes/multicolor/icons/max.png
new file mode 100755
index 0000000..f0979c9
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/max.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/mem.png b/config.dot/awesome.link/themes/multicolor/icons/mem.png
new file mode 100644
index 0000000..a71c2d5
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/mem.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/net_down.png b/config.dot/awesome.link/themes/multicolor/icons/net_down.png
new file mode 100644
index 0000000..09433b1
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/net_down.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/net_up.png b/config.dot/awesome.link/themes/multicolor/icons/net_up.png
new file mode 100644
index 0000000..395d014
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/net_up.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/note.png b/config.dot/awesome.link/themes/multicolor/icons/note.png
new file mode 100644
index 0000000..78f85bf
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/note.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/note_on.png b/config.dot/awesome.link/themes/multicolor/icons/note_on.png
new file mode 100755
index 0000000..264d2c8
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/note_on.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/spiral.png b/config.dot/awesome.link/themes/multicolor/icons/spiral.png
new file mode 100755
index 0000000..ec32ff3
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/spiral.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/spkr.png b/config.dot/awesome.link/themes/multicolor/icons/spkr.png
new file mode 100644
index 0000000..80c20b0
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/spkr.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/square_a.png b/config.dot/awesome.link/themes/multicolor/icons/square_a.png
new file mode 100755
index 0000000..1774d95
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/square_a.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/square_b.png b/config.dot/awesome.link/themes/multicolor/icons/square_b.png
new file mode 100755
index 0000000..b47e9f3
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/square_b.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/submenu.png b/config.dot/awesome.link/themes/multicolor/icons/submenu.png
new file mode 100644
index 0000000..7c81cab
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/submenu.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/temp.png b/config.dot/awesome.link/themes/multicolor/icons/temp.png
new file mode 100755
index 0000000..6c8f8bd
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/temp.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/tile.png b/config.dot/awesome.link/themes/multicolor/icons/tile.png
new file mode 100755
index 0000000..9bbf2fa
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/tile.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/tilebottom.png b/config.dot/awesome.link/themes/multicolor/icons/tilebottom.png
new file mode 100755
index 0000000..ea85f92
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/tilebottom.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/tileleft.png b/config.dot/awesome.link/themes/multicolor/icons/tileleft.png
new file mode 100755
index 0000000..1b8e3c0
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/tileleft.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/tiletop.png b/config.dot/awesome.link/themes/multicolor/icons/tiletop.png
new file mode 100755
index 0000000..a2d0f6a
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/tiletop.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/close_focus.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/close_focus.png
new file mode 100644
index 0000000..98c5056
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/close_focus.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/close_normal.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/close_normal.png
new file mode 100644
index 0000000..7702839
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/close_normal.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_active.png
new file mode 100644
index 0000000..37c1afe
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_inactive.png
new file mode 100644
index 0000000..07ee69d
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_focus_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_active.png
new file mode 100644
index 0000000..b9c70ca
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_inactive.png
new file mode 100644
index 0000000..55cbc0c
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/floating_normal_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_active.png
new file mode 100644
index 0000000..35c1801
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_inactive.png
new file mode 100644
index 0000000..043dae7
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_focus_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_active.png
new file mode 100644
index 0000000..0bbbf6a
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_inactive.png
new file mode 100644
index 0000000..5f1e98f
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/maximized_normal_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_focus.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_focus.png
new file mode 100644
index 0000000..85d8196
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_focus.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_normal.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_normal.png
new file mode 100644
index 0000000..aa47447
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/minimize_normal.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_active.png
new file mode 100644
index 0000000..968f89b
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_inactive.png
new file mode 100644
index 0000000..43d6274
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_focus_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_active.png
new file mode 100644
index 0000000..e09f32d
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_inactive.png
new file mode 100644
index 0000000..9917b9e
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/ontop_normal_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_active.png
new file mode 100644
index 0000000..147ce6a
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_inactive.png
new file mode 100644
index 0000000..a5cdf21
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_focus_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_active.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_active.png
new file mode 100644
index 0000000..0d003ef
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_active.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_inactive.png b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_inactive.png
new file mode 100644
index 0000000..f1e8789
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/icons/titlebar/sticky_normal_inactive.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/multicolor/theme.lua b/config.dot/awesome.link/themes/multicolor/theme.lua
new file mode 100644
index 0000000..2642a5e
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/theme.lua
@@ -0,0 +1,344 @@
+
+--[[
+
+ Multicolor Awesome WM theme 2.0
+ github.com/copycat-killer
+
+--]]
+
+
+local gears = require("gears")
+local lain = require("lain")
+local awful = require("awful")
+local wibox = require("wibox")
+local os = { getenv = os.getenv, setlocale = os.setlocale }
+
+local theme = {}
+theme.confdir = os.getenv("HOME") .. "/.config/awesome/themes/multicolor"
+theme.wallpaper = theme.confdir .. "/wall.png"
+theme.font = "xos4 Terminus 8"
+theme.menu_bg_normal = "#000000"
+theme.menu_bg_focus = "#000000"
+theme.bg_normal = "#000000"
+theme.bg_focus = "#000000"
+theme.bg_urgent = "#000000"
+theme.fg_normal = "#aaaaaa"
+theme.fg_focus = "#ff8c00"
+theme.fg_urgent = "#af1d18"
+theme.fg_minimize = "#ffffff"
+theme.border_width = 1
+theme.border_normal = "#1c2022"
+theme.border_focus = "#606060"
+theme.border_marked = "#3ca4d8"
+theme.menu_border_width = 0
+theme.menu_width = 130
+theme.menu_submenu_icon = theme.confdir .. "/icons/submenu.png"
+theme.menu_fg_normal = "#aaaaaa"
+theme.menu_fg_focus = "#ff8c00"
+theme.menu_bg_normal = "#050505dd"
+theme.menu_bg_focus = "#050505dd"
+theme.widget_temp = theme.confdir .. "/icons/temp.png"
+theme.widget_uptime = theme.confdir .. "/icons/ac.png"
+theme.widget_cpu = theme.confdir .. "/icons/cpu.png"
+theme.widget_weather = theme.confdir .. "/icons/dish.png"
+theme.widget_fs = theme.confdir .. "/icons/fs.png"
+theme.widget_mem = theme.confdir .. "/icons/mem.png"
+theme.widget_fs = theme.confdir .. "/icons/fs.png"
+theme.widget_note = theme.confdir .. "/icons/note.png"
+theme.widget_note_on = theme.confdir .. "/icons/note_on.png"
+theme.widget_netdown = theme.confdir .. "/icons/net_down.png"
+theme.widget_netup = theme.confdir .. "/icons/net_up.png"
+theme.widget_mail = theme.confdir .. "/icons/mail.png"
+theme.widget_batt = theme.confdir .. "/icons/bat.png"
+theme.widget_clock = theme.confdir .. "/icons/clock.png"
+theme.widget_vol = theme.confdir .. "/icons/spkr.png"
+theme.taglist_squares_sel = theme.confdir .. "/icons/square_a.png"
+theme.taglist_squares_unsel = theme.confdir .. "/icons/square_b.png"
+theme.tasklist_plain_task_name = true
+theme.tasklist_disable_icon = true
+theme.useless_gap = 0
+theme.layout_tile = theme.confdir .. "/icons/tile.png"
+theme.layout_tilegaps = theme.confdir .. "/icons/tilegaps.png"
+theme.layout_tileleft = theme.confdir .. "/icons/tileleft.png"
+theme.layout_tilebottom = theme.confdir .. "/icons/tilebottom.png"
+theme.layout_tiletop = theme.confdir .. "/icons/tiletop.png"
+theme.layout_fairv = theme.confdir .. "/icons/fairv.png"
+theme.layout_fairh = theme.confdir .. "/icons/fairh.png"
+theme.layout_spiral = theme.confdir .. "/icons/spiral.png"
+theme.layout_dwindle = theme.confdir .. "/icons/dwindle.png"
+theme.layout_max = theme.confdir .. "/icons/max.png"
+theme.layout_fullscreen = theme.confdir .. "/icons/fullscreen.png"
+theme.layout_magnifier = theme.confdir .. "/icons/magnifier.png"
+theme.layout_floating = theme.confdir .. "/icons/floating.png"
+theme.titlebar_close_button_normal = theme.confdir .. "/icons/titlebar/close_normal.png"
+theme.titlebar_close_button_focus = theme.confdir .. "/icons/titlebar/close_focus.png"
+theme.titlebar_minimize_button_normal = theme.confdir .. "/icons/titlebar/minimize_normal.png"
+theme.titlebar_minimize_button_focus = theme.confdir .. "/icons/titlebar/minimize_focus.png"
+theme.titlebar_ontop_button_normal_inactive = theme.confdir .. "/icons/titlebar/ontop_normal_inactive.png"
+theme.titlebar_ontop_button_focus_inactive = theme.confdir .. "/icons/titlebar/ontop_focus_inactive.png"
+theme.titlebar_ontop_button_normal_active = theme.confdir .. "/icons/titlebar/ontop_normal_active.png"
+theme.titlebar_ontop_button_focus_active = theme.confdir .. "/icons/titlebar/ontop_focus_active.png"
+theme.titlebar_sticky_button_normal_inactive = theme.confdir .. "/icons/titlebar/sticky_normal_inactive.png"
+theme.titlebar_sticky_button_focus_inactive = theme.confdir .. "/icons/titlebar/sticky_focus_inactive.png"
+theme.titlebar_sticky_button_normal_active = theme.confdir .. "/icons/titlebar/sticky_normal_active.png"
+theme.titlebar_sticky_button_focus_active = theme.confdir .. "/icons/titlebar/sticky_focus_active.png"
+theme.titlebar_floating_button_normal_inactive = theme.confdir .. "/icons/titlebar/floating_normal_inactive.png"
+theme.titlebar_floating_button_focus_inactive = theme.confdir .. "/icons/titlebar/floating_focus_inactive.png"
+theme.titlebar_floating_button_normal_active = theme.confdir .. "/icons/titlebar/floating_normal_active.png"
+theme.titlebar_floating_button_focus_active = theme.confdir .. "/icons/titlebar/floating_focus_active.png"
+theme.titlebar_maximized_button_normal_inactive = theme.confdir .. "/icons/titlebar/maximized_normal_inactive.png"
+theme.titlebar_maximized_button_focus_inactive = theme.confdir .. "/icons/titlebar/maximized_focus_inactive.png"
+theme.titlebar_maximized_button_normal_active = theme.confdir .. "/icons/titlebar/maximized_normal_active.png"
+theme.titlebar_maximized_button_focus_active = theme.confdir .. "/icons/titlebar/maximized_focus_active.png"
+
+local markup = lain.util.markup
+
+-- Textclock
+os.setlocale(os.getenv("LANG")) -- to localize the clock
+local clockicon = wibox.widget.imagebox(theme.widget_clock)
+local mytextclock = wibox.widget.textclock(markup("#7788af", "%A %d %B ") .. markup("#535f7a", ">") .. markup("#de5e1e", " %H:%M "))
+mytextclock.font = theme.font
+
+-- Calendar
+theme.cal = lain.widget.calendar({
+ attach_to = { mytextclock },
+ notification_preset = {
+ font = "xos4 Terminus 10",
+ fg = theme.fg_normal,
+ bg = theme.bg_normal
+ }
+})
+
+-- Weather
+local weathericon = wibox.widget.imagebox(theme.widget_weather)
+theme.weather = lain.widget.weather({
+ city_id = 2643743, -- placeholder (London)
+ notification_preset = { font = "xos4 Terminus 10", fg = theme.fg_normal },
+ weather_na_markup = markup.fontfg(theme.font, "#eca4c4", "N/A "),
+ settings = function()
+ descr = weather_now["weather"][1]["description"]:lower()
+ units = math.floor(weather_now["main"]["temp"])
+ widget:set_markup(markup.fontfg(theme.font, "#eca4c4", descr .. " @ " .. units .. "°C "))
+ end
+})
+
+-- / fs
+local fsicon = wibox.widget.imagebox(theme.widget_fs)
+theme.fs = lain.widget.fs({
+ options = "--exclude-type=tmpfs",
+ notification_preset = { font = "xos4 Terminus 10", fg = theme.fg_normal },
+ settings = function()
+ widget:set_markup(markup.fontfg(theme.font, "#80d9d8", fs_now.used .. "% "))
+ end
+})
+
+--[[ Mail IMAP check
+-- commented because it needs to be set before use
+local mailicon = wibox.widget.imagebox()
+local mail = lain.widget.imap({
+ timeout = 180,
+ server = "server",
+ mail = "mail",
+ password = "keyring get mail",
+ settings = function()
+ if mailcount > 0 then
+ mailicon:set_image(theme.widget_mail)
+ widget:set_markup(markup.fontfg(theme.font, "#cccccc", mailcount .. " "))
+ else
+ widget:set_text("")
+ --mailicon:set_image() -- not working in 4.0
+ mailicon._private.image = nil
+ mailicon:emit_signal("widget::redraw_needed")
+ mailicon:emit_signal("widget::layout_changed")
+ end
+ end
+})
+--]]
+
+-- CPU
+local cpuicon = wibox.widget.imagebox(theme.widget_cpu)
+local cpu = lain.widget.cpu({
+ settings = function()
+ widget:set_markup(markup.fontfg(theme.font, "#e33a6e", cpu_now.usage .. "% "))
+ end
+})
+
+-- Coretemp
+local tempicon = wibox.widget.imagebox(theme.widget_temp)
+local temp = lain.widget.temp({
+ settings = function()
+ widget:set_markup(markup.fontfg(theme.font, "#f1af5f", coretemp_now .. "°C "))
+ end
+})
+
+-- Battery
+local baticon = wibox.widget.imagebox(theme.widget_batt)
+local bat = lain.widget.bat({
+ settings = function()
+ local perc = bat_now.perc ~= "N/A" and bat_now.perc .. "%" or bat_now.perc
+
+ if bat_now.ac_status == 1 then
+ perc = perc .. " plug"
+ end
+
+ widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, perc .. " "))
+ end
+})
+
+-- ALSA volume
+local volicon = wibox.widget.imagebox(theme.widget_vol)
+theme.volume = lain.widget.alsa({
+ settings = function()
+ if volume_now.status == "off" then
+ volume_now.level = volume_now.level .. "M"
+ end
+
+ widget:set_markup(markup.fontfg(theme.font, "#7493d2", volume_now.level .. "% "))
+ end
+})
+
+-- Net
+local netdownicon = wibox.widget.imagebox(theme.widget_netdown)
+local netdowninfo = wibox.widget.textbox()
+local netupicon = wibox.widget.imagebox(theme.widget_netup)
+local netupinfo = lain.widget.net({
+ settings = function()
+ if iface ~= "network off" and
+ string.match(theme.weather.widget.text, "N/A")
+ then
+ theme.weather.update()
+ end
+
+ widget:set_markup(markup.fontfg(theme.font, "#e54c62", net_now.sent .. " "))
+ netdowninfo:set_markup(markup.fontfg(theme.font, "#87af5f", net_now.received .. " "))
+ end
+})
+
+-- MEM
+local memicon = wibox.widget.imagebox(theme.widget_mem)
+local memory = lain.widget.mem({
+ settings = function()
+ widget:set_markup(markup.fontfg(theme.font, "#e0da37", mem_now.used .. "M "))
+ end
+})
+
+-- MPD
+local mpdicon = wibox.widget.imagebox()
+theme.mpd = lain.widget.mpd({
+ settings = function()
+ mpd_notification_preset = {
+ text = string.format("%s [%s] - %s\n%s", mpd_now.artist,
+ mpd_now.album, mpd_now.date, mpd_now.title)
+ }
+
+ if mpd_now.state == "play" then
+ artist = mpd_now.artist .. " > "
+ title = mpd_now.title .. " "
+ mpdicon:set_image(theme.widget_note_on)
+ elseif mpd_now.state == "pause" then
+ artist = "mpd "
+ title = "paused "
+ else
+ artist = ""
+ title = ""
+ --mpdicon:set_image() -- not working in 4.0
+ mpdicon._private.image = nil
+ mpdicon:emit_signal("widget::redraw_needed")
+ mpdicon:emit_signal("widget::layout_changed")
+ end
+ widget:set_markup(markup.fontfg(theme.font, "#e54c62", artist) .. markup.fontfg(theme.font, "#b2b2b2", title))
+ end
+})
+
+function theme.at_screen_connect(s)
+ -- Quake application
+ s.quake = lain.util.quake({ app = awful.util.terminal })
+
+ -- If wallpaper is a function, call it with the screen
+ local wallpaper = theme.wallpaper
+ if type(wallpaper) == "function" then
+ wallpaper = wallpaper(s)
+ end
+ gears.wallpaper.maximized(wallpaper, s, true)
+
+ -- Tags
+ awful.tag(awful.util.tagnames, s, awful.layout.layouts)
+
+ -- Create a promptbox for each screen
+ s.mypromptbox = awful.widget.prompt()
+ -- Create an imagebox widget which will contains an icon indicating which layout we're using.
+ -- We need one layoutbox per screen.
+ s.mylayoutbox = awful.widget.layoutbox(s)
+ s.mylayoutbox:buttons(awful.util.table.join(
+ awful.button({ }, 1, function () awful.layout.inc( 1) end),
+ awful.button({ }, 3, function () awful.layout.inc(-1) end),
+ awful.button({ }, 4, function () awful.layout.inc( 1) end),
+ awful.button({ }, 5, function () awful.layout.inc(-1) end)))
+ -- Create a taglist widget
+ s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons)
+
+ -- Create a tasklist widget
+ s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons)
+
+ -- Create the wibox
+ s.mywibox = awful.wibar({ position = "top", screen = s, height = 20, bg = theme.bg_normal, fg = theme.fg_normal })
+
+ -- Add widgets to the wibox
+ s.mywibox:setup {
+ layout = wibox.layout.align.horizontal,
+ { -- Left widgets
+ layout = wibox.layout.fixed.horizontal,
+ --s.mylayoutbox,
+ s.mytaglist,
+ s.mypromptbox,
+ mpdicon,
+ theme.mpd.widget,
+ },
+ --s.mytasklist, -- Middle widget
+ nil,
+ { -- Right widgets
+ layout = wibox.layout.fixed.horizontal,
+ wibox.widget.systray(),
+ --mailicon,
+ --mail.widget,
+ netdownicon,
+ netdowninfo,
+ netupicon,
+ netupinfo.widget,
+ volicon,
+ theme.volume.widget,
+ memicon,
+ memory.widget,
+ cpuicon,
+ cpu.widget,
+ fsicon,
+ theme.fs.widget,
+ weathericon,
+ theme.weather.widget,
+ tempicon,
+ temp.widget,
+ baticon,
+ bat.widget,
+ clockicon,
+ mytextclock,
+ },
+ }
+
+ -- Create the bottom wibox
+ s.mybottomwibox = awful.wibar({ position = "bottom", screen = s, border_width = 0, height = 20, bg = theme.bg_normal, fg = theme.fg_normal })
+
+ -- Add widgets to the bottom wibox
+ s.mybottomwibox:setup {
+ layout = wibox.layout.align.horizontal,
+ { -- Left widgets
+ layout = wibox.layout.fixed.horizontal,
+ },
+ s.mytasklist, -- Middle widget
+ { -- Right widgets
+ layout = wibox.layout.fixed.horizontal,
+ s.mylayoutbox,
+ },
+ }
+end
+
+return theme
diff --git a/config.dot/awesome.link/themes/multicolor/wall.png b/config.dot/awesome.link/themes/multicolor/wall.png
new file mode 100644
index 0000000..a3188d0
--- /dev/null
+++ b/config.dot/awesome.link/themes/multicolor/wall.png
Binary files differ
diff --git a/config.dot/awesome.link/themes/powerarrow b/config.dot/awesome.link/themes/powerarrow
deleted file mode 120000
index 8917e4b..0000000
--- a/config.dot/awesome.link/themes/powerarrow
+++ /dev/null
@@ -1 +0,0 @@
-../powerarrow/themes/powerarrow \ No newline at end of file
diff --git a/config.dot/awesome.link/themes/simplex/theme.lua b/config.dot/awesome.link/themes/simplex/theme.lua
deleted file mode 100644
index 0f64c38..0000000
--- a/config.dot/awesome.link/themes/simplex/theme.lua
+++ /dev/null
@@ -1,102 +0,0 @@
----------------------------
--- Default awesome theme --
----------------------------
-
-theme = {}
-
-theme.font = "sans 8"
---theme.font = "inconsolata 8"
---theme.font = "terminus 8"
---theme.font = "mono 8"
-
----theme.bg_normal = "#222222"
-theme.bg_normal = "#000000"
----theme.bg_focus = "#535d6c"
-theme.bg_focus = "#222222"
-theme.bg_urgent = "#ff0000"
-theme.bg_minimize = "#444444"
-
-theme.fg_normal = "#aaaaaa"
-theme.fg_focus = "#ffffff"
-theme.fg_urgent = "#ffffff"
-theme.fg_minimize = "#ffffff"
-
-theme.border_width = "1"
-theme.border_normal = "#000000"
----theme.border_focus = "#535d6c"
-theme.border_focus = "#222222"
-theme.border_marked = "#91231c"
-
--- There are other variable sets
--- overriding the default one when
--- defined, the sets are:
--- [taglist|tasklist]_[bg|fg]_[focus|urgent]
--- titlebar_[bg|fg]_[normal|focus]
--- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
--- mouse_finder_[color|timeout|animate_timeout|radius|factor]
--- Example:
---theme.taglist_bg_focus = "#ff0000"
-
--- Display the taglist squares
-theme.taglist_squares_sel = "/usr/share/awesome/themes/default/taglist/squarefw.png"
-theme.taglist_squares_unsel = "/usr/share/awesome/themes/default/taglist/squarew.png"
-
-theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/floatingw.png"
-
--- Variables set for theming the menu:
--- menu_[bg|fg]_[normal|focus]
--- menu_[border_color|border_width]
-theme.menu_submenu_icon = "/usr/share/awesome/themes/default/submenu.png"
-theme.menu_height = "15"
-theme.menu_width = "100"
-
--- You can add as many variables as
--- you wish and access them by using
--- beautiful.variable in your rc.lua
---theme.bg_widget = "#cc0000"
-
--- Define the image to load
-theme.titlebar_close_button_normal = "/usr/share/awesome/themes/default/titlebar/close_normal.png"
-theme.titlebar_close_button_focus = "/usr/share/awesome/themes/default/titlebar/close_focus.png"
-
-theme.titlebar_ontop_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_normal_inactive.png"
-theme.titlebar_ontop_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_focus_inactive.png"
-theme.titlebar_ontop_button_normal_active = "/usr/share/awesome/themes/default/titlebar/ontop_normal_active.png"
-theme.titlebar_ontop_button_focus_active = "/usr/share/awesome/themes/default/titlebar/ontop_focus_active.png"
-
-theme.titlebar_sticky_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_normal_inactive.png"
-theme.titlebar_sticky_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_focus_inactive.png"
-theme.titlebar_sticky_button_normal_active = "/usr/share/awesome/themes/default/titlebar/sticky_normal_active.png"
-theme.titlebar_sticky_button_focus_active = "/usr/share/awesome/themes/default/titlebar/sticky_focus_active.png"
-
-theme.titlebar_floating_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/floating_normal_inactive.png"
-theme.titlebar_floating_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/floating_focus_inactive.png"
-theme.titlebar_floating_button_normal_active = "/usr/share/awesome/themes/default/titlebar/floating_normal_active.png"
-theme.titlebar_floating_button_focus_active = "/usr/share/awesome/themes/default/titlebar/floating_focus_active.png"
-
-theme.titlebar_maximized_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_normal_inactive.png"
-theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_focus_inactive.png"
-theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png"
-theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png"
-
--- You can use your own command to set your wallpaper
---theme.wallpaper_cmd = { "awsetbg " .. homedir .. "/themes/backgrounds/background.jpg" }
---theme.wallpaper_cmd = { "xsetroot -solid black" }
-
--- You can use your own layout icons like this:
-theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"
-theme.layout_fairv = "/usr/share/awesome/themes/default/layouts/fairvw.png"
-theme.layout_floating = "/usr/share/awesome/themes/default/layouts/floatingw.png"
-theme.layout_magnifier = "/usr/share/awesome/themes/default/layouts/magnifierw.png"
-theme.layout_max = "/usr/share/awesome/themes/default/layouts/maxw.png"
-theme.layout_fullscreen = "/usr/share/awesome/themes/default/layouts/fullscreenw.png"
-theme.layout_tilebottom = "/usr/share/awesome/themes/default/layouts/tilebottomw.png"
-theme.layout_tileleft = "/usr/share/awesome/themes/default/layouts/tileleftw.png"
-theme.layout_tile = "/usr/share/awesome/themes/default/layouts/tilew.png"
-theme.layout_tiletop = "/usr/share/awesome/themes/default/layouts/tiletopw.png"
-theme.layout_spiral = "/usr/share/awesome/themes/default/layouts/spiralw.png"
-theme.layout_dwindle = "/usr/share/awesome/themes/default/layouts/dwindlew.png"
-
-theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png"
-
-return theme
diff --git a/config.dot/awesome.link/variables.lua b/config.dot/awesome.link/variables.lua
index 411940b..ca6bcba 100644
--- a/config.dot/awesome.link/variables.lua
+++ b/config.dot/awesome.link/variables.lua
@@ -11,20 +11,13 @@ editor_cmd = terminal .. " " .. editor
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
--- Table of layouts to cover with awful.layout.inc, order matters.
-layouts =
-{
- awful.layout.suit.max,
- awful.layout.suit.floating,
- awful.layout.suit.tile,
- awful.layout.suit.tile.left,
- awful.layout.suit.tile.bottom,
- awful.layout.suit.tile.top,
- --awful.layout.suit.fair,
- --awful.layout.suit.fair.horizontal,
- --awful.layout.suit.spiral,
- --awful.layout.suit.spiral.dwindle,
- --awful.layout.suit.max.fullscreen,
- --awful.layout.suit.magnifier
-}
--- }}}
+-- Lain
+lain.layout.termfair.nmaster = 3
+lain.layout.termfair.ncol = 1
+lain.layout.termfair.center.nmaster = 3
+lain.layout.termfair.center.ncol = 1
+lain.layout.cascade.tile.offset_x = 2
+lain.layout.cascade.tile.offset_y = 32
+lain.layout.cascade.tile.extra_padding = 5
+lain.layout.cascade.tile.nmaster = 5
+lain.layout.cascade.tile.ncol = 2
diff --git a/config.dot/awesome.link/wibar.lua b/config.dot/awesome.link/wibar.lua
new file mode 100644
index 0000000..0f87068
--- /dev/null
+++ b/config.dot/awesome.link/wibar.lua
@@ -0,0 +1,111 @@
+-- {{{ Wibar
+-- Keyboard map indicator and switcher
+mykeyboardlayout = awful.widget.keyboardlayout()
+
+-- Create a textclock widget
+mytextclock = wibox.widget.textclock()
+
+-- Create a wibox for each screen and add it
+local taglist_buttons = awful.util.table.join(
+ awful.button({ }, 1, function(t) t:view_only() end),
+ awful.button({ modkey }, 1, function(t)
+ if client.focus then
+ client.focus:move_to_tag(t)
+ end
+ end),
+ awful.button({ }, 3, awful.tag.viewtoggle),
+ awful.button({ modkey }, 3, function(t)
+ if client.focus then
+ client.focus:toggle_tag(t)
+ end
+ end),
+ awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
+ awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
+ )
+
+local tasklist_buttons = awful.util.table.join(
+ awful.button({ }, 1, function (c)
+ if c == client.focus then
+ c.minimized = true
+ else
+ -- Without this, the following
+ -- :isvisible() makes no sense
+ c.minimized = false
+ if not c:isvisible() and c.first_tag then
+ c.first_tag:view_only()
+ end
+ -- This will also un-minimize
+ -- the client, if needed
+ client.focus = c
+ c:raise()
+ end
+ end),
+ awful.button({ }, 3, client_menu_toggle_fn()),
+ awful.button({ }, 4, function ()
+ awful.client.focus.byidx(1)
+ end),
+ awful.button({ }, 5, function ()
+ awful.client.focus.byidx(-1)
+ end))
+
+local function set_wallpaper(s)
+ -- Wallpaper
+ if beautiful.wallpaper then
+ local wallpaper = beautiful.wallpaper
+ -- If wallpaper is a function, call it with the screen
+ if type(wallpaper) == "function" then
+ wallpaper = wallpaper(s)
+ end
+ gears.wallpaper.maximized(wallpaper, s, true)
+ end
+end
+
+-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
+screen.connect_signal("property::geometry", set_wallpaper)
+
+awful.screen.connect_for_each_screen(function(s)
+ -- Wallpaper
+ set_wallpaper(s)
+
+ -- Each screen has its own tag table.
+ awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
+
+ -- Create a promptbox for each screen
+ s.mypromptbox = awful.widget.prompt()
+ -- Create an imagebox widget which will contains an icon indicating which layout we're using.
+ -- We need one layoutbox per screen.
+ s.mylayoutbox = awful.widget.layoutbox(s)
+ s.mylayoutbox:buttons(awful.util.table.join(
+ awful.button({ }, 1, function () awful.layout.inc( 1) end),
+ awful.button({ }, 3, function () awful.layout.inc(-1) end),
+ awful.button({ }, 4, function () awful.layout.inc( 1) end),
+ awful.button({ }, 5, function () awful.layout.inc(-1) end)))
+ -- Create a taglist widget
+ s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, taglist_buttons)
+
+ -- Create a tasklist widget
+ s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
+
+ -- Create the wibox
+ s.mywibox = awful.wibar({ position = "top", screen = s })
+
+ -- Add widgets to the wibox
+ s.mywibox:setup {
+ layout = wibox.layout.align.horizontal,
+ { -- Left widgets
+ layout = wibox.layout.fixed.horizontal,
+ mylauncher,
+ s.mytaglist,
+ s.mypromptbox,
+ },
+ s.mytasklist, -- Middle widget
+ { -- Right widgets
+ layout = wibox.layout.fixed.horizontal,
+ mykeyboardlayout,
+ mytextclock,
+ s.mylayoutbox,
+ wibox.widget.systray(),
+ },
+ }
+end)
+-- }}}
diff --git a/config.dot/awesome.link/wibox.lua b/config.dot/awesome.link/wibox.lua
deleted file mode 100644
index b44af6a..0000000
--- a/config.dot/awesome.link/wibox.lua
+++ /dev/null
@@ -1,123 +0,0 @@
--- {{{ Wibox
-
--- Create a wibox for each screen and add it
-mywibox = {}
-mypromptbox = {}
-mylayoutbox = {}
-mytaglist = {}
-mytaglist.buttons = awful.util.table.join(
- awful.button({ }, 1, awful.tag.viewonly),
- awful.button({ modkey }, 1, awful.client.movetotag),
- awful.button({ }, 3, awful.tag.viewtoggle),
- awful.button({ modkey }, 3, awful.client.toggletag),
- awful.button({ }, 4, awful.tag.viewnext),
- awful.button({ }, 5, awful.tag.viewprev)
- )
-
-mytasklist = {}
-mytasklist.buttons = awful.util.table.join(
- awful.button({ }, 1, function (c)
- if not c:isvisible() then
- awful.tag.viewonly(c:tags()[1])
- end
- client.focus = c
- c:raise()
- end),
- awful.button({ }, 3, function ()
- if instance then
- instance:hide()
- instance = nil
- else
- instance = awful.menu.clients({ width=250 })
- end
- end),
- awful.button({ }, 4, function ()
- awful.client.focus.byidx(1)
- if client.focus then client.focus:raise() end
- end),
- awful.button({ }, 5, function ()
- awful.client.focus.byidx(-1)
- if client.focus then client.focus:raise() end
- end))
-
--- Widgets
-dofile(configdir .. "/widgets.lua")
-
-for s = 1, screen.count() do
- -- Create a promptbox for each screen
- mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
- -- Create an imagebox widget which will contains an icon indicating which layout we're using.
- -- We need one layoutbox per screen.
- mylayoutbox[s] = awful.widget.layoutbox(s)
- mylayoutbox[s]:buttons(awful.util.table.join(
- awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
- awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
- awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
- awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
- -- Create a taglist widget
- mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)
-
- -- Create a tasklist widget
- mytasklist[s] = awful.widget.tasklist(function(c)
- return awful.widget.tasklist.label.currenttags(c, s)
- end, mytasklist.buttons)
-
- -- Create the wibox
- --mywibox[s] = awful.wibox({ position = "top", screen = s })
- mywibox[s] = awful.wibox({ position = "top", screen = s, height = "16" })
- -- Add widgets to the wibox - order matters
- mywibox[s].widgets = {
- {
- --mylauncher,
- mytaglist[s],
- mypromptbox[s],
- layout = awful.widget.layout.horizontal.leftright
- },
- mylayoutbox[s],
-
- s == 1 and mysystray or nil,
- arr1,
- spr3f,
- --binaryclock.widget,
- clockwidget,
- spr3f,
- arrl,
- --my_cal.widget,
- arr2,
- --netwidget,
- --neticon,
- arr3,
- batwidget,
- baticon,
- arr4,
- --fswidget,
- --udisks_glue.widget,
- arr5,
- sensors,
- tempicon,
- arr6,
- --cpuwidget,
- --cpuicon,
- arr7,
- --memwidget,
- --memicon,
- arr8,
- --task_warrior.widget,
- arr9,
- --music,
- arr0,
- --mailicon,
- arr9,
- spr,
- -- s == 1 and mysystray, spr or nil, mytasklist[s],
-
- --mytextclock,
- --volume_widget,
- --battery_widget,
- myledbox,
- awesompd and musicwidget.widget or nil,
- mytasklist[s],
- layout = awful.widget.layout.horizontal.rightleft
- }
-end
--- }}}
diff --git a/config.dot/awesome.link/widgets.lua b/config.dot/awesome.link/widgets.lua
deleted file mode 100644
index 7cea6fd..0000000
--- a/config.dot/awesome.link/widgets.lua
+++ /dev/null
@@ -1,236 +0,0 @@
--- {{{ Misc widgets
-dofile(configdir .. "/widgets/leds.lua")
-dofile(configdir .. "/widgets/volume.lua")
-
-if awful.util.file_readable(homedir .. "/.custom/awesome/awesompd.lua") then
- awesompd = true
- dofile(configdir .. "/widgets/awesompd.lua")
-end
--- }}}
-
---{{---| Text clock widget |------------------------------------------------------------------------------
-
-mytextclock = awful.widget.textclock({ align = "right" })
-
---{{---| Systray widget |------------------------------------------------------------------------------
-
-mysystray = widget({ type = "systray" })
-
---{{---| Chat widget |------------------------------------------------------------------------------
-
-chaticon = widget ({type = "imagebox" })
-chaticon.image = image(beautiful.widget_chat)
-chaticon:buttons(awful.util.table.join(awful.button({ }, 1,
-function () awful.util.spawn_with_shell(chat) end)))
-
---{{---| Mail widget |------------------------------------------------------------------------------
-
-mailicon = widget ({type = "imagebox" })
-mailicon.image = image(beautiful.widget_mail)
-mailicon:buttons(awful.util.table.join(awful.button({ }, 1,
-function () awful.util.spawn_with_shell(mailmutt) end)))
-
---{{---| Music widget |-----------------------------------------------------------------------------
-
-music = widget ({type = "imagebox" })
-music.image = image(beautiful.widget_music)
-music:buttons(awful.util.table.join(
- awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplr) end),
- awful.button({ modkey }, 1, function () awful.util.spawn_with_shell("ncmpcpp toggle") end),
- awful.button({ }, 3, function () couth.notifier:notify( couth.alsa:setVolume('Master','toggle')) end),
- awful.button({ }, 4, function () couth.notifier:notify( couth.alsa:setVolume('PCM','2dB+')) end),
- awful.button({ }, 5, function () couth.notifier:notify( couth.alsa:setVolume('PCM','2dB-')) end),
- awful.button({ }, 4, function () couth.notifier:notify( couth.alsa:setVolume('Master','2dB+')) end),
- awful.button({ }, 5, function () couth.notifier:notify( couth.alsa:setVolume('Master','2dB-')) end)))
-
---{{---| TaskWarrior widget |-----------------------------------------------------------------------
-
---task_warrior = blingbling.task_warrior.new(beautiful.widget_task)
---task_warrior:set_task_done_icon(beautiful.task_done_icon)
---task_warrior:set_task_icon(beautiful.task_icon)
---task_warrior:set_project_icon(beautiful.project_icon)
-
---{{---| MEM widget |-------------------------------------------------------------------------------
-
-memwidget = widget({ type = "textbox" })
-vicious.register(memwidget, vicious.widgets.mem, '<span background="#777E76" font="Terminus 12"> <span font="Terminus 9" color="#EEEEEE" background="#777E76">$2MB </span></span>', 13)
-memicon = widget ({type = "imagebox" })
-memicon.image = image(beautiful.widget_mem)
-
---{{---| CPU / sensors widget |---------------------------------------------------------------------
-
---cpuwidget = widget({ type = "textbox" })
---vicious.register(cpuwidget, vicious.widgets.cpu,
---'<span background="#4B696D" font="Terminus 12"> <span font="Terminus 9" color="#DDDDDD">$2% <span color="#888888">·</span> $3% </span></span>', 3)
---cpuicon = widget ({type = "imagebox" })
---cpuicon.image = image(beautiful.widget_cpu)
---sensors = widget({ type = "textbox" })
---vicious.register(sensors, vicious.widgets.sensors)
---tempicon = widget ({type = "imagebox" })
---tempicon.image = image(beautiful.widget_temp)
---blingbling.popups.htop(cpuwidget,
---{ title_color = beautiful.notify_font_color_1,
---user_color = beautiful.notify_font_color_2,
---root_color = beautiful.notify_font_color_3,
---terminal = "terminal --geometry=130x56-10+26"})
-
---{{---| FS's widget / udisks-glue menu |-----------------------------------------------------------
-
---fswidget = widget({ type = "textbox" })
---vicious.register(fswidget, vicious.widgets.fs,
---'<span background="#D0785D" font="Terminus 12"> <span font="Terminus 9" color="#EEEEEE">${/mnt/storage avail_gb}GB </span></span>', 8)
---udisks_glue = blingbling.udisks_glue.new(beautiful.widget_hdd)
---udisks_glue:set_mount_icon(beautiful.accept)
---udisks_glue:set_umount_icon(beautiful.cancel)
---udisks_glue:set_detach_icon(beautiful.cancel)
---udisks_glue:set_Usb_icon(beautiful.usb)
---udisks_glue:set_Cdrom_icon(beautiful.cdrom)
---awful.widget.layout.margins[udisks_glue.widget] = { top = 0}
---udisks_glue.widget.resize = false
-
---{{---| Battery widget |---------------------------------------------------------------------------
-
-baticon = widget ({type = "imagebox" })
-baticon.image = image(beautiful.widget_battery)
-batwidget = widget({ type = "textbox" })
-vicious.register( batwidget, vicious.widgets.bat, '<span background="#92B0A0" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF" background="#92B0A0">$1$2% </span></span>', 1, "BAT0" )
-
---{{---| Net widget |-------------------------------------------------------------------------------
-
-netwidget = widget({ type = "textbox" })
-vicious.register(netwidget,
-vicious.widgets.net,
-'<span background="#C2C2A4" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF">${eth0 down_kb} ↓↑ ${eth0 up_kb}</span> </span>', 3)
-neticon = widget ({type = "imagebox" })
-neticon.image = image(beautiful.widget_net)
-netwidget:buttons(awful.util.table.join(awful.button({ }, 1,
-function () awful.util.spawn_with_shell(iptraf) end)))
-
---{{---| Normal clock |-------------------------------------------------------------------------------
-
-clockwidget = widget({ type = "textbox" })
-vicious.register(clockwidget, vicious.widgets.date,
-'<span background="#777e76" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF">%d/%m/%Y %H:%M</span> </span>', 3)
-
---{{---| Binary Clock |-----------------------------------------------------------------------------
-
-binaryclock = {}
-binaryclock.widget = widget({type = "imagebox"})
-binaryclock.w = 42
-binaryclock.h = 16
-binaryclock.show_sec = true
-binaryclock.color_active = beautiful.binclock_fga
-binaryclock.color_bg = beautiful.binclock_bg
-binaryclock.color_inactive = beautiful.binclock_fgi
-binaryclock.dotsize = math.floor(binaryclock.h / 5)
-binaryclock.step = math.floor(binaryclock.dotsize / 3)
-binaryclock.widget.image = image.argb32(binaryclock.w, binaryclock.h, nil)
-if (binaryclock.show_sec) then binaryclock.timeout = 1 else binaryclock.timeout = 20 end
-binaryclock.DEC_BIN = function(IN)
-local B,K,OUT,I,D=2,"01","",0
-while IN>0 do
-I=I+1
-IN,D=math.floor(IN/B),math.mod(IN,B)+1
-OUT=string.sub(K,D,D)..OUT
-end
-return OUT
-end
-binaryclock.paintdot = function(val,shift,limit)
-local binval = binaryclock.DEC_BIN(val)
-local l = string.len(binval)
-local height = 0
-if (l < limit) then
-for i=1,limit - l do binval = "0" .. binval end
-end
-for i=0,limit-1 do
-if (string.sub(binval,limit-i,limit-i) == "1") then
-binaryclock.widget.image:draw_rectangle(shift,
-binaryclock.h - binaryclock.dotsize - height,
-binaryclock.dotsize, binaryclock.dotsize, true, binaryclock.color_active)
-else
-binaryclock.widget.image:draw_rectangle(shift,
-binaryclock.h - binaryclock.dotsize - height,
-binaryclock.dotsize,binaryclock.dotsize, true, binaryclock.color_inactive)
-end
-height = height + binaryclock.dotsize + binaryclock.step
-end
-end
-binaryclock.drawclock = function ()
-binaryclock.widget.image:draw_rectangle(0, 0, binaryclock.w, binaryclock.h, true, binaryclock.color_bg)
-local t = os.date("*t")
-local hour = t.hour
-if (string.len(hour) == 1) then
-hour = "0" .. t.hour
-end
-local min = t.min
-if (string.len(min) == 1) then
-min = "0" .. t.min
-end
-local sec = t.sec
-if (string.len(sec) == 1) then
-sec = "0" .. t.sec
-end
-local col_count = 6
-if (not binaryclock.show_sec) then col_count = 4 end
-local step = math.floor((binaryclock.w - col_count * binaryclock.dotsize) / 8)
-binaryclock.paintdot(0 + string.sub(hour, 1, 1), step, 2)
-binaryclock.paintdot(0 + string.sub(hour, 2, 2), binaryclock.dotsize + 2 * step, 4)
-binaryclock.paintdot(0 + string.sub(min, 1, 1),binaryclock.dotsize * 2 + 4 * step, 3)
-binaryclock.paintdot(0 + string.sub(min, 2, 2),binaryclock.dotsize * 3 + 5 * step, 4)
-if (binaryclock.show_sec) then
-binaryclock.paintdot(0 + string.sub(sec, 1, 1), binaryclock.dotsize * 4 + 7 * step, 3)
-binaryclock.paintdot(0 + string.sub(sec, 2, 2), binaryclock.dotsize * 5 + 8 * step, 4)
-end
-binaryclock.widget.image = binaryclock.widget.image
-end
-binarytimer = timer { timeout = binaryclock.timeout }
-binarytimer:add_signal("timeout", function()
-binaryclock.drawclock()
-end)
-binarytimer:start()
-
--- binaryclock.widget:buttons(awful.util.table.join(
--- awful.button({ }, 1, function ()
--- end)
--- ))
-
---{{---| Calendar widget |--------------------------------------------------------------------------
-
--- my_cal = blingbling.calendar.new({type = "imagebox", image = beautiful.widget_cal})
--- my_cal:set_cell_padding(4)
--- my_cal:set_title_font_size(9)
--- my_cal:set_title_text_color("#4F98C1")
--- my_cal:set_font_size(9)
--- my_cal:set_inter_margin(1)
--- my_cal:set_columns_lines_titles_font_size(8)
--- my_cal:set_columns_lines_titles_text_color("#d4aa00ff")
--- my_cal:set_link_to_external_calendar(true) --{{ <-- popup reminder
-
---{{---| Separators widgets |-----------------------------------------------------------------------
-
-spr = widget({ type = "textbox" })
-spr.text = ' '
-sprd = widget({ type = "textbox" })
-sprd.text = '<span background="#313131" font="Terminus 12"> </span>'
-spr3f = widget({ type = "textbox" })
-spr3f.text = '<span background="#777e76" font="Terminus 12"> </span>'
-arr1 = widget ({type = "imagebox" })
-arr1.image = image(beautiful.arr1)
-arr2 = widget ({type = "imagebox" })
-arr2.image = image(beautiful.arr2)
-arr3 = widget ({type = "imagebox" })
-arr3.image = image(beautiful.arr3)
-arr4 = widget ({type = "imagebox" })
-arr4.image = image(beautiful.arr4)
-arr5 = widget ({type = "imagebox" })
-arr5.image = image(beautiful.arr5)
-arr6 = widget ({type = "imagebox" })
-arr6.image = image(beautiful.arr6)
-arr7 = widget ({type = "imagebox" })
-arr7.image = image(beautiful.arr7)
-arr8 = widget ({type = "imagebox" })
-arr8.image = image(beautiful.arr8)
-arr9 = widget ({type = "imagebox" })
-arr9.image = image(beautiful.arr9)
-arr0 = widget ({type = "imagebox" })
-arr0.image = image(beautiful.arr0)
diff --git a/config.dot/awesome.link/widgets/awesompd b/config.dot/awesome.link/widgets/awesompd
deleted file mode 160000
-Subproject 4142a7aa82e938afc7e948c3744ba2b0e520e49
diff --git a/config.dot/awesome.link/widgets/awesompd.lua b/config.dot/awesome.link/widgets/awesompd.lua
deleted file mode 100644
index 4af25a3..0000000
--- a/config.dot/awesome.link/widgets/awesompd.lua
+++ /dev/null
@@ -1,57 +0,0 @@
-require("awesompd/awesompd")
-
-musicwidget = awesompd:create() -- Create awesompd widget
---musicwidget.font = "Liberation Mono" -- Set widget font
-musicwidget.scrolling = true -- If true, the text in the widget will be scrolled
-musicwidget.output_size = 30 -- Set the size of widget in symbols
-musicwidget.update_interval = 10 -- Set the update interval in seconds
--- Set the folder where icons are located (change username to your login name)
-musicwidget.path_to_icons = configdir .. "/awesompd/icons"
--- Set the default music format for Jamendo streams. You can change
--- this option on the fly in awesompd itself.
--- possible formats: awesompd.FORMAT_MP3, awesompd.FORMAT_OGG
-musicwidget.jamendo_format = awesompd.FORMAT_MP3
--- If true, song notifications for Jamendo tracks and local tracks will also contain
--- album cover image.
-musicwidget.show_album_cover = false
--- Specify how big in pixels should an album cover be. Maximum value
--- is 100.
-musicwidget.album_cover_size = 50
--- This option is necessary if you want the album covers to be shown
--- for your local tracks.
---musicwidget.mpd_config = homedir .. "/.mpdconf"
--- Specify the browser you use so awesompd can open links from
--- Jamendo in it.
-musicwidget.browser = "firefox"
--- Specify decorators on the left and the right side of the
--- widget. Or just leave empty strings if you decorate the widget
--- from outside.
-musicwidget.ldecorator = " "
-musicwidget.rdecorator = " "
--- Set all the servers to work with (here can be any servers you use)
--- Set the buttons of the widget
-musicwidget:register_buttons({
- --{ "", awesompd.MOUSE_LEFT, musicwidget:command_toggle() },
- --{ "Control", awesompd.MOUSE_SCROLL_UP, musicwidget:command_prev_track() },
- --{ "Control", awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_next_track() },
- { "", "XF86AudioPrev", musicwidget:command_prev_track() },
- { "", "XF86AudioNext", musicwidget:command_next_track() },
- { modkey, "XF86AudioPrev", musicwidget:command_previous_server() },
- { modkey, "XF86AudioNext", musicwidget:command_next_server() },
- --{ "", awesompd.MOUSE_SCROLL_UP, musicwidget:command_volume_up() },
- --{ "", awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_volume_down() },
- { "", awesompd.MOUSE_RIGHT, musicwidget:command_show_menu() },
- --{ "", "XF86AudioLowerVolume", musicwidget:command_volume_down() },
- --{ "", "XF86AudioRaiseVolume", musicwidget:command_volume_up() },
- --{ modkey, "Pause", musicwidget:command_playpause() } })
- { "", "XF86AudioPlay", musicwidget:command_playpause() } })
-
--- Put your server definitions in this file, like this:
---musicwidget.servers = {
--- { server = "localhost",
--- port = 6600 },
--- { server = "192.168.0.72",
--- port = 6600 } }
-dofile(homedir .. "/.custom/awesome/awesompd.lua")
-
-musicwidget:run() -- After all configuration is done, run the widget
diff --git a/config.dot/awesome.link/widgets/leds.lua b/config.dot/awesome.link/widgets/leds.lua
deleted file mode 100644
index 382abdd..0000000
--- a/config.dot/awesome.link/widgets/leds.lua
+++ /dev/null
@@ -1,13 +0,0 @@
--- See https://bbs.archlinux.org/viewtopic.php?id=68511
-myledbox = widget({ type = "textbox" })
-
-function run_leds()
- local filedescripter = io.popen('leds')
- local value = filedescripter:read()
- filedescripter:close()
- return value
-end
-
-mytimer = timer({ timeout = 1 })
-mytimer:add_signal("timeout", function() myledbox.text = run_leds() end)
-mytimer:start()
diff --git a/config.dot/awesome.link/widgets/volume.lua b/config.dot/awesome.link/widgets/volume.lua
deleted file mode 100644
index c183cb9..0000000
--- a/config.dot/awesome.link/widgets/volume.lua
+++ /dev/null
@@ -1,34 +0,0 @@
--- See http://awesome.naquadah.org/wiki/Volume_control_and_display
-volume_widget = widget({ type = "textbox", name = "tb_volume",
- align = "right" })
-
-function update_volume(widget)
- local fd = io.popen("amixer sget Master")
- local status = fd:read("*all")
- fd:close()
-
- local volume = tonumber(string.match(status, "(%d?%d?%d)%%")) / 100
- -- volume = string.format("% 3d", volume)
-
- status = string.match(status, "%[(o[^%]]*)%]")
-
- -- starting colour
- local sr, sg, sb = 0x3F, 0x3F, 0x3F
- -- ending colour
- local er, eg, eb = 0xDC, 0xDC, 0xCC
-
- local ir = volume * (er - sr) + sr
- local ig = volume * (eg - sg) + sg
- local ib = volume * (eb - sb) + sb
- interpol_colour = string.format("%.2x%.2x%.2x", ir, ig, ib)
- if string.find(status, "on", 1, true) then
- volume = " <span background='#" .. interpol_colour .. "'> </span>"
- else
- volume = " <span color='red' background='#" .. interpol_colour .. "'> M </span>"
- end
- widget.text = volume
- end
-
-volumeTimer = timer({ timeout = 1 })
-volumeTimer:add_signal("timeout", function () update_volume(volume_widget) end)
-volumeTimer:start()