Fix i3status-rust not working everywhere
This commit is contained in:
@@ -1,18 +1,32 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
hostname,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
filterBacklight = list:
|
||||
builtins.filter (item:
|
||||
!(builtins.elem item.block (
|
||||
if hostname == "dingbox"
|
||||
then ["backlight" "battery"]
|
||||
else []
|
||||
)))
|
||||
list;
|
||||
in {
|
||||
programs.i3status-rust = {
|
||||
enable = true;
|
||||
bars = {
|
||||
main = {
|
||||
theme = "dracula";
|
||||
icons = "awesome";
|
||||
blocks = [
|
||||
blocks =
|
||||
[
|
||||
{
|
||||
block = "time";
|
||||
}
|
||||
]
|
||||
++ lib.optionals (hostname == "pingbox") [
|
||||
{
|
||||
block = "battery";
|
||||
allow_missing = true;
|
||||
@@ -24,6 +38,8 @@
|
||||
step_width = 10;
|
||||
invert_icons = true;
|
||||
}
|
||||
]
|
||||
++ [
|
||||
{
|
||||
block = "networkmanager";
|
||||
primary_only = true;
|
||||
|
||||
Reference in New Issue
Block a user