Compare commits
4 commits
3066bce807
...
dc9c268c4d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc9c268c4d | ||
|
|
7eb0fbb69c | ||
|
|
4bd718ca04 | ||
|
|
de330e6334 |
4 changed files with 59 additions and 7 deletions
|
|
@ -66,7 +66,7 @@
|
||||||
urgent.gradient = gradient-urgent;
|
urgent.gradient = gradient-urgent;
|
||||||
};
|
};
|
||||||
focus-ring = {
|
focus-ring = {
|
||||||
enable = true;
|
enable = false;
|
||||||
active.gradient = gradient-active;
|
active.gradient = gradient-active;
|
||||||
inactive.gradient = gradient-inactive;
|
inactive.gradient = gradient-inactive;
|
||||||
urgent.gradient = gradient-urgent;
|
urgent.gradient = gradient-urgent;
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,38 @@
|
||||||
show-failed-attempts = true;
|
show-failed-attempts = true;
|
||||||
ignore-empty-password = true;
|
ignore-empty-password = true;
|
||||||
grace = 3.5;
|
grace = 3.5;
|
||||||
color = "000000";
|
|
||||||
indicator-thickness = 20;
|
indicator-thickness = 20;
|
||||||
|
|
||||||
|
# https://github.com/catppuccin/swaylock/blob/main/themes/mocha.conf
|
||||||
|
color = "1e1e2e";
|
||||||
|
bs-hl-color = "f5e0dc";
|
||||||
|
caps-lock-bs-hl-color = "f5e0dc";
|
||||||
|
caps-lock-key-hl-color = "a6e3a1";
|
||||||
|
inside-color = "00000000";
|
||||||
|
inside-clear-color = "00000000";
|
||||||
|
inside-caps-lock-color = "00000000";
|
||||||
|
inside-ver-color = "00000000";
|
||||||
|
inside-wrong-color = "00000000";
|
||||||
|
key-hl-color = "a6e3a1";
|
||||||
|
layout-bg-color = "00000000";
|
||||||
|
layout-border-color = "00000000";
|
||||||
|
layout-text-color = "cdd6f4";
|
||||||
|
line-color = "00000000";
|
||||||
|
line-clear-color = "00000000";
|
||||||
|
line-caps-lock-color = "00000000";
|
||||||
|
line-ver-color = "00000000";
|
||||||
|
line-wrong-color = "00000000";
|
||||||
|
ring-color = "b4befe";
|
||||||
|
ring-clear-color = "f5e0dc";
|
||||||
|
ring-caps-lock-color = "fab387";
|
||||||
|
ring-ver-color = "89b4fa";
|
||||||
|
ring-wrong-color = "eba0ac";
|
||||||
|
separator-color = "00000000";
|
||||||
|
text-color = "cdd6f4";
|
||||||
|
text-clear-color = "f5e0dc";
|
||||||
|
text-caps-lock-color = "fab387";
|
||||||
|
text-ver-color = "89b4fa";
|
||||||
|
text-wrong-color = "eba0ac";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,24 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.swaync = {
|
services.swaync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = { };
|
settings = {
|
||||||
|
"$schema" = "${pkgs.swaynotificationcenter}/etc/xdg/swaync/configSchema.json";
|
||||||
|
|
||||||
|
hide-on-clear = true;
|
||||||
|
|
||||||
|
positionX = "center";
|
||||||
|
fit-to-screen = false;
|
||||||
|
control-center-height = 750;
|
||||||
|
|
||||||
|
widgets = [
|
||||||
|
"mpris"
|
||||||
|
"volume"
|
||||||
|
"title"
|
||||||
|
"dnd"
|
||||||
|
"inhibitors"
|
||||||
|
"notifications"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,16 +26,17 @@
|
||||||
spacing = "8";
|
spacing = "8";
|
||||||
modules-left = [
|
modules-left = [
|
||||||
"niri/workspaces"
|
"niri/workspaces"
|
||||||
|
"tray"
|
||||||
"niri/window"
|
"niri/window"
|
||||||
];
|
];
|
||||||
modules-center = [
|
modules-center = [
|
||||||
"privacy"
|
"privacy"
|
||||||
"clock"
|
"clock"
|
||||||
|
"custom/swaync"
|
||||||
];
|
];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
#"image"
|
#"image"
|
||||||
"group/status-infos"
|
"group/status-infos"
|
||||||
"tray"
|
|
||||||
"group/system-tray"
|
"group/system-tray"
|
||||||
"group/group-power"
|
"group/group-power"
|
||||||
];
|
];
|
||||||
|
|
@ -49,7 +50,6 @@
|
||||||
"backlight"
|
"backlight"
|
||||||
"network"
|
"network"
|
||||||
"power-profiles-daemon"
|
"power-profiles-daemon"
|
||||||
"custom/swaync"
|
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -136,24 +136,28 @@
|
||||||
urgency ? null,
|
urgency ? null,
|
||||||
body ? null,
|
body ? null,
|
||||||
icon ? null,
|
icon ? null,
|
||||||
|
category ? null,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
body-part = if body != null then "'${body}'" else "";
|
body-part = if body != null then "'${body}'" else "";
|
||||||
urgency-part = if urgency != null then "--urgency ${urgency}" else "";
|
urgency-part = if urgency != null then "--urgency ${urgency}" else "";
|
||||||
icon-part = if icon != null then "--icon ${icon}" else "";
|
icon-part = if icon != null then "--icon ${icon}" else "";
|
||||||
|
category-part = if category != null then "--category ${category}" else "";
|
||||||
in
|
in
|
||||||
"${lib.getBin pkgs.libnotify}/bin/notify-send ${urgency-part} ${icon-part} '${summary}' ${body-part}";
|
"${lib.getBin pkgs.libnotify}/bin/notify-send ${urgency-part} ${icon-part} ${category-part} '${summary}' ${body-part}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
on-discharging-warning = mkNotifySendCommand {
|
on-discharging-warning = mkNotifySendCommand {
|
||||||
summary = "Low Battery";
|
summary = "Low Battery";
|
||||||
icon = "battery-caution";
|
icon = "battery-caution";
|
||||||
|
category = "device";
|
||||||
};
|
};
|
||||||
on-discharging-critical = mkNotifySendCommand {
|
on-discharging-critical = mkNotifySendCommand {
|
||||||
urgency = "critical";
|
urgency = "critical";
|
||||||
summary = "Very Low Battery";
|
summary = "Very Low Battery";
|
||||||
body = "Connect to power <i>now</i>!";
|
body = "Connect to power <i>now</i>!";
|
||||||
icon = "battery-low";
|
icon = "battery-low";
|
||||||
|
category = "device";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -287,7 +291,7 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
format = "{0}{icon} ";
|
format = "{icon} {0} ";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
notification = "";
|
notification = "";
|
||||||
none = "";
|
none = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue