Nix fmt rfc style (more or less)
This commit is contained in:
parent
e7496c447a
commit
515f098644
146 changed files with 2607 additions and 906 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ nixosConfig, config, pkgs, lib, ... }:
|
||||
{ nixosConfig
|
||||
, config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
inherit (pkgs.rice) colorPalette opacity;
|
||||
inherit (pkgs.lib) nix-rice;
|
||||
|
|
@ -48,7 +53,13 @@ let
|
|||
wait
|
||||
'';
|
||||
powermenu = pkgs.writeShellScript "powermenu" ''
|
||||
PATH=$PATH:"${lib.makeBinPath [ pkgs.rofi pkgs.rofi-power-menu pkgs.zsh ]}"
|
||||
PATH=$PATH:"${
|
||||
lib.makeBinPath [
|
||||
pkgs.rofi
|
||||
pkgs.rofi-power-menu
|
||||
pkgs.zsh
|
||||
]
|
||||
}"
|
||||
zsh -c 'rofi -show menu -modi "menu:rofi-power-menu --choices=shutdown/reboot/hibernate/logout"'
|
||||
'';
|
||||
colors = nix-rice.palette.toARGBHex rec {
|
||||
|
|
@ -99,9 +110,7 @@ let
|
|||
bottom.size = 0;
|
||||
};
|
||||
font = [
|
||||
"${pkgs.rice.font.monospace.name}:size=${
|
||||
toString pkgs.rice.font.monospace.size
|
||||
};2"
|
||||
"${pkgs.rice.font.monospace.name}:size=${toString pkgs.rice.font.monospace.size};2"
|
||||
# "Font Awesome 6 Free:size=14;0"
|
||||
# "Noto Color Emoji:size=2;2"
|
||||
"Noto Sans Symbols2:size=${toString pkgs.rice.font.monospace.size};2"
|
||||
|
|
@ -116,7 +125,14 @@ let
|
|||
wm-restack = "bspwm";
|
||||
};
|
||||
|
||||
ramp = [ "▂" "▃" "▄" "▅" "▆" "▇" ];
|
||||
ramp = [
|
||||
"▂"
|
||||
"▃"
|
||||
"▄"
|
||||
"▅"
|
||||
"▆"
|
||||
"▇"
|
||||
];
|
||||
in
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
|
|
@ -139,13 +155,14 @@ in
|
|||
'';
|
||||
|
||||
settings = {
|
||||
"settings" = { screenchange-reload = false; };
|
||||
"settings" = {
|
||||
screenchange-reload = false;
|
||||
};
|
||||
|
||||
"bar/primary" = lib.recursiveUpdate commonBar {
|
||||
modules-left = "bspwm";
|
||||
# modules-center =
|
||||
modules-right =
|
||||
"player pulseaudio temperature cpu memory battery keyboard-switch notifications powermenu date";
|
||||
modules-right = "player pulseaudio temperature cpu memory battery keyboard-switch notifications powermenu date";
|
||||
tray = {
|
||||
position = "right";
|
||||
padding = 1;
|
||||
|
|
@ -155,8 +172,7 @@ in
|
|||
"bar/secondary" = lib.recursiveUpdate commonBar {
|
||||
modules-left = "bspwm";
|
||||
# modules-center =
|
||||
modules-right =
|
||||
"player pulseaudio temperature cpu memory battery keyboard-switch notifications powermenu date";
|
||||
modules-right = "player pulseaudio temperature cpu memory battery keyboard-switch notifications powermenu date";
|
||||
};
|
||||
|
||||
"module/battery" = {
|
||||
|
|
@ -167,14 +183,30 @@ in
|
|||
full.at = 98;
|
||||
|
||||
animation = {
|
||||
charging = { text = [ "" "" "" "" "" ]; framerate = "750"; };
|
||||
discharging = { text = [ "" "" "" "" "" ]; framerate = "750"; };
|
||||
charging = {
|
||||
text = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
framerate = "750";
|
||||
};
|
||||
discharging = {
|
||||
text = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
framerate = "750";
|
||||
};
|
||||
};
|
||||
|
||||
format = {
|
||||
charging = lib.recursiveUpdate colors.selected {
|
||||
text = "<animation-charging> <label-charging>";
|
||||
};
|
||||
charging = lib.recursiveUpdate colors.selected { text = "<animation-charging> <label-charging>"; };
|
||||
discharging = lib.recursiveUpdate colors.active {
|
||||
text = "<animation-discharging> <label-discharging>";
|
||||
};
|
||||
|
|
@ -204,7 +236,9 @@ in
|
|||
{
|
||||
focused = lib.recursiveUpdate common colors.selected;
|
||||
occupied = lib.recursiveUpdate common colors.active;
|
||||
urgent = lib.recursiveUpdate (lib.recursiveUpdate common colors.active) { background = colors.alert; };
|
||||
urgent = lib.recursiveUpdate (lib.recursiveUpdate common colors.active) {
|
||||
background = colors.alert;
|
||||
};
|
||||
empty = lib.recursiveUpdate common colors.normal;
|
||||
};
|
||||
};
|
||||
|
|
@ -220,10 +254,16 @@ in
|
|||
"module/date" = {
|
||||
type = "internal/date";
|
||||
format = colors.normal;
|
||||
date = { alt = "%Y-%m-%d"; text = "%a %d/%m/%y"; };
|
||||
date = {
|
||||
alt = "%Y-%m-%d";
|
||||
text = "%a %d/%m/%y";
|
||||
};
|
||||
interval = "1";
|
||||
label = "%date% %time%";
|
||||
time = { alt = "%H:%M:%S"; text = "%H:%M"; };
|
||||
time = {
|
||||
alt = "%H:%M:%S";
|
||||
text = "%H:%M";
|
||||
};
|
||||
};
|
||||
|
||||
"module/memory" = {
|
||||
|
|
@ -237,9 +277,15 @@ in
|
|||
"module/pulseaudio" = {
|
||||
interval = 2;
|
||||
bar.volume = {
|
||||
empty = { text = "─"; };
|
||||
fill = { text = "─"; };
|
||||
indicator = { text = "|"; };
|
||||
empty = {
|
||||
text = "─";
|
||||
};
|
||||
fill = {
|
||||
text = "─";
|
||||
};
|
||||
indicator = {
|
||||
text = "|";
|
||||
};
|
||||
width = "10";
|
||||
foreground = [
|
||||
colors.green
|
||||
|
|
@ -252,18 +298,19 @@ in
|
|||
colors.red
|
||||
];
|
||||
};
|
||||
click.right =
|
||||
"${pgrep} pavucontrol && ${pkill} pavucontrol || ${pavucontrol}";
|
||||
click.right = "${pgrep} pavucontrol && ${pkill} pavucontrol || ${pavucontrol}";
|
||||
format = {
|
||||
padding = 1;
|
||||
muted = colors.active;
|
||||
volume = lib.recursiveUpdate colors.normal {
|
||||
text = "<ramp-volume> <label-volume>";
|
||||
};
|
||||
volume = lib.recursiveUpdate colors.normal { text = "<ramp-volume> <label-volume>"; };
|
||||
};
|
||||
label.muted.text = " muted";
|
||||
label.volume.text = "%percentage%%";
|
||||
ramp.volume = [ "" "" "" ];
|
||||
ramp.volume = [
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
type = "internal/pulseaudio";
|
||||
};
|
||||
|
||||
|
|
@ -279,7 +326,13 @@ in
|
|||
text = "%temperature-c%";
|
||||
warn = "%temperature-c%";
|
||||
};
|
||||
ramp.text = [ "" "" "" "" "" ];
|
||||
ramp.text = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
thermal.zone = if nixosConfig.networking.hostName == "odin" then 8 else 0;
|
||||
type = "internal/temperature";
|
||||
warn.temperature = "90";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue