summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2015-05-07 21:12:37 +0200
committerNicolas Schodet2015-05-07 22:01:35 +0200
commit4c6fba365b63c13d398ffd4963c82746b2358cbe (patch)
treed34f110b6ebc387714c21bc7c2ed0efeab1705cb
parent7750058808e665e2dff282159c412742e8c03641 (diff)
icons: add taglist and awesome icons
-rw-r--r--icons/demo.cfg1
-rwxr-xr-xicons/mkicons20
-rw-r--r--icons/ni.cfg21
-rw-r--r--ni/theme.lua6
4 files changed, 44 insertions, 4 deletions
diff --git a/icons/demo.cfg b/icons/demo.cfg
index c1b095c..e66f8bf 100644
--- a/icons/demo.cfg
+++ b/icons/demo.cfg
@@ -7,6 +7,7 @@
fg = #aaaaaa
bg = black
output_dir = %(__name__)s
+include = layouts/*
[demo08]
size = 8x8
diff --git a/icons/mkicons b/icons/mkicons
index cadda6d..eb31ed3 100755
--- a/icons/mkicons
+++ b/icons/mkicons
@@ -219,6 +219,26 @@ def icon_layouts_tiletop (icon, draw, p):
ym = part (y1, y2, 1, 2, 'down')
draw_grid (draw, (x1, y1, x2, ym), 3, 1, 'nearest', p)
+def icon_taglist_sel (icon, draw, p):
+ x1, y1, x2, y2 = p.coords
+ y2 = y1 + x2 - x1
+ draw.rectangle ((x1, y1, x2, y2), outline = p.fg, fill = p.bg)
+
+def icon_taglist_unsel (icon, draw, p):
+ x1, y1, x2, y2 = p.coords
+ y2 = y1 + x2 - x1
+ draw.line ((x1, y2, x1, y1, x2, y1), fill = p.fg)
+
+def icon_awesome (icon, draw, p):
+ draw.rectangle (p.coords, outline = p.bg, fill = p.bg)
+ x0, y0, x3, y3 = p.coords
+ x1 = part (x0 - 1, x3 + 1, 1, 3, 'center')
+ x2 = part (x0 - 1, x3 + 1, 2, 3, 'center')
+ y1 = part (y0 - 1, y3 + 1, 1, 3, 'center')
+ y2 = part (y0 - 1, y3 + 1, 2, 3, 'center')
+ draw.line ((x0, y1, x2, y1), fill = p.fg)
+ draw.line ((x1, y2, x2, y2, x2, y3), fill = p.fg)
+
icons = dict((f[5:].replace ('_', '/'), globals ()[f])
for f in dir () if f.startswith ('icon_'))
diff --git a/icons/ni.cfg b/icons/ni.cfg
index 42cd17d..a72b0c5 100644
--- a/icons/ni.cfg
+++ b/icons/ni.cfg
@@ -1,6 +1,25 @@
-[ni]
+[DEFAULT]
fg = trans
bg = #aaaaaa
output_dir = ../ni/icons
size = 12x12
+[ni-layout]
+include = layouts/*
+
+[ni-taglist-sel]
+fg = white
+bg = white
+size = 3x12
+include = taglist/sel
+
+[ni-taglist-unsel]
+fg = %(bg)s
+size = 3x12
+include = taglist/unsel
+
+[ni-awesome]
+bg = #535d6c
+margin_left = 1
+margin_bottom = 1
+include = awesome
diff --git a/ni/theme.lua b/ni/theme.lua
index a0d2c27..0a5f618 100644
--- a/ni/theme.lua
+++ b/ni/theme.lua
@@ -38,8 +38,8 @@ theme.tooltip_fg_color = theme.fg_normal
theme.tooltip_bg_color = theme.bg_normal
-- 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.taglist_squares_sel = theme_dir .. "/icons/taglist/sel.png"
+theme.taglist_squares_unsel = theme_dir .. "/icons/taglist/unsel.png"
theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/floatingw.png"
@@ -96,7 +96,7 @@ theme.layout_tiletop = theme_dir .. "/icons/layouts/tiletop.png"
theme.layout_spiral = theme_dir .. "/icons/layouts/spiral.png"
theme.layout_dwindle = theme_dir .. "/icons/layouts/dwindle.png"
-theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png"
+theme.awesome_icon = theme_dir .. "/icons/awesome.png"
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80