diff options
author | Minijackson <minijackson@riseup.net> | 2023-12-05 19:03:27 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-12-05 19:03:27 +0100 |
commit | e1ff251ad894196816a1aa5cd5fcf584181804f6 (patch) | |
tree | bf439e9371ee22106727d847e8b6bacd392a3bae /usecases | |
parent | c5fce269f729fdd305dbd964dcfe60a225732e99 (diff) | |
download | nixos-config-reborn-e1ff251ad894196816a1aa5cd5fcf584181804f6.tar.gz nixos-config-reborn-e1ff251ad894196816a1aa5cd5fcf584181804f6.zip |
sway: use swaylock home-manager module
Diffstat (limited to 'usecases')
-rw-r--r-- | usecases/desktop/graphical/sway.nix | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/usecases/desktop/graphical/sway.nix b/usecases/desktop/graphical/sway.nix index d41ddf6..1e1721e 100644 --- a/usecases/desktop/graphical/sway.nix +++ b/usecases/desktop/graphical/sway.nix | |||
@@ -215,41 +215,45 @@ _inputs: { | |||
215 | }; | 215 | }; |
216 | }; | 216 | }; |
217 | 217 | ||
218 | # TODO: upstream a PR to beautify this | 218 | programs.swaylock = { |
219 | xdg.configFile."swaylock/config".text = with osConfig.theme.colors; '' | 219 | enable = true; |
220 | ignore-empty-password | 220 | settings = with osConfig.theme.colors; { |
221 | image=${../../../res/wallpapers/wallpaper-1920x1080-install-gentoo.png} | 221 | ignore-empty-password = true; |
222 | show-failed-attempts = true; | ||
223 | |||
224 | image = "${../../../res/wallpapers/wallpaper-1920x1080-install-gentoo.png}"; | ||
222 | 225 | ||
223 | font=monospace | 226 | font = "monospace"; |
224 | 227 | ||
225 | inside-color=${lib.removePrefix "#" dominant}dd | 228 | inside-color = "${lib.removePrefix "#" dominant}dd"; |
226 | inside-clear-color=${lib.removePrefix "#" neutralOrange}dd | 229 | inside-clear-color = "${lib.removePrefix "#" neutralOrange}dd"; |
227 | inside-ver-color=${lib.removePrefix "#" neutralOrange}dd | 230 | inside-ver-color = "${lib.removePrefix "#" neutralOrange}dd"; |
228 | inside-wrong-color=${lib.removePrefix "#" neutralRed}dd | 231 | inside-wrong-color = "${lib.removePrefix "#" neutralRed}dd"; |
229 | 232 | ||
230 | key-hl-color=${lib.removePrefix "#" brightGreen}ee | 233 | key-hl-color = "${lib.removePrefix "#" brightGreen}ee"; |
231 | bs-hl-color=${lib.removePrefix "#" neutralRed}ee | 234 | bs-hl-color = "${lib.removePrefix "#" neutralRed}ee"; |
232 | 235 | ||
233 | line-color=${lib.removePrefix "#" background}ee | 236 | line-color = "${lib.removePrefix "#" background}ee"; |
234 | line-clear-color=${lib.removePrefix "#" background}ee | 237 | line-clear-color = "${lib.removePrefix "#" background}ee"; |
235 | line-ver-color=${lib.removePrefix "#" background}ee | 238 | line-ver-color = "${lib.removePrefix "#" background}ee"; |
236 | line-wrong-color=${lib.removePrefix "#" background}ee | 239 | line-wrong-color = "${lib.removePrefix "#" background}ee"; |
237 | 240 | ||
238 | ring-color=${lib.removePrefix "#" dominant}ee | 241 | ring-color = "${lib.removePrefix "#" dominant}ee"; |
239 | ring-clear-color=${lib.removePrefix "#" brightOrange}ee | 242 | ring-clear-color = "${lib.removePrefix "#" brightOrange}ee"; |
240 | ring-ver-color=${lib.removePrefix "#" brightOrange}ee | 243 | ring-ver-color = "${lib.removePrefix "#" brightOrange}ee"; |
241 | ring-wrong-color=${lib.removePrefix "#" brightRed}ee | 244 | ring-wrong-color = "${lib.removePrefix "#" brightRed}ee"; |
242 | 245 | ||
243 | separator-color=${lib.removePrefix "#" background}ee | 246 | separator-color = "${lib.removePrefix "#" background}ee"; |
244 | 247 | ||
245 | text-color=${lib.removePrefix "#" background}ff | 248 | text-color = "${lib.removePrefix "#" background}ff"; |
246 | text-clear-color=${lib.removePrefix "#" background}ff | 249 | text-clear-color = "${lib.removePrefix "#" background}ff"; |
247 | text-ver-color=${lib.removePrefix "#" background}ff | 250 | text-ver-color = "${lib.removePrefix "#" background}ff"; |
248 | text-wrong-color=${lib.removePrefix "#" background}ff | 251 | text-wrong-color = "${lib.removePrefix "#" background}ff"; |
249 | 252 | ||
250 | indicator-radius=75 | 253 | indicator-radius = 75; |
251 | indicator-thickness=10 | 254 | indicator-thickness = 10; |
252 | ''; | 255 | }; |
256 | }; | ||
253 | 257 | ||
254 | xsession.importedVariables = [ | 258 | xsession.importedVariables = [ |
255 | "DBUS_SESSION_BUS_ADDRESS" | 259 | "DBUS_SESSION_BUS_ADDRESS" |