swaylock: extract config from sway
This commit is contained in:
parent
f26b404d9d
commit
ce4a6bb501
|
@ -19,7 +19,7 @@ let
|
|||
'';
|
||||
in
|
||||
{
|
||||
imports = [ ./theme.nix ./mako.nix ];
|
||||
imports = [ ./theme.nix ./mako.nix ./swaylock.nix ];
|
||||
config = {
|
||||
programs.mako.enable = true;
|
||||
wayland.windowManager.sway =
|
||||
|
@ -382,24 +382,6 @@ in
|
|||
}
|
||||
];
|
||||
};
|
||||
xdg.configFile."swaylock/config".text = ''
|
||||
image=${theme.background}
|
||||
font=${font.interface}
|
||||
font-size=${toString font.size.medium}
|
||||
indicator-thickness=20
|
||||
color=${color.bg}
|
||||
inside-color=#FFFFFF00
|
||||
bs-hl-color=${color.normal.red}
|
||||
ring-color=${color.normal.green}
|
||||
key-hl-color=${accent.color}
|
||||
# divisor lines
|
||||
separator-color=#aabbcc00
|
||||
line-color=#aabbcc00
|
||||
line-clear-color=#aabbcc00
|
||||
line-caps-lock-color=#aabbcc00
|
||||
line-ver-color=#aabbcc00
|
||||
line-wrong-color=#aabbcc00
|
||||
'';
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
|
|
25
user/sway/swaylock.nix
Normal file
25
user/sway/swaylock.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (pkgs.uservars) key accent font theme;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
programs.swaylock.settings = {
|
||||
image = theme.background;
|
||||
font = font.interface;
|
||||
font-size = font.size.medium;
|
||||
indicator-thickness = 20;
|
||||
color = color.bg;
|
||||
inside-color = "#FFFFFF00";
|
||||
bs-hl-color = color.normal.red;
|
||||
ring-color = color.normal.green;
|
||||
key-hl-color = accent.color;
|
||||
# divisor lines;
|
||||
separator-color = "#aabbcc00";
|
||||
line-color = "#aabbcc00";
|
||||
line-clear-color = "#aabbcc00";
|
||||
line-caps-lock-color = "#aabbcc00";
|
||||
line-ver-color = "#aabbcc00";
|
||||
line-wrong-color = "#aabbcc00";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue