summaryrefslogtreecommitdiff
path: root/icons
diff options
context:
space:
mode:
authorNicolas Schodet2015-05-07 21:12:37 +0200
committerNicolas Schodet2015-05-07 22:01:35 +0200
commit4c6fba365b63c13d398ffd4963c82746b2358cbe (patch)
treed34f110b6ebc387714c21bc7c2ed0efeab1705cb /icons
parent7750058808e665e2dff282159c412742e8c03641 (diff)
icons: add taglist and awesome icons
Diffstat (limited to 'icons')
-rw-r--r--icons/demo.cfg1
-rwxr-xr-xicons/mkicons20
-rw-r--r--icons/ni.cfg21
3 files changed, 41 insertions, 1 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