Doors/configs/awesome/wibar/widgets.lua

23 lines
637 B
Lua
Raw Normal View History

2024-01-09 20:38:24 -05:00
Calendar_widget = require 'awesome-wm-widgets.calendar-widget.calendar'
Cpu_widget = require 'awesome-wm-widgets.cpu-widget.cpu-widget'
Ram_widget = require 'awesome-wm-widgets.ram-widget.ram-widget'
Batteryarc_widget = require 'awesome-wm-widgets.batteryarc-widget.batteryarc'
Mytextclock = Wibox.widget {
2024-01-09 20:38:24 -05:00
format = ' %a %b %d, %I:%M%P ',
widget = Wibox.widget.textclock,
}
2024-01-09 20:38:24 -05:00
local cw = Calendar_widget {
placement = 'top_right',
start_sunday = 'true',
previous_month_button = 4,
next_month_button = 5,
}
2024-01-09 20:38:24 -05:00
Mytextclock:connect_signal('button::press', function(_, _, _, button)
if button == 1 then
cw.toggle()
end
end)