summaryrefslogtreecommitdiff
path: root/home/wayland/modules/sway/swaylock.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-05 11:46:17 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-05 12:51:26 +0530
commit1368cff428c3eb2112afeb53f4756bfdddaff363 (patch)
tree85e1a933e8c7750348e8f31448c25155ae41777a /home/wayland/modules/sway/swaylock.nix
parente038eb08741a003dde903ffc5c12fa40cfcf1bf4 (diff)
home/wayland/sway: add support for wallpapers
Diffstat (limited to 'home/wayland/modules/sway/swaylock.nix')
-rw-r--r--home/wayland/modules/sway/swaylock.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/home/wayland/modules/sway/swaylock.nix b/home/wayland/modules/sway/swaylock.nix
index dbac0db..1d5a58f 100644
--- a/home/wayland/modules/sway/swaylock.nix
+++ b/home/wayland/modules/sway/swaylock.nix
@@ -1,4 +1,6 @@
-{ pkgs, ... }: {
+{ config, pkgs, ... }: let
+ background = "${config.xdg.dataHome}/wayland/lockscreen";
+in {
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
@@ -9,6 +11,7 @@
color = "404040";
timestr = "%H:%M";
datestr = "%a,%e %b";
+ image = background;
indicator-idle-visible = true;
};
};