Fix redundant polybar color definitions
This commit is contained in:
parent
b8d4ced114
commit
5180740b3e
4 changed files with 28 additions and 32 deletions
|
@ -1,13 +1,7 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
# TODO: eliminate redundant color definitions
|
||||
background = "#2e3440";
|
||||
background-alt = "#3b4252";
|
||||
foreground = "#eceff4";
|
||||
primary = "#8fbcbb";
|
||||
alert = "#bf616a";
|
||||
disabled = "#434c5e";
|
||||
colors = import ../../polybar/colors.nix;
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [ lm_sensors ];
|
||||
|
@ -26,12 +20,12 @@ in
|
|||
|
||||
format-low = "<animation-low> <label-low>";
|
||||
|
||||
label-charging = "%{F${primary}}AC%{F-} %percentage%%";
|
||||
label-discharging = "%{F${primary}}BAT%{F-} %percentage%%";
|
||||
label-full = "%{F${primary}}AC%{F-}";
|
||||
label-charging = "%{F${colors.primary}}AC%{F-} %percentage%%";
|
||||
label-discharging = "%{F${colors.primary}}BAT%{F-} %percentage%%";
|
||||
label-full = "%{F${colors.primary}}AC%{F-}";
|
||||
|
||||
animation-low-0 = "%{F${primary}}BAT%{F-}";
|
||||
animation-low-1 = "%{F${alert}}LOW%{F-}";
|
||||
animation-low-0 = "%{F${colors.primary}}BAT%{F-}";
|
||||
animation-low-1 = "%{F${colors.alert}}LOW%{F-}";
|
||||
|
||||
full-at = 96;
|
||||
low-at = 10; # default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue