fighting with wpaperd and swaylock-plugin

This commit is contained in:
Matt Nish-Lapidus 2025-07-04 01:12:55 -04:00
parent 0a990d8308
commit cfb2e9209e
9 changed files with 68 additions and 46 deletions

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}:
{ config, pkgs, ... }:
with pkgs.lib.nix-rice;
let
strPalette = palette.toRGBHex pkgs.rice.colorPalette;
@ -34,7 +30,7 @@ in
"xwayland-satellite.service"
];
}
{ command = [ "wpaperd" "--daemon" ]; }
{ command = [ "${pkgs.wpaperd}/bin/wpaperd" "--daemon" ]; }
{ command = [ "${pkgs.filen-desktop}/bin/filen-desktop" ]; }
# { command = [ "/home/emenel/.local/bin/niri-delayed-launch-at-startup" ]; }
];

View file

@ -1,4 +1,8 @@
{ pkgs, ... }:
with pkgs.lib.nix-rice;
let
strPalette = palette.toRgbShortHex pkgs.rice.colorPalette;
in
{
services.swayidle = {
enable = true;
@ -7,12 +11,8 @@
events = [
{
event = "lock";
command = "/run/current-system/sw/bin/pidof swaylock || ${pkgs.swaylock}/bin/swaylock";
command = "${pkgs.swaylock-plugin}/bin/swaylock";
}
# {
# event = "before-sleep";
# command = "/home/emenel/.local/bin/session-lock";
# }
{
event = "after-resume";
command = "/home/emenel/.local/bin/on-unlock";
@ -59,16 +59,19 @@
};
programs.swaylock = {
enable = true;
package = pkgs.swaylock-plugin;
settings = {
color = "000000";
font-size = 32;
indicator-idle-visible = true;
indicator-radius = 150;
line-color = "cccccc";
indicator-radius = 350;
line-color = strPalette.normal.magenta;
show-failed-attempts = true;
grace = "10sec";
ignore-empty-password = true;
command = "${pkgs.wpaperd}/bin/wpaperd";
};
};
}