summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorNicolas Schodet2017-09-17 23:15:40 +0200
committerNicolas Schodet2017-09-17 23:15:40 +0200
commit20fae489af0ff9d111dd6a161465305da7395c93 (patch)
tree19e00ee528bc89a9af0b109a0f4d859f741b90f0 /rc.lua
parent2a958b324624ef16f5edb424b9ca75a8eec20c52 (diff)
widget/volume: port to 4.0
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/rc.lua b/rc.lua
index a92ace9..8043cb0 100644
--- a/rc.lua
+++ b/rc.lua
@@ -41,7 +41,7 @@ end
-- Load my modules
--require("vicious")
---require("widgets.volume")
+local vol = require("widgets.volume")
local cal = require("widgets.cal")
-- {{{ Variable definitions
@@ -132,12 +132,7 @@ mytextclock = wibox.widget.textclock()
cal.register(mytextclock)
-- Create my widgets
---[[
-myvolume = widgets.volume()
-myvolumeicon = widget({ type = "imagebox" })
-myvolumeicon.image = image(beautiful.widget_vol)
-myvolumeicon:buttons (myvolume:buttons ())
-]]--
+myvolume = vol()
--[[
mybat = widget({ type = "textbox" })
@@ -270,6 +265,7 @@ awful.screen.connect_for_each_screen(function(s)
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
wibox.widget.systray(),
+ myvolume,
mytextclock,
s.mylayoutbox,
},