Added battery indicator to awesome wm

This commit is contained in:
Warren Hood 2022-11-25 02:22:25 +02:00
parent d73ab7dfb4
commit fa428f29c3
3 changed files with 260 additions and 251 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "awesome/.config/awesome/battery-widget"]
path = awesome/.config/awesome/battery-widget
url = https://github.com/deficient/battery-widget

@ -0,0 +1 @@
Subproject commit 25b7e94a34ed854697d61e3cbb0a3ebd9745dbd4

View file

@ -229,6 +229,10 @@ awful.screen.connect_for_each_screen(function(s)
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
-- battery widget from https://raw.githubusercontent.com/deficient/battery-widget/master/battery-widget.lua
require("battery-widget") {},
wibox.widget.systray(),
mytextclock,
s.mylayoutbox,
@ -511,7 +515,8 @@ awful.rules.rules = {
"Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
"Wpa_gui",
"veromix",
"xtightvncviewer"},
"xtightvncviewer"
},
-- Note that the name property shown in xprop might be set slightly after creation of the client
-- and the name shown there might not match defined rules here.