-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua.def
More file actions
106 lines (90 loc) · 4.06 KB
/
config.lua.def
File metadata and controls
106 lines (90 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
--[[
____ _ _
/ ___| |_ _ __| |
| | | __| '__| | - Simple awesome wm widget library
| |___| |_| | | | - https://github.com/cherrynoize/ctrl
\____|\__|_| |_| - cherry-noize
]]--
-- Module imports.
local wibox = require "wibox"
local gears = require "gears"
local beautiful = require "beautiful"
-- Initialize configuration table.
local config = {}
-- Widget configuration.
config.path = '/sys/class/power_supply/BAT1/' -- Path to battery dir.
config.low_level = 18 -- Low battery level.
config.crit_level = 9 -- Critical battery level.
config.timeout = 5 -- Update interval in seconds.
-- Whether to display progressbars.
config.show_progressbar = false
-- Progressbar appearance.
config.max_value = 1 -- Maximum value.
config.value = 0 -- Initial value for the bar.
config.height = nil -- Height (or leave nil for auto.)
config.width = 50 -- Width (or leave nil for auto.)
config.step = 5 -- Progressbar steps.
config.padding = {top = 1, bottom = 1,} -- Padding.
config.margin = {top = 5, bottom = 5,} -- Margin.
config.border_width = 1 -- Border thickness.
config.border_color = beautiful.fg_normal or '#87abef' -- Border color.
config.shape = gears.shape['powerline'] -- Widget shape.
config.bar_shape = gears.shape['rounded_bar'] -- Bar shape.
-- If you choose a custom widget, you should make sure
-- that it behave similarly (e.g: has a set_value method).
config.widget = wibox.widget.progressbar -- Bar widget object.
-- Text layout.
config.align = 'center'
config.font = beautiful.font or 'Dejavu Sans Mono 10'
-- Widget colors.
config.fg_color_normal = beautiful.fg_normal or '#87abef'
config.fg_color_active = beautiful.green or '#698f1e'
config.fg_color_alert = beautiful.red or '#cc2050'
config.fg_color_low = config.fg_color_alert
config.fg_color_crit = config.fg_color_alert
config.bg_color_active = beautiful.darkgreen or '#05390d'
config.bg_color_alert = beautiful.color_darkred or '#631018'
config.bg_color_low = config.bg_color_alert
config.bg_color_crit = config.bg_color_alert
-- Battctl config.
config.charging_prefix = '**'
config.charging_suffix = '**'
config.discharging_prefix = ''
config.discharging_suffix = '%'
config.full_prefix = '['
config.full_suffix = ']'
config.battery_full = 98 -- Full level (to accomodate batteries never reaching 100).
-- Soundctl config.
config.soundctl_spawn = 'pavucontrol' -- Program to spawn on click.
config.soundctl_step = 5 -- Volume step changes (1..100).
config.soundctl_uber = 125 -- Volume uber level.
-- Lightctl hardcodes.
-- (In most cases you want to leave this alone.)
config.backlight_path = '/sys/class/backlight/' -- Backlight path.
config.intel_dir = 'intel_backlight/' -- Intel path.
config.amd_dir = 'amdgpu_bl0/' -- AMD path.
config.brightness_file = 'brightness' -- Brightness file to look for in backlight directory.
config.max_brightness_file = 'max_brightness' -- Max brightness file.
-- Lightctl config.
config.use_light = true -- Use light as backlight controller.
config.lightctl_use_percent = true -- Show percentages rather than absolute value.
config.lightctl_precision = 0 -- Floating point precision to show.
config.lightctl_step = 25 -- Brightness step changes (1..100).
config.lightctl_edge = 15 -- Range in which log functions decrease delta (1..100).
-- Spacectl config.
config.sep_list = {'|'} -- List of separators used.
config.dynamic_sep = false -- Use a dynamic separator (substitutable using sep_list).
config.spacectl_markup = '' -- Widget markup.
config.spacectl_align = config.align -- Align Spacer text specifically.
-- Widget margins.
config.spacectl_margin_top = 1
config.spacectl_margin_left = 1
config.spacectl_margin_right = 1
config.spacectl_margin_top = 1
-- Color and opacity.
config.spacectl_fg_color = config.fg_color_normal
config.spacectl_opacity = 0.8
-- Before and after spacing widget.
config.spacectl_prefix = ''
config.spacectl_suffix = ''
return config