From 20fae489af0ff9d111dd6a161465305da7395c93 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 17 Sep 2017 23:15:40 +0200 Subject: widget/volume: port to 4.0 --- rc.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'rc.lua') 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, }, -- cgit v1.2.3