2024-01-30 14:21:50 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-11-09 11:42:12 +00:00
|
|
|
systemd.user.targets.tray.Unit = {
|
|
|
|
Description = "Home Manager System Tray";
|
2024-01-30 14:21:50 +00:00
|
|
|
Requires = ["graphical-session-pre.target"];
|
2023-11-09 11:42:12 +00:00
|
|
|
};
|
2023-07-10 11:24:42 +01:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
2023-10-17 08:15:52 +01:00
|
|
|
style = ./style.css;
|
2023-10-13 15:00:40 +01:00
|
|
|
systemd = {
|
|
|
|
enable = true;
|
|
|
|
target = "hyprland-session.target";
|
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
settings.main = {
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
2023-11-04 12:00:40 +00:00
|
|
|
# Layout
|
2024-01-30 14:21:50 +00:00
|
|
|
"modules-left" = ["hyprland/window" "mpris"];
|
|
|
|
"modules-center" = ["hyprland/workspaces"];
|
2023-12-18 09:57:27 +00:00
|
|
|
"modules-right" = [
|
2024-01-03 19:18:40 +00:00
|
|
|
"custom/notification"
|
2024-01-23 19:49:29 +00:00
|
|
|
"pulseaudio"
|
2024-01-22 11:59:49 +00:00
|
|
|
"clock"
|
2023-12-18 09:57:27 +00:00
|
|
|
"custom/separator"
|
2024-01-22 14:34:40 +00:00
|
|
|
"backlight"
|
2024-01-22 07:56:40 +00:00
|
|
|
"battery"
|
2023-12-18 09:57:27 +00:00
|
|
|
"tray"
|
|
|
|
];
|
2023-11-04 12:00:40 +00:00
|
|
|
# Module config
|
2024-01-30 14:21:50 +00:00
|
|
|
"custom/separator" = {format = "|";};
|
2024-01-22 07:45:22 +00:00
|
|
|
"hyprland/window" = {
|
2024-01-22 07:56:40 +00:00
|
|
|
"format" = "{title}";
|
2024-01-22 07:45:22 +00:00
|
|
|
# TODO workspace rewrites
|
|
|
|
"rewrite" = {
|
|
|
|
"(.*) - GNU Emacs at (.*)" = " $1 [$2]";
|
2024-01-30 16:10:12 +00:00
|
|
|
"Alacritty" = " ";
|
2024-01-23 13:29:32 +00:00
|
|
|
"Nyxt - (.*)" = " $1";
|
2024-02-01 06:55:16 +00:00
|
|
|
"(.*) - qutebrowser" = " $1";
|
2024-01-22 07:45:22 +00:00
|
|
|
"(.*) — Mozilla Firefox" = " $1";
|
2024-01-29 15:37:48 +00:00
|
|
|
"(.*) - Chromium" = " $1";
|
2024-01-26 19:56:43 +00:00
|
|
|
".*WebCord (.*)" = " $1";
|
2024-01-30 09:26:11 +00:00
|
|
|
"[Ss]team" = " ";
|
2024-01-28 09:16:09 +00:00
|
|
|
"(.*) - mpv" = " $1";
|
2024-02-02 11:25:49 +00:00
|
|
|
"Microsoft Teams(?: classic)?(?: - )?(.*)(?: \| Microsoft Teams)?" = " $1";
|
2024-01-22 07:45:22 +00:00
|
|
|
};
|
|
|
|
"separate-outputs" = true;
|
|
|
|
};
|
2023-11-04 12:00:40 +00:00
|
|
|
"hyprland/workspaces" = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
2024-01-17 06:05:35 +00:00
|
|
|
default = " ";
|
2024-01-22 07:45:22 +00:00
|
|
|
active = " ";
|
|
|
|
urgent = " ";
|
2023-12-20 10:06:32 +00:00
|
|
|
};
|
2024-01-13 17:00:15 +00:00
|
|
|
show-special = false;
|
2023-11-14 06:55:10 +00:00
|
|
|
sort-by = "id";
|
2024-01-23 11:54:06 +00:00
|
|
|
persistent-workspaces = {
|
2024-01-30 14:21:50 +00:00
|
|
|
"1" = [];
|
|
|
|
"2" = [];
|
|
|
|
"3" = [];
|
|
|
|
"4" = [];
|
|
|
|
"5" = [];
|
|
|
|
"6" = [];
|
2024-01-23 11:54:06 +00:00
|
|
|
};
|
2023-11-12 13:24:09 +00:00
|
|
|
};
|
2023-11-04 12:00:40 +00:00
|
|
|
mpris = {
|
2024-01-22 07:56:40 +00:00
|
|
|
"format" = "> {player_icon} {player}";
|
2024-01-17 06:18:29 +00:00
|
|
|
"tooltip-format" = "{player_icon} ({player}) {dynamic}";
|
2023-11-04 12:00:40 +00:00
|
|
|
"interval" = 1;
|
2024-01-30 14:21:50 +00:00
|
|
|
"dynamic-order" = ["album" "artist" "title" "position" "length"];
|
2023-11-04 12:00:40 +00:00
|
|
|
"player-icons" = {
|
2024-01-17 06:05:35 +00:00
|
|
|
"default" = " ";
|
|
|
|
"emms" = " ";
|
2024-01-17 16:22:05 +00:00
|
|
|
"firefox" = " ";
|
|
|
|
"mpv" = " ";
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
"status-icons" = {
|
|
|
|
"playing" = "";
|
|
|
|
"paused" = "";
|
|
|
|
"stopped" = "";
|
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
"ignored-players" = [];
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
pulseaudio = {
|
|
|
|
scroll-step = 5;
|
2023-12-18 11:23:14 +00:00
|
|
|
format = "{format_source} {icon} {volume}%";
|
|
|
|
format-muted = "{format_source} ";
|
2024-01-22 07:56:40 +00:00
|
|
|
format-source = "";
|
2023-11-05 07:26:32 +00:00
|
|
|
format-source-muted = "";
|
2023-11-04 12:00:40 +00:00
|
|
|
format-icons = {
|
2023-11-05 07:26:32 +00:00
|
|
|
car = "";
|
2024-01-30 14:21:50 +00:00
|
|
|
default = ["" "" ""];
|
2023-11-04 12:00:40 +00:00
|
|
|
hands-free = "";
|
|
|
|
headset = "";
|
|
|
|
phone = "";
|
|
|
|
portable = "";
|
2023-11-05 07:26:32 +00:00
|
|
|
headphone = "";
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
on-click = "pavucontrol";
|
2023-11-05 07:26:32 +00:00
|
|
|
on-click-middle = "volumectl -m %";
|
|
|
|
on-click-right = "volumectl %";
|
|
|
|
on-scroll-up = "volumectl -u + 5";
|
|
|
|
on-scroll-down = "volumectl -u - 5";
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
disk = {
|
2023-11-13 11:15:54 +00:00
|
|
|
format = " {percentage_used}%";
|
2023-11-04 12:00:40 +00:00
|
|
|
path = config.home.homeDirectory;
|
|
|
|
};
|
|
|
|
cpu = {
|
2023-11-13 11:15:54 +00:00
|
|
|
format = " {usage}%";
|
2023-11-04 12:00:40 +00:00
|
|
|
tooltip = false;
|
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
memory = {format = " {}%";};
|
2023-11-04 12:00:40 +00:00
|
|
|
temperature = {
|
|
|
|
critical-threshold = 80;
|
2023-11-13 11:15:54 +00:00
|
|
|
format = "{icon} {temperatureC}°C";
|
2024-01-30 14:21:50 +00:00
|
|
|
format-icons = ["" "" ""];
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
clock = {
|
2024-01-23 19:49:29 +00:00
|
|
|
format = "{: %Y-%m-%d %R}";
|
|
|
|
format-alt = "{: %R}";
|
2023-11-04 12:00:40 +00:00
|
|
|
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
|
|
|
calendar = {
|
|
|
|
mode = "month";
|
|
|
|
mode-mon-col = 3;
|
|
|
|
weeks-pos = "left";
|
|
|
|
on-scroll = 1;
|
|
|
|
on-click-right = "mode";
|
|
|
|
format = {
|
|
|
|
months = "<span color='#ffead3'><b>{}</b></span>";
|
|
|
|
days = "<span color='#ecc6d9'><b>{}</b></span>";
|
|
|
|
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
|
|
|
|
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
|
|
|
|
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
actions = {
|
|
|
|
on-click-right = "mode";
|
|
|
|
on-scroll-up = "shift_up";
|
|
|
|
on-scroll-down = "shift_down";
|
|
|
|
};
|
|
|
|
};
|
2023-11-13 11:15:54 +00:00
|
|
|
backlight = {
|
2024-01-22 14:34:40 +00:00
|
|
|
format = "{icon} ";
|
2023-11-13 11:15:54 +00:00
|
|
|
tooltip-format = "{percent}%";
|
2024-01-30 14:21:50 +00:00
|
|
|
format-icons = ["" "" "" "" "" "" "" "" ""];
|
2023-11-13 11:15:54 +00:00
|
|
|
};
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
warning = 30;
|
|
|
|
critical = 15;
|
|
|
|
};
|
2024-01-22 14:34:40 +00:00
|
|
|
format = "{icon} ";
|
|
|
|
format-charging = " ";
|
|
|
|
format-plugged = " ";
|
|
|
|
tooltip-format = "{capacity}% {time}";
|
2024-01-30 14:21:50 +00:00
|
|
|
format-icons = ["" "" "" "" "" "" "" "" "" "" ""];
|
2023-11-13 11:15:54 +00:00
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
"custom/notification" = let
|
|
|
|
swaync = pkgs.swaynotificationcenter;
|
2024-01-29 14:14:48 +00:00
|
|
|
in {
|
2024-01-03 19:18:40 +00:00
|
|
|
"tooltip" = false;
|
2024-01-22 11:58:27 +00:00
|
|
|
"format" = "{icon}{}";
|
2024-01-03 19:18:40 +00:00
|
|
|
"format-icons" = {
|
|
|
|
"notification" = " ";
|
|
|
|
"none" = " ";
|
|
|
|
"dnd-notification" = " ";
|
|
|
|
"dnd-none" = " ";
|
|
|
|
"inhibited-notification" = " ";
|
|
|
|
"inhibited-none" = " ";
|
|
|
|
"dnd-inhibited-notification" = " ";
|
|
|
|
"dnd-inhibited-none" = " ";
|
|
|
|
};
|
|
|
|
"return-type" = "json";
|
2024-01-29 14:14:48 +00:00
|
|
|
"exec-if" = "which ${swaync}/bin/swaync-client";
|
|
|
|
"exec" = "${swaync}/bin/swaync-client -swb";
|
|
|
|
"on-click" = "${swaync}/bin/swaync-client -t -sw";
|
|
|
|
"on-click-right" = "${swaync}/bin/swaync-client -d -sw";
|
2024-01-03 19:18:40 +00:00
|
|
|
"escape" = true;
|
|
|
|
};
|
2023-11-04 12:00:40 +00:00
|
|
|
tray = {
|
|
|
|
icon-size = 16;
|
|
|
|
show-passive-items = true;
|
|
|
|
spacing = 5;
|
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
};
|
2023-07-10 11:24:42 +01:00
|
|
|
};
|
|
|
|
}
|