mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-17 05:05:06 +01:00
niri
This commit is contained in:
parent
bcfac2a1ba
commit
4c617077b2
6 changed files with 775 additions and 10 deletions
49
home-manager/waybar.nix
Normal file
49
home-manager/waybar.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ config, ... }: {
|
||||
home.file."${config.xdg.configHome}/waybar/config.jsonc" = {
|
||||
text = builtins.toJSON {
|
||||
height = 35;
|
||||
spacing = 4;
|
||||
modules-left = [ ];
|
||||
modules-center = [
|
||||
"clock"
|
||||
];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"cpu"
|
||||
"memory"
|
||||
"tray"
|
||||
];
|
||||
|
||||
pulseaudio = {
|
||||
# "scroll-step": 1, // %, can be a float
|
||||
"format" = "{volume}% {icon} {format_source}";
|
||||
"format-bluetooth" = "{volume}% {icon} {format_source}";
|
||||
"format-bluetooth-muted" = " {icon} {format_source}";
|
||||
"format-muted" = " {format_source}";
|
||||
"format-source" = "{volume}% ";
|
||||
"format-source-muted" = "";
|
||||
"format-icons" = {
|
||||
"headphone" = "";
|
||||
"hands-free" = "";
|
||||
"headset" = "";
|
||||
"phone" = "";
|
||||
"portable" = "";
|
||||
"car" = "";
|
||||
"default" = [ "" "" "" ];
|
||||
};
|
||||
"on-click" = "pavucontrol";
|
||||
};
|
||||
|
||||
cpu = {
|
||||
format = "{usage}% ";
|
||||
tooltip = false;
|
||||
};
|
||||
memory = {
|
||||
format = "{}% ";
|
||||
};
|
||||
tray = {
|
||||
spacing = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue