added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 236b8c2a6b
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,6 @@
{
imports = [
./gtklock
./swaylock
];
}

View file

@ -0,0 +1,31 @@
{
osConfig,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
inherit (osConfig) modules;
env = modules.usrEnv;
in {
config = mkIf env.programs.screenlock.gtklock.enable {
programs.gtklock = {
enable = true;
package = pkgs.gtklock;
config = {
modules = [
"${pkgs.gtklock-powerbar-module.outPath}/lib/gtklock/powerbar-module.so"
];
style = builtins.readFile (lib.compileSCSS pkgs {
name = "gtklock-dark";
path = ./styles/dark.scss;
});
};
extraConfig = {};
};
};
}

View file

@ -0,0 +1,40 @@
window {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
#clock-label {
margin-bottom: 30px;
font-size: 800%;
font-weight: bold;
color: white;
text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
#body {
margin-top: 50px;
}
#unlock-button {
all: unset;
color: transparent;
}
entry {
border-radius: 12px;
margin: 1px;
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}
#input-label {
color: transparent;
margin: -20rem;
}
#powerbar-box {
* {
border-radius: 12px;
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}
}
}

View file

@ -0,0 +1,55 @@
{
osConfig,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
inherit (osConfig) modules;
inherit (osConfig.modules.style.colorScheme) colors;
env = modules.usrEnv;
in {
config = mkIf env.programs.screenlock.swaylock.enable {
programs.swaylock = {
enable = true;
package = with pkgs; swaylock-effects;
settings = {
clock = true;
color = "${colors.base00}";
font = "Work Sans";
show-failed-attempts = false;
indicator = true;
indicator-radius = 200;
indicator-thickness = 20;
line-color = "${colors.base00}";
ring-color = "${colors.base04}";
inside-color = "${colors.base00}";
key-hl-color = "${colors.base0F}";
separator-color = "00000000";
text-color = "${colors.base05}";
text-caps-lock-color = "";
line-ver-color = "${colors.base0F}";
ring-ver-color = "${colors.base0F}";
inside-ver-color = "${colors.base00}";
text-ver-color = "${colors.base05}";
ring-wrong-color = "${colors.base08}";
text-wrong-color = "${colors.base08}";
inside-wrong-color = "${colors.base00}";
inside-clear-color = "${colors.base00}";
text-clear-color = "${colors.base05}";
ring-clear-color = "${colors.base0B}";
line-clear-color = "${colors.base00}";
line-wrong-color = "${colors.base00}";
bs-hl-color = "${colors.base08}";
line-uses-ring = false;
grace = 3;
grace-no-mouse = true;
grace-no-touch = true;
datestr = "%d/%m/%Y";
fade-in = "0.1";
ignore-empty-password = true;
};
};
};
}