Change battery color, added show_volume setting

This commit is contained in:
Mutzi 2023-02-05 12:37:57 +01:00
parent 278d6d5a02
commit e0894ff4bc
2 changed files with 3 additions and 2 deletions

View File

@ -31,5 +31,5 @@ local bat = lain.widget.bat({
return { { return { {
widget = wibox.layout.fixed.horizontal(baticon, bat.widget), widget = wibox.layout.fixed.horizontal(baticon, bat.widget),
bg = '#e54c62', bg = '#f1af5f',
} } } }

View File

@ -2,11 +2,12 @@ local gears = require('gears')
local settings = require('theme.settings') local settings = require('theme.settings')
local show_battery = settings['show_battery'] == true local show_battery = settings['show_battery'] == true
local show_volume = settings['show_volume'] == true
return gears.table.join( return gears.table.join(
require('theme.info.net'), require('theme.info.net'),
show_battery and require('theme.info.battery') or {}, show_battery and require('theme.info.battery') or {},
require('theme.info.volume'), show_volume and require('theme.info.volume') or {},
require('theme.info.mem'), require('theme.info.mem'),
require('theme.info.cpu'), require('theme.info.cpu'),
require('theme.info.fs'), require('theme.info.fs'),