mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
fix(i3): configure i3status-rust by battery block device
This commit is contained in:
@@ -64,6 +64,7 @@ in with config.niveum; {
|
|||||||
statusCommand = "${pkgs.unstable.i3status-rust}/bin/i3status-rs ${pkgs.writeText "i3status-rust.toml" (
|
statusCommand = "${pkgs.unstable.i3status-rust}/bin/i3status-rs ${pkgs.writeText "i3status-rust.toml" (
|
||||||
import <dot/i3status-rust.nix> {
|
import <dot/i3status-rust.nix> {
|
||||||
wifi-interface = networkInterfaces.wireless;
|
wifi-interface = networkInterfaces.wireless;
|
||||||
|
batteryBlock = batteryBlocks.default;
|
||||||
inherit (config.niveum) colours;
|
inherit (config.niveum) colours;
|
||||||
}
|
}
|
||||||
)}";
|
)}";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ wifi-interface, colours }: ''
|
{ wifi-interface, colours, batteryBlock }: ''
|
||||||
[theme]
|
[theme]
|
||||||
name = "plain"
|
name = "plain"
|
||||||
[theme.overrides]
|
[theme.overrides]
|
||||||
@@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "battery"
|
block = "battery"
|
||||||
|
device = "${batteryBlock}"
|
||||||
show = "both"
|
show = "both"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ in {
|
|||||||
|
|
||||||
networkInterfaces.wireless = mkOption { type = types.str; };
|
networkInterfaces.wireless = mkOption { type = types.str; };
|
||||||
|
|
||||||
|
batteryBlocks.default = mkOption { type = types.str; };
|
||||||
|
|
||||||
promptColours =
|
promptColours =
|
||||||
let colours16 = types.enum [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
let colours16 = types.enum [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
||||||
in {
|
in {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
environment.systemPackages = [ pkgs.unstable.zeroad pkgs.minecraft ];
|
environment.systemPackages = [ pkgs.unstable.zeroad pkgs.minecraft ];
|
||||||
|
|
||||||
niveum = {
|
niveum = {
|
||||||
|
batteryBlocks.default = "BAT1";
|
||||||
networkInterfaces.wireless = "wlp3s0";
|
networkInterfaces.wireless = "wlp3s0";
|
||||||
promptColours.success = "green";
|
promptColours.success = "green";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
niveum = {
|
niveum = {
|
||||||
|
batteryBlocks.default = "BAT0";
|
||||||
networkInterfaces.wireless = "wlp3s0";
|
networkInterfaces.wireless = "wlp3s0";
|
||||||
promptColours.success = "cyan";
|
promptColours.success = "cyan";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user