about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/fcuny/configs/swaylock/config40
-rw-r--r--users/fcuny/desktop/sway/sway-idle.nix9
2 files changed, 11 insertions, 38 deletions
diff --git a/users/fcuny/configs/swaylock/config b/users/fcuny/configs/swaylock/config
index df3cfb0..9278902 100644
--- a/users/fcuny/configs/swaylock/config
+++ b/users/fcuny/configs/swaylock/config
@@ -1,36 +1,4 @@
-ignore-empty-password
-disable-caps-lock-text
-image=/home/loki/pictures/wallpapers/lock43.png
-font=Inter
-
-text-ver-color=00000000
-text-wrong-color=00000000
-text-clear-color=00000000
-inside-color=00000000
-inside-ver-color=00000000
-inside-wrong-color=00000000
-inside-clear-color=00000000
-inside-caps-lock-color=00000000
-ring-color=00000000
-ring-ver-color=00000000
-ring-wrong-color=00000000
-ring-clear-color=00000000
-line-color=00000000
-line-clear-color=00000000
-line-ver-color=00000000
-key-hl-color=00000000
-bs-hl-color=00000000
-caps-lock-bs-hl-color=00000000
-caps-lock-key-hl-color=00000000
-separator-color=00000000
-
-scaling=fill
-indicator
-clock
-timestr=%I:%M %p
-datestr=%A, %d %B
-indicator-x-position=250
-indicator-y-position=975
-indicator-radius=200
-font-size=100
-text-color=c0caf5
+color=010100
+daemonize
+show-keyboard-layout
+indicator-caps-lock
diff --git a/users/fcuny/desktop/sway/sway-idle.nix b/users/fcuny/desktop/sway/sway-idle.nix
index 8583a3b..24fde8c 100644
--- a/users/fcuny/desktop/sway/sway-idle.nix
+++ b/users/fcuny/desktop/sway/sway-idle.nix
@@ -1,6 +1,11 @@
 { pkgs, config, ... }:
 
 {
+
+  xdg.configFile."swaylock/config" = {
+    source = ../../configs/swaylock/config;
+  };
+
   # https://github.com/nix-community/home-manager/pull/2610
   # won't be needed for ever
   systemd.user.services.swayidle = {
@@ -11,10 +16,10 @@
       Environment = "PATH=${pkgs.bash}/bin:${config.wayland.windowManager.sway.package}/bin";
       ExecStart = ''
         ${pkgs.swayidle}/bin/swayidle -w \
-            timeout 300 "${pkgs.swaylock}/bin/swaylock -f -c FFFFEA" \
+            timeout 300 "${pkgs.swaylock}/bin/swaylock" \
             timeout 300 'swaymsg "output * dpms off"' \
                 resume 'swaymsg "output * dpms on"' \
-            before-sleep "${pkgs.swaylock}/bin/swaylock -f -c FFFFEA"
+            before-sleep "${pkgs.swaylock}/bin/swaylock"
       '';
       Restart = "on-failure";
     };