Compare commits
No commits in common. "dc9c268c4d765239785c476985cac59fe564052e" and "3066bce807c7467af285e0d534ce61434e50c227" have entirely different histories.
dc9c268c4d
...
3066bce807
4 changed files with 7 additions and 59 deletions
|
|
@ -66,7 +66,7 @@
|
||||||
urgent.gradient = gradient-urgent;
|
urgent.gradient = gradient-urgent;
|
||||||
};
|
};
|
||||||
focus-ring = {
|
focus-ring = {
|
||||||
enable = false;
|
enable = true;
|
||||||
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,38 +18,8 @@
|
||||||
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,24 +1,6 @@
|
||||||
{ 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,17 +26,16 @@
|
||||||
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"
|
||||||
];
|
];
|
||||||
|
|
@ -50,6 +49,7 @@
|
||||||
"backlight"
|
"backlight"
|
||||||
"network"
|
"network"
|
||||||
"power-profiles-daemon"
|
"power-profiles-daemon"
|
||||||
|
"custom/swaync"
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -136,28 +136,24 @@
|
||||||
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} ${category-part} '${summary}' ${body-part}";
|
"${lib.getBin pkgs.libnotify}/bin/notify-send ${urgency-part} ${icon-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";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -291,7 +287,7 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
format = "{icon} {0} ";
|
format = "{0}{icon} ";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
notification = "";
|
notification = "";
|
||||||
none = "";
|
none = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue