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:
parent
48a0c8fa5a
commit
eb3282b453
4
home.nix
4
home.nix
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
18
home/services/batteryicon.nix
Normal file
18
home/services/batteryicon.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue