Displays battery of a connected dualsense controller, and turns off the controller if you middle-click the widget.
Clone the repo under "~/.config/awesome/widgets/" then add it to your theme.lua
local dualsensebat_widget = require("dualsense.dualsense")
local dualsense = dualsensebat_widget{font=theme.font}
function theme.at_screen_connect(s)
s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(22), bg = theme.bg_normal, fg = theme.fg_normal })
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
dualsense
}
end
This widget depends on dualsensectl.