Created classes package

master
Mark 2022-04-24 09:16:52 -07:00
parent 71e36b3f1b
commit 3a70262d04
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
9 changed files with 12 additions and 10 deletions

View File

@ -1,5 +1,5 @@
local widget_types = {
arc = require("backlight/arc_widget")
arc = require("classes/backlight/arc_widget")
}
local P = {}

View File

@ -1,4 +1,4 @@
local P = require("volume/volume")
local P = require("classes/backlight/backlight")
local F = function(args)
return P:new(args)

4
classes/init.lua Normal file
View File

@ -0,0 +1,4 @@
return {
Backlight = require("classes/backlight"),
Volume = require("classes/volume")
}

View File

@ -1,4 +1,4 @@
local P = require("backlight/backlight")
local P = require("classes/volume/volume")
local F = function(args)
return P:new(args)

View File

@ -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
View File

@ -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")