From 66b8dedca62684048ea91ffe0a3ef126f7cc536b Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Thu, 8 Feb 2024 15:19:15 +0100 Subject: [PATCH] Swaylock: fix arguments --- custom/way-lockscreen/default.nix | 35 +++++++++++++++++-------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/custom/way-lockscreen/default.nix b/custom/way-lockscreen/default.nix index 347aab9..bbabcaf 100644 --- a/custom/way-lockscreen/default.nix +++ b/custom/way-lockscreen/default.nix @@ -7,6 +7,7 @@ package = roboto; name = "Roboto"; } +, wallpaper ? ../../wallpapers/background.jpg , palette ? rice.palette.palette { } , ... }: @@ -14,22 +15,24 @@ let strPalette = lib.nix-rice.palette.toRgbaShortHex palette; in writeScriptBin "way-lockscreen" '' # Using font package ${font.package} ${swaylock}/bin/swaylock \ - --color="${strPalette.primary.background}" - --inside-ver-color="${strPalette.normal.green}" \ - --inside-wrong-color="${strPalette.normal.red}" \ - --inside-color="${strPalette.normal.black}" \ - --ring-ver-color="${strPalette.bright.green}" \ - --ring-wrong-color="${strPalette.bright.red}" \ - --ring-ver-color="${strPalette.bright.green}" \ - --ring-wrong-color="${strPalette.bright.red}" \ - --ring-color="${strPalette.bright.blue}" \ + --color "${strPalette.primary.background}" \ + --inside-ver-color "${strPalette.normal.green}" \ + --inside-wrong-color "${strPalette.normal.red}" \ + --inside-color "${strPalette.normal.black}" \ + --ring-ver-color "${strPalette.bright.green}" \ + --ring-wrong-color "${strPalette.bright.red}" \ + --ring-ver-color "${strPalette.bright.green}" \ + --ring-wrong-color "${strPalette.bright.red}" \ + --ring-color "${strPalette.bright.blue}" \ --line-uses-ring \ - --key-hl-color="${strPalette.bright.red}" \ - --bs-hl-color="${strPalette.bright.red}" \ - --separator-color="${strPalette.normal.black}" \ - --indicator-radius=120 \ - --indicator-thickness=15 \ - --font="${font.name}" \ - --font-size="${toString font.size}" + --key-hl-color "${strPalette.bright.red}" \ + --bs-hl-color "${strPalette.bright.red}" \ + --separator-color "${strPalette.normal.black}" \ + --font "${font.name}" \ + --font-size "${toString font.size}" \ + --image "${toString wallpaper}" \ + --scaling fit + # --indicator-radius 120 \ + # --indicator-thickness 15 \ ''