2024-10-25 11:25:34 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2024-12-20 08:41:40 +00:00
|
|
|
imports = [ ./avizo.nix ];
|
2024-10-25 11:25:34 +01:00
|
|
|
stylix.targets.waybar.enable = false;
|
|
|
|
systemd.user.targets.tray.Unit = {
|
|
|
|
Description = "Home Manager System Tray";
|
|
|
|
Requires = [ "graphical-session.target" ];
|
|
|
|
};
|
2024-10-25 15:20:10 +01:00
|
|
|
home.packages = [ pkgs.playerctl ]; # For MPRIS to work
|
2024-10-25 11:25:34 +01:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
systemd.enable = true;
|
|
|
|
settings.main = {
|
|
|
|
name = "main";
|
|
|
|
layer = "top";
|
2024-12-20 08:41:40 +00:00
|
|
|
position = "left";
|
2024-10-25 11:25:34 +01:00
|
|
|
# Layout
|
|
|
|
"modules-left" = [
|
2024-10-25 15:20:10 +01:00
|
|
|
"hyprland/workspaces"
|
2024-12-20 08:41:40 +00:00
|
|
|
"mpris"
|
2024-10-25 11:25:34 +01:00
|
|
|
];
|
2024-12-20 08:41:40 +00:00
|
|
|
"modules-center" = [ ];
|
2024-10-25 11:25:34 +01:00
|
|
|
"modules-right" = [
|
|
|
|
"custom/notification"
|
|
|
|
"pulseaudio"
|
|
|
|
"network"
|
|
|
|
"bluetooth"
|
|
|
|
"clock#calendar"
|
|
|
|
"clock"
|
|
|
|
"backlight"
|
|
|
|
"battery"
|
|
|
|
"custom/weather"
|
|
|
|
"systemd-failed-units"
|
|
|
|
"tray"
|
|
|
|
];
|
|
|
|
# Module config
|
|
|
|
"hyprland/workspaces" = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
2024-12-12 08:19:16 +00:00
|
|
|
"1" = "";
|
|
|
|
"2" = "";
|
|
|
|
"3" = "";
|
|
|
|
"4" = "";
|
|
|
|
"5" = "";
|
|
|
|
"6" = "";
|
|
|
|
"7" = "";
|
2024-11-03 11:42:58 +00:00
|
|
|
default = " ";
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
|
|
|
all-outputs = false;
|
|
|
|
persistent-workspaces = {
|
|
|
|
"1" = [ ];
|
|
|
|
"2" = [ ];
|
|
|
|
"3" = [ ];
|
|
|
|
"4" = [ ];
|
|
|
|
"5" = [ ];
|
|
|
|
"6" = [ ];
|
2024-11-20 16:05:00 +00:00
|
|
|
"7" = [ ];
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
"hyprland/window" = {
|
|
|
|
"format" = "{title}";
|
|
|
|
"max-length" = 50;
|
|
|
|
"rewrite" = {
|
2024-12-12 08:19:16 +00:00
|
|
|
"(.*) - GNU Emacs at (.*)" = " $1 [$2]";
|
|
|
|
"(alacritty.*)" = " $1";
|
|
|
|
"(.*) - mpv" = " $1";
|
|
|
|
"swayimg: (.*)" = " $1";
|
|
|
|
"swappy" = " swappy";
|
|
|
|
"(?:/nix/.*)(btm)" = " Resource Usage [$1]";
|
|
|
|
"(?:/nix/.*)(cava)" = " Music Visualiser [$1]";
|
|
|
|
"Mozilla Firefox" = " $1";
|
|
|
|
"(.*) — Mozilla Firefox" = " $1";
|
|
|
|
"Nyxt - (.*)" = " $1";
|
|
|
|
"(.*) - Chromium" = " $1";
|
|
|
|
"(Signal.*)" = " $1";
|
|
|
|
"(WhatsApp for Linux.*)" = " $1";
|
|
|
|
"((?:.*)WebCord.*)" = " $1";
|
|
|
|
"(Cartridges.*)" = " $1";
|
|
|
|
"([Ss]team.*)" = " $1";
|
|
|
|
"(Prism Launcher.*)" = " Minecraft ($1)";
|
|
|
|
"(.*)(?: *)PrusaSlicer-(.*)" = " $1 PrusaSlicer ($2)";
|
|
|
|
"(.*)(?: *)PrusaSlicer G-code Viewer-(.*)" = " $1 G-code Viewer ($2)";
|
|
|
|
"FreeCAD (.*)" = " FreeCAD $1";
|
|
|
|
"(.*) - Blender.* " = " $1";
|
|
|
|
"(Remmina Remote Desktop Client)" = " $1";
|
|
|
|
"(NoMachine|Nxplayer.bin)(?: *)(.*)" = " $1 $2";
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
mpris = {
|
2024-12-20 08:41:40 +00:00
|
|
|
"format" = "{player_icon}\n{status_icon}";
|
|
|
|
"tooltip-format" = "{player_icon} ({player}) {status_icon}\n{title}\n{album}\n{artist}";
|
2024-10-25 11:25:34 +01:00
|
|
|
"interval" = 1;
|
|
|
|
"dynamic-order" = [
|
|
|
|
"album"
|
|
|
|
"artist"
|
|
|
|
"title"
|
|
|
|
"position"
|
|
|
|
"length"
|
|
|
|
];
|
|
|
|
"player-icons" = {
|
2024-12-12 08:19:16 +00:00
|
|
|
"default" = "";
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
|
|
|
"status-icons" = {
|
|
|
|
"playing" = "";
|
|
|
|
"paused" = "";
|
|
|
|
"stopped" = "";
|
|
|
|
};
|
2024-10-31 05:04:30 +00:00
|
|
|
"ignored-players" = [ "firefox" ];
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
|
|
|
pulseaudio = {
|
|
|
|
scroll-step = 5;
|
2024-12-20 08:41:40 +00:00
|
|
|
format = "{format_source}\n{icon}";
|
|
|
|
# format-muted = "{format_source} {icon}";
|
2024-12-12 08:19:16 +00:00
|
|
|
format-source = "";
|
|
|
|
format-source-muted = "";
|
2024-10-25 11:25:34 +01:00
|
|
|
format-icons = {
|
2024-12-12 08:19:16 +00:00
|
|
|
car = "";
|
2024-10-25 11:25:34 +01:00
|
|
|
default = [
|
2024-12-12 08:19:16 +00:00
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
2024-10-25 11:25:34 +01:00
|
|
|
];
|
2024-12-20 08:41:40 +00:00
|
|
|
default-muted = "";
|
2024-12-12 08:19:16 +00:00
|
|
|
hands-free = "";
|
|
|
|
headset = "";
|
|
|
|
phone = "";
|
|
|
|
portable = "";
|
|
|
|
headphone = "";
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
2024-12-20 08:41:40 +00:00
|
|
|
tooltip = true;
|
|
|
|
tooltip-format = "{desc} ({volume}%)";
|
2024-10-25 11:25:34 +01:00
|
|
|
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
|
2024-12-20 08:41:40 +00:00
|
|
|
on-click-right = "${config.services.avizo.package}/bin/volumectl %";
|
|
|
|
on-scroll-up = "${config.services.avizo.package}/bin/volumectl -u + 5";
|
|
|
|
on-scroll-down = "${config.services.avizo.package}/bin/volumectl -u - 5";
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
|
|
|
network = {
|
|
|
|
format-icons = [
|
2024-12-12 08:19:16 +00:00
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
2024-10-25 11:25:34 +01:00
|
|
|
];
|
|
|
|
format-wifi = "{icon}";
|
2024-10-30 07:46:58 +00:00
|
|
|
format-ethernet = "";
|
2024-12-12 08:19:16 +00:00
|
|
|
format-linked = "";
|
|
|
|
format-disconnected = "";
|
2024-10-25 11:25:34 +01:00
|
|
|
tooltip-format = "{essid} ({signalStrength}%)";
|
2024-12-05 14:18:25 +00:00
|
|
|
on-click = "${pkgs.networkmanagerapplet}/bin/nm-connection-editor";
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
|
|
|
bluetooth = {
|
|
|
|
format = "";
|
|
|
|
format-disabled = "";
|
|
|
|
format-off = "";
|
|
|
|
format-on = "";
|
|
|
|
format-connected = "";
|
|
|
|
tooltip-format = "{status} | {device_alias}";
|
2024-12-05 13:51:47 +00:00
|
|
|
on-click = "${pkgs.overskride}/bin/overskride";
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
2024-11-11 16:09:14 +00:00
|
|
|
"clock#calendar" =
|
|
|
|
let
|
|
|
|
size = "${toString config.stylix.fonts.sizes.popups}pt";
|
|
|
|
in
|
|
|
|
{
|
2024-12-20 08:41:40 +00:00
|
|
|
format = "";
|
2024-11-11 16:09:14 +00:00
|
|
|
tooltip-format = "<span size='${size}'>{calendar}</span>";
|
|
|
|
calendar = {
|
|
|
|
mode = "month";
|
|
|
|
weeks-pos = "left";
|
|
|
|
on-scroll = 1;
|
|
|
|
format =
|
|
|
|
let
|
|
|
|
scheme = config.lib.stylix.scheme.withHashtag;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
months = "<span color='${scheme.red}'><b>{}</b></span>";
|
|
|
|
weeks = "<span color='${scheme.cyan}'><i>W{}</i></span>";
|
|
|
|
weekdays = "<span color='${scheme.orange}'><u>{}</u></span>";
|
|
|
|
days = "<span color='${scheme.base05}'>{}</span>";
|
|
|
|
today = "<span color='${scheme.magenta}'><b><u>{}</u></b></span>";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
actions = {
|
|
|
|
on-scroll-up = "shift_up";
|
|
|
|
on-scroll-down = "shift_down";
|
|
|
|
};
|
2024-10-25 11:25:34 +01:00
|
|
|
};
|
2024-12-20 08:41:40 +00:00
|
|
|
clock = {
|
|
|
|
format = "{:%H\n%M}";
|
|
|
|
tooltip = false;
|
2024-11-21 11:24:39 +00:00
|
|
|
};
|
2024-10-25 11:25:34 +01:00
|
|
|
backlight = {
|
|
|
|
format = "{icon}";
|
|
|
|
tooltip-format = "{percent}%";
|
|
|
|
format-icons = [
|
2024-12-12 08:19:16 +00:00
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
2024-10-25 11:25:34 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
warning = 20;
|
|
|
|
critical = 10;
|
|
|
|
};
|
|
|
|
format = "{icon}";
|
|
|
|
format-time = "{H}:{m}";
|
2024-12-20 08:41:40 +00:00
|
|
|
format-charging = "";
|
2024-12-12 08:19:16 +00:00
|
|
|
format-plugged = "";
|
2024-12-20 08:41:40 +00:00
|
|
|
# format-warning = "{icon}{capacity}%";
|
|
|
|
# format-critical = "{icon}{capacity}% ({time})";
|
2024-10-25 11:25:34 +01:00
|
|
|
tooltip-format = "{capacity}% | {power}W | {time}";
|
|
|
|
format-icons = [
|
2024-12-12 08:19:16 +00:00
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
2024-10-25 11:25:34 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
"systemd-failed-units" = {
|
2024-12-20 08:41:40 +00:00
|
|
|
hide-on-ok = true;
|
|
|
|
format = "";
|
|
|
|
tooltip = true;
|
|
|
|
tooltip-format = "System failed:{nr_failed_system} User failed:{nr_failed_user}";
|
2024-10-25 11:25:34 +01:00
|
|
|
system = true;
|
|
|
|
user = true;
|
|
|
|
};
|
|
|
|
"custom/notification" =
|
|
|
|
let
|
|
|
|
makoctl = "${config.services.mako.package}/bin/makoctl";
|
|
|
|
jq = "${pkgs.jq}/bin/jq";
|
|
|
|
in
|
|
|
|
{
|
2024-12-12 08:19:16 +00:00
|
|
|
exec = "( ${makoctl} list | ${jq} -e '.data[] | length > 0' >/dev/null && echo '' ) || echo '' ";
|
2024-10-25 11:25:34 +01:00
|
|
|
format = "{}";
|
2024-12-20 08:41:40 +00:00
|
|
|
tooltip = false;
|
2024-10-25 11:25:34 +01:00
|
|
|
on-click = "${makoctl} dismiss -a";
|
|
|
|
interval = 3;
|
|
|
|
};
|
|
|
|
"custom/weather" =
|
|
|
|
let
|
|
|
|
date-format = "%Y-%m-%d";
|
2024-12-20 08:41:40 +00:00
|
|
|
custom-indicator = "{ICON}"; # "{temp_C}°C({FeelsLikeC}°C)";
|
2024-10-25 11:25:34 +01:00
|
|
|
in
|
|
|
|
{
|
2024-10-29 09:15:07 +00:00
|
|
|
format = "{}";
|
2024-10-25 11:25:34 +01:00
|
|
|
tooltip = true;
|
|
|
|
interval = 900; # Every 15 minutes
|
|
|
|
exec = ''${pkgs.wttrbar}/bin/wttrbar --location Didcot --date-format "${date-format}" --custom-indicator "${custom-indicator}"'';
|
|
|
|
return-type = "json";
|
|
|
|
};
|
|
|
|
tray = {
|
|
|
|
icon-size = 20;
|
|
|
|
show-passive-items = true;
|
|
|
|
spacing = 5;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
style =
|
|
|
|
let
|
|
|
|
scheme = config.lib.stylix.scheme.withHashtag;
|
2024-12-09 15:14:57 +00:00
|
|
|
opacity = config.stylix.opacity.desktop;
|
2024-10-25 11:25:34 +01:00
|
|
|
in
|
|
|
|
''
|
|
|
|
* {
|
|
|
|
all: unset;
|
|
|
|
font-family: ${config.stylix.fonts.monospace.name};
|
2024-12-20 08:41:40 +00:00
|
|
|
font-size: ${toString (config.stylix.fonts.sizes.desktop + 2)}px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
window {
|
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
window > box {
|
2024-12-16 17:37:49 +00:00
|
|
|
color: ${scheme.base05};
|
|
|
|
background: alpha(${scheme.base00}, ${toString opacity});
|
2024-12-20 08:50:05 +00:00
|
|
|
margin: 5px 0px 5px 6px;
|
2024-12-20 08:41:40 +00:00
|
|
|
padding: 2px;
|
2024-12-16 17:37:49 +00:00
|
|
|
border: 1px solid ${scheme.base04};
|
2024-12-19 07:16:12 +00:00
|
|
|
border-radius: 10px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tooltip {
|
2024-10-29 09:15:07 +00:00
|
|
|
background: ${scheme.base00};
|
2024-12-20 08:41:40 +00:00
|
|
|
border: 2px solid ${scheme.base0E};
|
2024-12-19 07:16:12 +00:00
|
|
|
border-radius: 10px;
|
2024-10-25 11:25:34 +01:00
|
|
|
box-shadow: none;
|
2024-12-20 08:41:40 +00:00
|
|
|
padding: 10px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tooltip label {
|
|
|
|
color: ${scheme.base05};
|
|
|
|
border: none;
|
|
|
|
padding: 5px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces,
|
|
|
|
#window,
|
|
|
|
#mpris,
|
2024-11-21 11:24:39 +00:00
|
|
|
#custom-notification,
|
2024-10-25 11:25:34 +01:00
|
|
|
#pulseaudio,
|
|
|
|
#network,
|
|
|
|
#bluetooth,
|
2024-11-21 11:24:39 +00:00
|
|
|
#clock,
|
2024-10-25 11:25:34 +01:00
|
|
|
#backlight,
|
|
|
|
#battery,
|
|
|
|
#custom-weather,
|
|
|
|
#tray {
|
|
|
|
margin: 0px;
|
2024-12-20 08:41:40 +00:00
|
|
|
padding: 2px 4px 2px 3px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
|
2024-12-20 08:41:40 +00:00
|
|
|
#workspaces {
|
|
|
|
background: ${scheme.base00};
|
|
|
|
border-radius: 5px;
|
|
|
|
margin: 3px 2px;
|
|
|
|
padding: 2px 3px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button {
|
2024-12-20 08:50:05 +00:00
|
|
|
padding: 2px 5px 2px 1px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
#workspaces button.empty {
|
|
|
|
color: ${scheme.base03};
|
|
|
|
}
|
|
|
|
#workspaces button.active {
|
2024-12-12 05:35:10 +00:00
|
|
|
color: ${scheme.base0E};
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
#workspaces button.urgent {
|
|
|
|
color: ${scheme.base09};
|
|
|
|
}
|
|
|
|
|
2024-10-25 15:20:10 +01:00
|
|
|
#mpris.paused {
|
|
|
|
color: ${scheme.base03};
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#custom-notification {
|
|
|
|
color: ${scheme.base08};
|
|
|
|
}
|
|
|
|
#pulseaudio {
|
|
|
|
color: ${scheme.base09};
|
|
|
|
}
|
|
|
|
#network {
|
|
|
|
color: ${scheme.base0A};
|
2024-12-20 08:41:40 +00:00
|
|
|
padding: 2px 6px 2px 1px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
#bluetooth {
|
|
|
|
color: ${scheme.base0B};
|
|
|
|
}
|
|
|
|
#clock.calendar {
|
|
|
|
color: ${scheme.base0C};
|
2024-12-20 08:41:40 +00:00
|
|
|
padding: 2px 4px 2px 2px;
|
2024-10-25 11:25:34 +01:00
|
|
|
}
|
|
|
|
#clock {
|
|
|
|
color: ${scheme.base0D};
|
2024-12-20 08:41:40 +00:00
|
|
|
padding: 2px 1px 2px 2px;
|
2024-11-21 11:24:39 +00:00
|
|
|
}
|
2024-10-25 11:25:34 +01:00
|
|
|
|
2024-12-20 08:41:40 +00:00
|
|
|
#backlight {
|
|
|
|
padding: 2px 6px 2px 0px;
|
|
|
|
}
|
2024-10-25 11:25:34 +01:00
|
|
|
#battery.warning {
|
|
|
|
color: ${scheme.base09};
|
|
|
|
}
|
|
|
|
#battery.critical {
|
|
|
|
color: ${scheme.base08};
|
|
|
|
}
|
|
|
|
#battery.charging,
|
|
|
|
#battery.plugged {
|
|
|
|
color: ${scheme.base0B};
|
|
|
|
}
|
|
|
|
|
2024-12-20 08:41:40 +00:00
|
|
|
#systemd-failed-units {
|
|
|
|
padding: 2px 5px 2px 0px;
|
|
|
|
}
|
2024-10-25 11:25:34 +01:00
|
|
|
#systemd-failed-units.ok {
|
|
|
|
color: ${scheme.base0B}
|
|
|
|
}
|
|
|
|
#systemd-failed-units.degraded {
|
|
|
|
color: ${scheme.base08}
|
|
|
|
}
|
2024-12-20 08:41:40 +00:00
|
|
|
|
|
|
|
#custom-weather,
|
|
|
|
#tray {
|
|
|
|
padding: 2px 2px 2px 3px;
|
|
|
|
}
|
2024-10-25 11:25:34 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|