waybar: fix keyboard input module and reformat file
This commit is contained in:
parent
fe37f8ad86
commit
a27a843ec2
2 changed files with 35 additions and 27 deletions
|
@ -26,51 +26,59 @@ in {
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
|
||||||
modules-right =
|
modules-right = [
|
||||||
[
|
"keyboard-state"
|
||||||
"privacy"
|
"privacy"
|
||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
"disk"
|
"disk"
|
||||||
"temperature"
|
"temperature"
|
||||||
"keyboard-state"
|
|
||||||
"tray"
|
"tray"
|
||||||
]
|
]
|
||||||
++ lists.optionals laptop [
|
++ lists.optionals laptop [
|
||||||
"battery"
|
"battery"
|
||||||
];
|
];
|
||||||
"battery" = mkIf laptop {
|
battery = mkIf laptop {
|
||||||
format = "{capacity}% {icon}";
|
format = "{capacity}% {icon}";
|
||||||
format-icons = ["" "" "" "" ""];
|
format-plugged = "{capacity}% {icon}";
|
||||||
|
format-icons = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
||||||
|
states = {
|
||||||
|
warning = 20;
|
||||||
|
critical = 10;
|
||||||
};
|
};
|
||||||
"keyboard-state" = {
|
};
|
||||||
numlock = true;
|
keyboard-state = {
|
||||||
capslock = true;
|
capslock = true;
|
||||||
|
format.capslock = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
locked = " ";
|
||||||
|
unlocked = "";
|
||||||
};
|
};
|
||||||
"tray" = {
|
};
|
||||||
|
tray = {
|
||||||
icon-size = 13;
|
icon-size = 13;
|
||||||
spacing = 8;
|
spacing = 8;
|
||||||
};
|
};
|
||||||
"clock" = {
|
clock = {
|
||||||
interval = 60;
|
interval = 60;
|
||||||
format = "{:%A %B %d %Y %H:%M}";
|
format = "{:%A %B %d %Y %H:%M}";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
"cpu" = {
|
cpu = {
|
||||||
format = " {usage}%";
|
format = " {usage}%";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
"memory" = {
|
memory = {
|
||||||
format = " {percentage}%";
|
format = " {percentage}%";
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
tooltip-format = "{used}/{total}";
|
tooltip-format = "{used}/{total}";
|
||||||
};
|
};
|
||||||
"disk" = {
|
disk = {
|
||||||
format = " {specific_used:0.0f}/{specific_total:0.0f}";
|
format = " {specific_used:0.0f}/{specific_total:0.0f}";
|
||||||
unit = "GiB";
|
unit = "GiB";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
"privacy" = {
|
privacy = {
|
||||||
icon-size = 12;
|
icon-size = 12;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -159,9 +167,9 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* States (battery, network, audio) */
|
/* States (battery, network, audio) */
|
||||||
#battery.charging { color: #c9ffbf; }
|
#battery.charging { color: #27f902; }
|
||||||
#battery.warning:not(.charging) { color: #ffd29a; }
|
#battery.warning:not(.charging) { color: #fc8b02; }
|
||||||
#battery.critical:not(.charging) { color: #ff9a9a; }
|
#battery.critical:not(.charging) { color: #fc0000; }
|
||||||
|
|
||||||
#network.disconnected { color: #ffb4b4; }
|
#network.disconnected { color: #ffb4b4; }
|
||||||
#pulseaudio.muted { color: #9aa0a6; }
|
#pulseaudio.muted { color: #9aa0a6; }
|
||||||
|
|
|
@ -54,7 +54,7 @@ in {
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
extraGroups =
|
extraGroups =
|
||||||
["users" "networkmanager"]
|
["users" "networkmanager"]
|
||||||
++ optionals (v.admin) ["wheel" "libvirtd" "dialout" "adbusers" "video"];
|
++ optionals (v.admin) ["wheel" "libvirtd" "dialout" "adbusers" "video" "input"];
|
||||||
openssh.authorizedKeys.keyFiles = v.sshKeyPublicFile;
|
openssh.authorizedKeys.keyFiles = v.sshKeyPublicFile;
|
||||||
})
|
})
|
||||||
enabledUsers;
|
enabledUsers;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue