mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
nixdirfmt'd
This commit is contained in:
parent
d5cdf9017c
commit
8741d0f704
1 changed files with 70 additions and 70 deletions
|
|
@ -4,76 +4,76 @@ let
|
||||||
style = import ../style.nix;
|
style = import ../style.nix;
|
||||||
secrets = import ../../../../secrets.nix;
|
secrets = import ../../../../secrets.nix;
|
||||||
in {
|
in {
|
||||||
home-manager.users.kat = {
|
home-manager.users.kat = {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
style = import ./waybar.css.nix {
|
style = import ./waybar.css.nix {
|
||||||
inherit style;
|
inherit style;
|
||||||
hextorgba = pkgs.colorhelpers.hextorgba;
|
hextorgba = pkgs.colorhelpers.hextorgba;
|
||||||
};
|
|
||||||
settings = [{
|
|
||||||
modules-left = [ "sway/workspaces" "sway/mode" "sway/window" ];
|
|
||||||
modules-center = [ "clock" "custom/weather" ];
|
|
||||||
modules-right = [
|
|
||||||
"pulseaudio"
|
|
||||||
"network"
|
|
||||||
"cpu"
|
|
||||||
"memory"
|
|
||||||
"temperature"
|
|
||||||
"backlight"
|
|
||||||
"battery"
|
|
||||||
"tray"
|
|
||||||
];
|
|
||||||
|
|
||||||
modules = {
|
|
||||||
"custom/weather" = {
|
|
||||||
format = "{}";
|
|
||||||
interval = 3600;
|
|
||||||
on-click = "xdg-open 'https://google.com/search?q=weather'";
|
|
||||||
exec = "nix-shell --command 'python ${
|
|
||||||
../../../../scripts/weather.py
|
|
||||||
} ${secrets.profiles.sway.city} ${secrets.profiles.sway.api_key}' ${
|
|
||||||
../../../../scripts/weather.nix
|
|
||||||
}";
|
|
||||||
};
|
|
||||||
cpu = { format = " {usage}%"; };
|
|
||||||
memory = { format = " {percentage}%"; };
|
|
||||||
temperature = { format = "﨎 {temperatureC}°C"; };
|
|
||||||
backlight = {
|
|
||||||
format = "{icon} {percent}%";
|
|
||||||
format-icons = [ "" "" ];
|
|
||||||
on-scroll-up = "${pkgs.light}/bin/light -A 1";
|
|
||||||
on-scroll-down = "${pkgs.light}/bin/light -U 1";
|
|
||||||
};
|
|
||||||
battery = {
|
|
||||||
states = {
|
|
||||||
good = 90;
|
|
||||||
warning = 30;
|
|
||||||
critical = 15;
|
|
||||||
};
|
|
||||||
format = "{icon} {capacity}%";
|
|
||||||
format-charging = " {capacity}%";
|
|
||||||
format-plugged = " {capacity}%";
|
|
||||||
format-alt = "{icon} {time}";
|
|
||||||
format-icons = [ "" "" "" "" "" ];
|
|
||||||
};
|
|
||||||
pulseaudio = {
|
|
||||||
format = " {volume}%";
|
|
||||||
on-click = "pavucontrol";
|
|
||||||
};
|
|
||||||
network = {
|
|
||||||
format-wifi = " {essid} ({signalStrength}%)";
|
|
||||||
format-ethernet = " {ifname}: {ipaddr}/{cidr}";
|
|
||||||
format-linked = " {ifname} (No IP)";
|
|
||||||
format-disconnected = " Disconnected ";
|
|
||||||
format-alt = " {ifname}: {ipaddr}/{cidr}";
|
|
||||||
};
|
|
||||||
clock = {
|
|
||||||
format = " {:%A, %F %T %Z}";
|
|
||||||
interval = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}];
|
|
||||||
};
|
};
|
||||||
|
settings = [{
|
||||||
|
modules-left = [ "sway/workspaces" "sway/mode" "sway/window" ];
|
||||||
|
modules-center = [ "clock" "custom/weather" ];
|
||||||
|
modules-right = [
|
||||||
|
"pulseaudio"
|
||||||
|
"network"
|
||||||
|
"cpu"
|
||||||
|
"memory"
|
||||||
|
"temperature"
|
||||||
|
"backlight"
|
||||||
|
"battery"
|
||||||
|
"tray"
|
||||||
|
];
|
||||||
|
|
||||||
|
modules = {
|
||||||
|
"custom/weather" = {
|
||||||
|
format = "{}";
|
||||||
|
interval = 3600;
|
||||||
|
on-click = "xdg-open 'https://google.com/search?q=weather'";
|
||||||
|
exec = "nix-shell --command 'python ${
|
||||||
|
../../../../scripts/weather.py
|
||||||
|
} ${secrets.profiles.sway.city} ${secrets.profiles.sway.api_key}' ${
|
||||||
|
../../../../scripts/weather.nix
|
||||||
|
}";
|
||||||
|
};
|
||||||
|
cpu = { format = " {usage}%"; };
|
||||||
|
memory = { format = " {percentage}%"; };
|
||||||
|
temperature = { format = "﨎 {temperatureC}°C"; };
|
||||||
|
backlight = {
|
||||||
|
format = "{icon} {percent}%";
|
||||||
|
format-icons = [ "" "" ];
|
||||||
|
on-scroll-up = "${pkgs.light}/bin/light -A 1";
|
||||||
|
on-scroll-down = "${pkgs.light}/bin/light -U 1";
|
||||||
|
};
|
||||||
|
battery = {
|
||||||
|
states = {
|
||||||
|
good = 90;
|
||||||
|
warning = 30;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
format = "{icon} {capacity}%";
|
||||||
|
format-charging = " {capacity}%";
|
||||||
|
format-plugged = " {capacity}%";
|
||||||
|
format-alt = "{icon} {time}";
|
||||||
|
format-icons = [ "" "" "" "" "" ];
|
||||||
|
};
|
||||||
|
pulseaudio = {
|
||||||
|
format = " {volume}%";
|
||||||
|
on-click = "pavucontrol";
|
||||||
|
};
|
||||||
|
network = {
|
||||||
|
format-wifi = " {essid} ({signalStrength}%)";
|
||||||
|
format-ethernet = " {ifname}: {ipaddr}/{cidr}";
|
||||||
|
format-linked = " {ifname} (No IP)";
|
||||||
|
format-disconnected = " Disconnected ";
|
||||||
|
format-alt = " {ifname}: {ipaddr}/{cidr}";
|
||||||
|
};
|
||||||
|
clock = {
|
||||||
|
format = " {:%A, %F %T %Z}";
|
||||||
|
interval = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue