Compare commits

...

5 commits

Author SHA1 Message Date
a9a6c5c51e
fix(home/waybar): Limit width of window module 2025-03-02 16:29:50 -08:00
8c7620cc67
feat(home/gtk): Add abbr to open css debug mode 2025-03-02 15:44:24 -08:00
577c3a7ae0
fix(home/waybar): Stop Stylix injecting CSS
I thought that was disabled by default and spent 20min debugging my
custom CSS grrr
2025-03-02 15:38:43 -08:00
cc6fb7de18
feat(home/waybar): Major overhaul 2025-03-02 15:22:47 -08:00
1ec043f144
fix(home/wezterm): Make font look better 2025-03-02 14:33:29 -08:00
3 changed files with 109 additions and 85 deletions

View file

@ -23,5 +23,10 @@ in {
inherit package;
};
};
home.shellAbbrs = {
# Inspect element for UI.
"cssdebug" = "GTK_DEBUG=interactive";
};
};
}

View file

@ -35,6 +35,8 @@ in {
-- Fix color blocks instead of text issue.
config.front_end = "WebGpu"
config.freetype_load_flags = 'NO_HINTING'
config.enable_tab_bar = false
return config

View file

@ -16,94 +16,70 @@ in {
programs.wlogout.enable = true;
};
stylix.targets.waybar.addCss = false;
programs.waybar = {
enable = true;
systemd.enable = true;
# https://gitlab.com/Zaney/zaneyos/-/blob/main/config/waybar.nix
settings = [
settings = let
niri =
config.programs.niri
# HM module doesn't include an enable option...
// {
enable = config.marleyos.wayland.niri.enable;
};
in [
{
layer = "top";
position = "top";
modules-left = [
"custom/startmenu"
"hyprland/window"
"pulseaudio"
"cpu"
"memory"
"idle_inhibitor"
];
modules-center = ["hyprland/workspaces"];
modules-right = [
"custom/notifications"
"custom/exit"
"battery"
"tray"
"clock"
];
modules-left =
[
"custom/startmenu"
]
++ (lib.optionals niri.enable [
"niri/window"
])
++ [
"pulseaudio"
"cpu"
"memory"
"idle_inhibitor"
];
modules-center =
[]
++ (lib.optionals niri.enable [
"niri/workspaces"
]);
modules-right =
[
"custom/notifications"
"tray"
]
++ (lib.optionals (!config.marleyos.isDesktop) [
"battery"
])
++ [
"network"
"custom/exit"
"clock"
];
"hyprland/workspaces" = let
hyprctl =
lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
in {
format = "{name}";
format-icons = {
default = " ";
active = " ";
urgent = " ";
};
on-scroll-up = "${hyprctl} dispatch workspace e+1";
on-scroll-down = "${hyprctl} dispatch workspace e-1";
"custom/startmenu" = {
tooltip = false;
format = "";
on-click = let
inherit (config.marleyos.apps) launcher;
in "sleep 0.1 && ${lib.getExe launcher.package} ${launcher.command}";
};
"clock" = {
format = " {:L%I:%M %p}";
tooltip = true;
tooltip-format = "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>";
};
"hyprland/window" = {
max-length = 22;
separate-outputs = false;
"niri/window" = lib.mkIf niri.enable {
rewrite = {
"" = " 🙈 No Windows? ";
};
};
"memory" = {
interval = 5;
format = " {}%";
tooltip = true;
};
"cpu" = {
interval = 5;
format = " {usage:2}%";
tooltip = true;
};
"disk" = {
format = " {free}";
tooltip = true;
};
"network" = {
format-icons = [
"󰤯"
"󰤟"
"󰤢"
"󰤥"
"󰤨"
];
format-ethernet = " {bandwidthDownOctets}";
format-wifi = "{icon} {signalStrength}%";
format-disconnected = "󰤮";
tooltip = false;
};
"tray" = {
spacing = 12;
max-length = 22;
};
"pulseaudio" = {
@ -129,18 +105,16 @@ in {
on-click = "sleep 0.1 && ${lib.getExe pkgs.pwvucontrol}";
};
"custom/exit" = {
tooltip = false;
format = "";
on-click = "sleep 0.1 && ${lib.getExe config.programs.wlogout.package}";
"cpu" = {
interval = 5;
format = " {usage:2}%";
tooltip = true;
};
"custom/startmenu" = {
tooltip = false;
format = "";
on-click = let
inherit (config.marleyos.apps) launcher;
in "sleep 0.1 && ${lib.getExe launcher.package} ${launcher.command}";
"memory" = {
interval = 5;
format = " {}%";
tooltip = true;
};
"idle_inhibitor" = {
@ -152,6 +126,19 @@ in {
tooltip = "true";
};
"niri/workspaces" = lib.mkIf niri.enable (let
niriMsg = msg: "${lib.getExe niri.package} msg action ${msg}";
in {
format = "{value}";
format-icons = {
default = " ";
active = " ";
urgent = " ";
};
on-scroll-up = niriMsg "focus-workspace-up";
on-scroll-down = niriMsg "focus-workspace-down";
});
"custom/notifications" = let
swaync-client =
lib.getExe' config.services.swaync.package "swaync-client";
@ -174,6 +161,10 @@ in {
escape = true;
};
"tray" = {
spacing = 12;
};
"battery" = {
states = {
warning = 30;
@ -197,6 +188,32 @@ in {
on-click = "";
tooltip = false;
};
"network" = {
format-icons = [
"󰤯"
"󰤟"
"󰤢"
"󰤥"
"󰤨"
];
format-ethernet = " {bandwidthDownOctets}";
format-wifi = "{icon} {signalStrength}%";
format-disconnected = "󰤮";
tooltip = false;
};
"custom/exit" = {
tooltip = false;
format = "";
on-click = "sleep 0.1 && ${lib.getExe config.programs.wlogout.package}";
};
"clock" = {
format = " {:L%I:%M %p}";
tooltip = true;
tooltip-format = "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>";
};
}
];
@ -227,7 +244,7 @@ in {
#workspaces button {
font-weight: bold;
padding: 0 5px;
padding: 5px;
margin: 0 3px;
border-radius: 16px;
color: @base00;
@ -252,7 +269,7 @@ in {
font-weight: bold;
border-radius: 16px;
color: @base00;
background: linear-gradient(45deg, @base08, @iris);
background: linear-gradient(45deg, @base08, @base0D);
opacity: 0.8;
transition: ${transition};
}