Created classes package
parent
71e36b3f1b
commit
3a70262d04
|
@ -1,5 +1,5 @@
|
|||
local widget_types = {
|
||||
arc = require("backlight/arc_widget")
|
||||
arc = require("classes/backlight/arc_widget")
|
||||
}
|
||||
|
||||
local P = {}
|
|
@ -1,4 +1,4 @@
|
|||
local P = require("volume/volume")
|
||||
local P = require("classes/backlight/backlight")
|
||||
|
||||
local F = function(args)
|
||||
return P:new(args)
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
Backlight = require("classes/backlight"),
|
||||
Volume = require("classes/volume")
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
local P = require("backlight/backlight")
|
||||
local P = require("classes/volume/volume")
|
||||
|
||||
local F = function(args)
|
||||
return P:new(args)
|
|
@ -1,6 +1,6 @@
|
|||
local widget_types = {
|
||||
bar = require("volume/bar_widget"),
|
||||
arc = require("volume/arc_widget")
|
||||
bar = require("classes/volume/bar_widget"),
|
||||
arc = require("classes/volume/arc_widget")
|
||||
}
|
||||
|
||||
local P = {}
|
8
rc.lua
8
rc.lua
|
@ -37,11 +37,9 @@ wrapper.ibus.set(1)
|
|||
beautiful.init(require("theme"))
|
||||
|
||||
-- Initialize volume controller
|
||||
Volume = require("volume")
|
||||
vol = Volume{pa_sink = conf.pamixer_sink}
|
||||
|
||||
Backlight = require("backlight")
|
||||
bck = Backlight{}
|
||||
classes = require("classes")
|
||||
vol = classes.Volume{pa_sink = conf.pamixer_sink}
|
||||
bck = classes.Backlight{}
|
||||
|
||||
desktop = require("desktop")
|
||||
|
||||
|
|
Loading…
Reference in New Issue