Minor cleanup
parent
2c034c36ed
commit
39b6e5251a
|
@ -41,6 +41,16 @@ local function start()
|
||||||
-- make_layoutbox(screen) will return a widget for the given screen.
|
-- make_layoutbox(screen) will return a widget for the given screen.
|
||||||
local make_layoutbox = require("core.layouts.widget")
|
local make_layoutbox = require("core.layouts.widget")
|
||||||
|
|
||||||
|
-- Quick hack to allow disabling modules.
|
||||||
|
-- Replace with a better system later
|
||||||
|
local function try_mod(module)
|
||||||
|
if (module == nil) then
|
||||||
|
return {}
|
||||||
|
end
|
||||||
|
|
||||||
|
return module
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- If timed wallpaper is enabled, load timed manager
|
-- If timed wallpaper is enabled, load timed manager
|
||||||
if (type(beautiful.wallpaper) == "table") then
|
if (type(beautiful.wallpaper) == "table") then
|
||||||
|
@ -152,7 +162,7 @@ local function start()
|
||||||
|
|
||||||
if (modules.mpc ~= nil) then
|
if (modules.mpc ~= nil) then
|
||||||
rightside = gears.table.join(rightside, {
|
rightside = gears.table.join(rightside, {
|
||||||
modules.mpc.widgets.mpc,
|
modules.mpc.widget,
|
||||||
desktop.widgets.space(5),
|
desktop.widgets.space(5),
|
||||||
desktop.widgets.separator(2, 5, 3),
|
desktop.widgets.separator(2, 5, 3),
|
||||||
desktop.widgets.space(15),
|
desktop.widgets.space(15),
|
||||||
|
@ -163,12 +173,12 @@ local function start()
|
||||||
modules.simple_widgets.textclock,
|
modules.simple_widgets.textclock,
|
||||||
desktop.widgets.space(8),
|
desktop.widgets.space(8),
|
||||||
|
|
||||||
--modules.battery.widgets.battery,
|
try_mod(modules.battery).widget,
|
||||||
--modules.backlight.widgets.backlight,
|
try_mod(modules.backlight).widget,
|
||||||
modules.volume.widgets.volume,
|
try_mod(modules.volume).widget,
|
||||||
desktop.widgets.space(8),
|
desktop.widgets.space(8),
|
||||||
|
|
||||||
modules.ibus.widgets.keymap,
|
try_mod(modules.ibus).widget,
|
||||||
desktop.widgets.space(8),
|
desktop.widgets.space(8),
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -187,7 +197,7 @@ local function start()
|
||||||
desktop.widgets.space(8),
|
desktop.widgets.space(8),
|
||||||
|
|
||||||
|
|
||||||
modules.launcher.widgets.launcher,
|
try_mod(modules.launcher).widget,
|
||||||
|
|
||||||
desktop.widgets.space(18),
|
desktop.widgets.space(18),
|
||||||
s.tagger.widget.widget,
|
s.tagger.widget.widget,
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
return {
|
return {
|
||||||
widgets = {
|
widget = require("modules.backlight.widget").widget,
|
||||||
backlight = require("modules.backlight.widget").widget
|
|
||||||
},
|
|
||||||
keybinds = require("modules.backlight.keybinds"),
|
keybinds = require("modules.backlight.keybinds"),
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
return {
|
return {
|
||||||
widgets = {
|
widget = require("modules.battery.widget").widget
|
||||||
battery = require("modules.battery.widget").widget
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
local util = require("modules.ibus.util")
|
local util = require("modules.ibus.util")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
widgets = {
|
widget = require("modules.ibus.widget").widget,
|
||||||
keymap = require("modules.ibus.widget").widget
|
|
||||||
},
|
|
||||||
keybinds = require("modules.ibus.keybinds"),
|
keybinds = require("modules.ibus.keybinds"),
|
||||||
|
|
||||||
init = function()
|
init = function()
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
return {
|
return {
|
||||||
widgets = {
|
widget = require("modules.launcher.widget").widget,
|
||||||
launcher = require("modules.launcher.widget").widget
|
|
||||||
},
|
|
||||||
|
|
||||||
keybinds = require("modules.launcher.keybinds")
|
keybinds = require("modules.launcher.keybinds")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
return {
|
return {
|
||||||
widgets = {
|
widget = require("modules.mpc.widget").widget,
|
||||||
mpc = require("modules.mpc.widget").widget
|
|
||||||
},
|
|
||||||
keybinds = require("modules.mpc.keybinds")
|
keybinds = require("modules.mpc.keybinds")
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,7 @@ local volume = require("modules.volume.util")
|
||||||
local widget = require("modules.volume.widget")
|
local widget = require("modules.volume.widget")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
widgets = {
|
widget = require("modules.volume.widget").widget,
|
||||||
volume = require("modules.volume.widget").widget
|
|
||||||
},
|
|
||||||
keybinds = require("modules.volume.keybinds"),
|
keybinds = require("modules.volume.keybinds"),
|
||||||
|
|
||||||
init = function ()
|
init = function ()
|
||||||
|
|
Loading…
Reference in New Issue