Add replacement for i3 battery

The module doesn't work or exist anymore.
I use a lightwight battery icon instead which I add as a service to
start during login.

And I don't need the wifi thingy.
This commit is contained in:
Daniel Siepmann 2022-05-19 07:18:51 +02:00
parent 48a0c8fa5a
commit eb3282b453
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 22 additions and 14 deletions

View file

@ -226,4 +226,8 @@
"PATH=${config.home.profileDirectory}/bin"
"QT_XCB_GL_INTEGRATION=none"
];
systemd.user.services.batteryicon = import ./home/services/batteryicon.nix {
inherit pkgs;
};
}

View file

@ -40,20 +40,6 @@ command=[ -L /etc/php/8.0/cli/conf.d/20-xdebug.ini ] && echo "yes" || echo "no"
interval=once
signal=10
# System info
[wifi]
instance=wlp2s0
label=📡
interval=10
separator=false
min_width=50
# Battery indicator
[battery]
label=🔋
interval=30
# Date Time
[time]
command=date '+📅 %a %Y-%m-%d %H:%M:%S'; date '+📅 %a %d. %H:%M:%S'

View file

@ -0,0 +1,18 @@
{ pkgs }:
{
Unit = {
Description = "Battery Icon";
PartOf = "graphical-session.target";
};
Service = {
ExecStart = "${pkgs.cbatticon}/bin/cbatticon -u 30";
};
Install = {
WantedBy = [
"default.target"
];
};
}