refactor(treewide): format with alejandra
This commit is contained in:
parent
7fefb94400
commit
61cef505da
216 changed files with 5995 additions and 3969 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
{lib, ...}: {
|
||||
imports = [
|
||||
#./eww
|
||||
# ./ags
|
||||
|
|
@ -17,5 +16,4 @@
|
|||
enable = lib.mkEnableOption "Enable waybar bar";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
{ config, lib, pkgs, osConfig, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (lib) mkIf head;
|
||||
fonts = config.ooknet.fonts;
|
||||
wayland = config.ooknet.wayland;
|
||||
monitors = osConfig.ooknet.host.hardware.monitors;
|
||||
monitorWidth = (head monitors).width - 20;
|
||||
in
|
||||
|
||||
{
|
||||
monitorWidth = (head monitors).width - 20;
|
||||
in {
|
||||
config = mkIf (wayland.bar == "waybar") {
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
|
|
@ -25,9 +27,9 @@ in
|
|||
margin-top = 10;
|
||||
margin-bottom = -12;
|
||||
|
||||
modules-left = [ "clock" "battery" "hyprland/workspaces" ];
|
||||
modules-left = ["clock" "battery" "hyprland/workspaces"];
|
||||
modules-center = [];
|
||||
modules-right = [ "custom/hyprrecord" "tray" ];
|
||||
modules-right = ["custom/hyprrecord" "tray"];
|
||||
|
||||
"hyprland/workspaces" = let
|
||||
hyprctl = config.wayland.windowManager.hyprland.package + "/bin/hyprctl";
|
||||
|
|
@ -60,7 +62,7 @@ in
|
|||
};
|
||||
bat = "BAT0";
|
||||
interval = 10;
|
||||
format-icons = [ "" "" "" "" "" "" "" "" "" "" ];
|
||||
format-icons = ["" "" "" "" "" "" "" "" "" ""];
|
||||
format = "{icon} {capacity}%";
|
||||
format-charging = "{icon} {capacity}%";
|
||||
tooltip-format = "{timeTo} {power}W";
|
||||
|
|
@ -79,77 +81,81 @@ in
|
|||
signal = 12;
|
||||
};
|
||||
};
|
||||
style = /* css */ ''
|
||||
* {
|
||||
font-family: "${fonts.monospace.family}";
|
||||
font-size: 19px;
|
||||
border: solid #${palette.base05};
|
||||
}
|
||||
style =
|
||||
/*
|
||||
css
|
||||
*/
|
||||
''
|
||||
* {
|
||||
font-family: "${fonts.monospace.family}";
|
||||
font-size: 19px;
|
||||
border: solid #${palette.base05};
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: transparent;
|
||||
margin: 10px;
|
||||
}
|
||||
window#waybar {
|
||||
background-color: transparent;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#workspaces {
|
||||
background-color: #${palette.base00};
|
||||
padding-right: 10px;
|
||||
}
|
||||
#clock,
|
||||
#battery,
|
||||
#workspaces {
|
||||
background-color: #${palette.base00};
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
padding-left: 10px;
|
||||
border: 2px solid #${palette.base05};
|
||||
border-right: 0px;
|
||||
border-top-left-radius: 10px;
|
||||
}
|
||||
#clock {
|
||||
padding-left: 10px;
|
||||
border: 2px solid #${palette.base05};
|
||||
border-right: 0px;
|
||||
border-top-left-radius: 10px;
|
||||
}
|
||||
|
||||
#battery {
|
||||
padding-left: 10px;
|
||||
border-top: 2px solid #${palette.base05};
|
||||
border-bottom: 2px solid #${palette.base05};
|
||||
border-left: 0px;
|
||||
}
|
||||
#battery {
|
||||
padding-left: 10px;
|
||||
border-top: 2px solid #${palette.base05};
|
||||
border-bottom: 2px solid #${palette.base05};
|
||||
border-left: 0px;
|
||||
}
|
||||
|
||||
#battery.good {
|
||||
color: #${palette.base0B};
|
||||
}
|
||||
#battery.warning {
|
||||
color: #${palette.base0A};
|
||||
}
|
||||
#battery.critical {
|
||||
color: #${palette.base08};
|
||||
}
|
||||
#battery.good {
|
||||
color: #${palette.base0B};
|
||||
}
|
||||
#battery.warning {
|
||||
color: #${palette.base0A};
|
||||
}
|
||||
#battery.critical {
|
||||
color: #${palette.base08};
|
||||
}
|
||||
|
||||
#tray {
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
#tray {
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
border: 2px solid #${palette.base05};
|
||||
border-left: 0;
|
||||
border-top-right-radius: 10px;
|
||||
}
|
||||
#workspaces {
|
||||
border: 2px solid #${palette.base05};
|
||||
border-left: 0;
|
||||
border-top-right-radius: 10px;
|
||||
}
|
||||
|
||||
#workspace button,
|
||||
#workspaces button.active,
|
||||
#workspaces button.visible {
|
||||
color: #${palette.base0B};
|
||||
}
|
||||
#workspace button,
|
||||
#workspaces button.active,
|
||||
#workspaces button.visible {
|
||||
color: #${palette.base0B};
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #${palette.base08};
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
color: #${palette.base08};
|
||||
}
|
||||
|
||||
#custom-hyprrecord {
|
||||
color: #${palette.base08};
|
||||
padding-right: 20px;
|
||||
}
|
||||
'';
|
||||
#custom-hyprrecord {
|
||||
color: #${palette.base08};
|
||||
padding-right: 20px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue