replace variant argument with modules
All checks were successful
/ build-all (push) Successful in 1m18s
All checks were successful
/ build-all (push) Successful in 1m18s
This commit is contained in:
parent
f2608d0a82
commit
1a0086f941
13 changed files with 586 additions and 577 deletions
40
home/bar.nix
40
home/bar.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, pkgs, variant, ... }: {
|
||||
{ lib, config, pkgs, ... }: {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
material-design-icons
|
||||
|
|
@ -71,15 +71,8 @@
|
|||
"group/disks" = {
|
||||
orientation = "inherit";
|
||||
modules = [
|
||||
"disk" # /
|
||||
]
|
||||
++
|
||||
(if (variant == "default") then [
|
||||
"disk#2"
|
||||
"disk#3"
|
||||
] else if (variant == "allegro") then [
|
||||
"disk#home"
|
||||
] else []);
|
||||
"disk"
|
||||
];
|
||||
};
|
||||
|
||||
backlight = {
|
||||
|
|
@ -130,27 +123,6 @@
|
|||
};
|
||||
|
||||
|
||||
"disk#2" = lib.attrsets.optionalAttrs (variant == "default") {
|
||||
interval = 1;
|
||||
format = " {free}";
|
||||
path = "/home/ant/disk1";
|
||||
"on-click" = "$TERMINAL -c floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}/disk1";
|
||||
};
|
||||
|
||||
"disk#3" = lib.attrsets.optionalAttrs (variant == "default") {
|
||||
interval = 1;
|
||||
format = " {free}";
|
||||
path = "/home/ant/disk2";
|
||||
"on-click" = "$TERMINAL -c floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}/disk2";
|
||||
};
|
||||
|
||||
"disk#home" = lib.attrsets.optionalAttrs (variant == "allegro") {
|
||||
interval = 1;
|
||||
format = " {free}";
|
||||
path = "/home/${username}";
|
||||
"on-click" = "$TERMINAL -c floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}";
|
||||
};
|
||||
|
||||
memory = {
|
||||
interval = 1;
|
||||
format = " {percentage:2}%";
|
||||
|
|
@ -279,12 +251,6 @@
|
|||
"scroll-step" = 5;
|
||||
};
|
||||
|
||||
"custom/loopback" = lib.attrsets.optionalAttrs (variant == "default") {
|
||||
exec = "journalctl --user -f -u loopback | exec_on_stdin_newline 'if systemctl --user is-active --quiet loopback; then echo loopback ON; else echo loopback; fi'";
|
||||
on-click = "if systemctl --user is-active --quiet loopback; then systemctl --user stop loopback; else systemctl --user start loopback; fi";
|
||||
format = "{}";
|
||||
};
|
||||
|
||||
"hyprland/submap" = {
|
||||
format = "(l)ock, (d)pms, (e)xit, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue