physlock + better polybar

This commit is contained in:
Cyryl Płotnicki 2019-07-14 21:21:42 +01:00
parent b7901fc7f1
commit 3880514cb2
2 changed files with 14 additions and 9 deletions

View file

@ -76,7 +76,7 @@ in
clickMethod = "clickfinger"; clickMethod = "clickfinger";
}; };
displayManager.lightdm = { displayManager.slim = {
enable = true; enable = true;
}; };
}; };
@ -104,6 +104,10 @@ in
}; };
powerManagement.cpuFreqGovernor = (lib.mkForce null); powerManagement.cpuFreqGovernor = (lib.mkForce null);
services.physlock = {
enable = true;
allowAnyUser = true;
};
nix.gc.automatic = true; nix.gc.automatic = true;
nix.autoOptimiseStore = true; nix.autoOptimiseStore = true;

View file

@ -25,7 +25,7 @@
module-margin-right = 1; module-margin-right = 1;
modules-left = "i3"; modules-left = "i3";
modules-center = "date"; modules-center = "date";
modules-right = "memory cpu battery-label battery1 battery0"; modules-right = "memory swap cpu battery1 battery0";
}; };
"module/date" = { "module/date" = {
@ -42,19 +42,20 @@
"module/cpu" = { "module/cpu" = {
type = "internal/cpu"; type = "internal/cpu";
interval = 3; interval = 5;
format = "CPU: <label>"; format = "CPU: <label>";
}; };
"module/memory" = { "module/memory" = {
type = "internal/memory"; type = "internal/memory";
interval = 3; interval = 5;
label = "MEM: %percentage_used%%"; label = "MEM: %percentage_used%%";
}; };
"module/battery-label" = { "module/swap" = {
type = "custom/text"; type = "internal/memory";
content = "BAT:"; interval = 15;
label = "SWAP: %percentage_swap_used%%";
}; };
"module/battery0" = { "module/battery0" = {
@ -62,7 +63,7 @@
battery = "BAT0"; battery = "BAT0";
adapter = "AC"; adapter = "AC";
poll-interval = "5"; poll-interval = "5";
format-discharging = "<label-discharging>"; format-discharging = "BAT0: <label-discharging>";
label-discharging = "%percentage%%|%time%"; label-discharging = "%percentage%%|%time%";
}; };
@ -71,7 +72,7 @@
battery = "BAT1"; battery = "BAT1";
adapter = "AC"; adapter = "AC";
poll-interval = "5"; poll-interval = "5";
format-discharging = "<label-discharging>"; format-discharging = "BAT1: <label-discharging>";
label-discharging = "%percentage%%|%time%"; label-discharging = "%percentage%%|%time%";
}; };