summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2015-05-07 21:58:37 +0200
committerNicolas Schodet2015-05-07 22:01:36 +0200
commitd9ac8e2bec2ac5107a75e18d5edb53b48bf3a31e (patch)
tree0148bc8348945d82d215f20f210029f486c0e13f
parentf153a3b868c54b3e09169d4055945b69bb606e3d (diff)
add volume icon and separator
-rw-r--r--ni/icons/separator.pngbin0 -> 193 bytes
-rw-r--r--ni/icons/vol.pngbin0 -> 215 bytes
-rw-r--r--ni/theme.lua3
-rw-r--r--rc.lua9
4 files changed, 11 insertions, 1 deletions
diff --git a/ni/icons/separator.png b/ni/icons/separator.png
new file mode 100644
index 0000000..f3fb1b4
--- /dev/null
+++ b/ni/icons/separator.png
Binary files differ
diff --git a/ni/icons/vol.png b/ni/icons/vol.png
new file mode 100644
index 0000000..60315f1
--- /dev/null
+++ b/ni/icons/vol.png
Binary files differ
diff --git a/ni/theme.lua b/ni/theme.lua
index 3deb20f..7f3c41a 100644
--- a/ni/theme.lua
+++ b/ni/theme.lua
@@ -93,4 +93,7 @@ theme.layout_dwindle = theme_dir .. "/icons/layouts/dwindle.png"
theme.awesome_icon = theme_dir .. "/icons/awesome.png"
+theme.widget_sep = theme_dir .. "/icons/separator.png"
+theme.widget_vol = theme_dir .. "/icons/vol.png"
+
return theme
diff --git a/rc.lua b/rc.lua
index bc4dac1..3efde64 100644
--- a/rc.lua
+++ b/rc.lua
@@ -89,6 +89,12 @@ mysystray = widget({ type = "systray" })
-- Create my widgets
myvolume = widgets.volume()
+myvolumeicon = widget({ type = "imagebox" })
+myvolumeicon.image = image(beautiful.widget_vol)
+myvolumeicon:buttons (myvolume:buttons ())
+
+myseparator = widget({ type = "imagebox" })
+myseparator.image = image(beautiful.widget_sep)
-- Create a wibox for each screen and add it
mywibox = {}
@@ -159,7 +165,8 @@ for s = 1, screen.count() do
layout = awful.widget.layout.horizontal.leftright
},
mylayoutbox[s],
- myvolume,
+ myvolume, myvolumeicon,
+ myseparator,
mytextclock,
s == 1 and mysystray or nil,
mytasklist[s],