2023-11-15 08:09:16 +00:00
|
|
|
{ config, pkgs, ... }: {
|
2023-10-07 10:23:25 +01:00
|
|
|
home.packages = with pkgs; [ networkmanagerapplet bluez ];
|
2023-11-09 11:42:12 +00:00
|
|
|
systemd.user.targets.tray.Unit = {
|
|
|
|
Description = "Home Manager System Tray";
|
|
|
|
Requires = [ "graphical-session-pre.target" ];
|
|
|
|
};
|
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
|
2023-11-13 20:13:20 +00:00
|
|
|
"modules-left" = [
|
|
|
|
"hyprland/workspaces"
|
|
|
|
"custom/separator"
|
|
|
|
"hyprland/window"
|
|
|
|
"custom/separator"
|
|
|
|
"mpris"
|
|
|
|
];
|
2023-11-12 13:24:09 +00:00
|
|
|
"modules-center" = [ ];
|
2023-12-18 09:57:27 +00:00
|
|
|
"modules-right" = [
|
|
|
|
"battery"
|
|
|
|
"pulseaudio"
|
|
|
|
"disk"
|
|
|
|
"cpu"
|
|
|
|
"memory"
|
|
|
|
"clock"
|
|
|
|
"custom/separator"
|
|
|
|
"tray"
|
|
|
|
];
|
2023-11-04 12:00:40 +00:00
|
|
|
# Module config
|
2023-11-13 20:13:20 +00:00
|
|
|
"custom/separator" = { format = "|"; };
|
2023-11-04 12:00:40 +00:00
|
|
|
"hyprland/workspaces" = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
2023-11-10 11:49:12 +00:00
|
|
|
"1" = "";
|
|
|
|
"2" = "";
|
|
|
|
"3" = "";
|
|
|
|
"4" = "";
|
|
|
|
"5" = "";
|
|
|
|
"6" = "";
|
2023-11-12 13:24:09 +00:00
|
|
|
"emacs" = "";
|
2023-12-01 06:52:47 +00:00
|
|
|
"web" = "";
|
2023-12-05 12:47:30 +00:00
|
|
|
"files" = "";
|
2023-11-12 13:24:09 +00:00
|
|
|
"steam" = "";
|
2023-11-23 11:50:41 +00:00
|
|
|
"apps" = "";
|
2023-12-17 18:32:56 +00:00
|
|
|
"btm" = "";
|
|
|
|
"term" = "";
|
2023-11-21 07:09:01 +00:00
|
|
|
"remote" = "";
|
2023-11-10 11:49:12 +00:00
|
|
|
default = "";
|
2023-11-23 11:50:41 +00:00
|
|
|
special = "";
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
show-special = true;
|
2023-11-14 06:55:10 +00:00
|
|
|
sort-by = "id";
|
2023-11-12 13:24:09 +00:00
|
|
|
};
|
|
|
|
"hyprland/window" = {
|
|
|
|
rewrite = {
|
2023-12-17 18:32:56 +00:00
|
|
|
"Alacritty" = "";
|
2023-11-16 06:44:42 +00:00
|
|
|
"(.*) - GNU Emacs(.*)" = " $1";
|
2023-12-17 18:32:56 +00:00
|
|
|
"Nyxt - (.*)" = " $1";
|
2023-12-01 06:52:47 +00:00
|
|
|
"(.*) — Mozilla Firefox" = " $1";
|
2023-11-21 17:19:45 +00:00
|
|
|
"(.*) - Chromium" = " $1";
|
2023-12-05 12:47:30 +00:00
|
|
|
"(.*) - Thunar" = " $1";
|
|
|
|
"(.*) - LibreOffice Writer" = " $1";
|
|
|
|
"(.*) - LibreOffice Calc" = " $1";
|
|
|
|
"(.*) - LibreOffice Impress" = " $1";
|
|
|
|
"(.*) - LibreOffice Base" = " $1";
|
|
|
|
"(.*) - LibreOffice Draw" = " $1";
|
|
|
|
"(.*) - LibreOffice Math" = " $1";
|
2023-12-17 18:32:56 +00:00
|
|
|
"NoMachine - (.*)" = " $1";
|
2023-11-21 17:19:45 +00:00
|
|
|
"Microsoft Teams - (.*)" = " $1";
|
|
|
|
"Microsoft Teams classic" = "";
|
2023-11-22 13:24:37 +00:00
|
|
|
"Microsoft 365 - (.*)" = " $1";
|
2023-12-05 12:47:30 +00:00
|
|
|
"Signal" = "";
|
2023-12-17 09:54:59 +00:00
|
|
|
"whatsapp-for-linux" = "";
|
2023-12-15 13:13:01 +00:00
|
|
|
"(.*)WebCord - (.*)" = "$1 $2";
|
2023-12-18 09:57:27 +00:00
|
|
|
"seahorse" = " Passwords and Keys";
|
2023-11-12 13:24:09 +00:00
|
|
|
};
|
|
|
|
separate-outputs = true;
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
mpris = {
|
2023-11-12 13:24:09 +00:00
|
|
|
"format" = "{player_icon} <b>{title}</b>";
|
|
|
|
"tooltip-format" = "{player_icon} ({player}) {dynamic}";
|
2023-11-04 12:00:40 +00:00
|
|
|
"interval" = 1;
|
|
|
|
"player-icons" = {
|
|
|
|
"default" = "";
|
2023-11-27 15:35:33 +00:00
|
|
|
"emms" = "";
|
2023-11-04 12:00:40 +00:00
|
|
|
};
|
|
|
|
"status-icons" = {
|
|
|
|
"playing" = "";
|
|
|
|
"paused" = "";
|
|
|
|
"stopped" = "";
|
|
|
|
};
|
2023-11-27 15:35:33 +00:00
|
|
|
"ignored-players" = [ "firefox" "chromium" "mpv" ];
|
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} ";
|
|
|
|
format-source = " {volume}%";
|
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 = "";
|
|
|
|
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;
|
|
|
|
};
|
2023-11-13 11:15:54 +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";
|
2023-11-04 12:00:40 +00:00
|
|
|
format-icons = [ "" "" "" ];
|
|
|
|
};
|
|
|
|
clock = {
|
2023-11-13 11:43:51 +00:00
|
|
|
format = "{: %Y-%m-%d %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 = {
|
|
|
|
format = "{icon}";
|
|
|
|
tooltip-format = "{percent}%";
|
|
|
|
format-icons = [ "" "" "" "" "" "" "" "" "" ];
|
|
|
|
};
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
warning = 30;
|
|
|
|
critical = 15;
|
|
|
|
};
|
2023-12-17 17:42:52 +00:00
|
|
|
format = "{icon} {capacity}%";
|
2023-11-13 11:15:54 +00:00
|
|
|
format-charging = "";
|
|
|
|
format-plugged = "";
|
2023-12-17 17:42:52 +00:00
|
|
|
tooltip-format = "{time}";
|
2023-11-13 11:15:54 +00:00
|
|
|
format-icons = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
}
|