Skip to content

Commit

Permalink
feat(swaylock): add nix flake image to swaylock screen
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle committed Jul 16, 2024
1 parent 9605347 commit 3690255
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions home/clonerer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ let
path = "${hackwerkReposPath}";
origin = "[email protected]:sfz.aalen/hackwerk/hackwerk_homepage.git";
}
{
name = "eventserver";
path = "${hackwerkReposPath}";
origin = "[email protected]:sfz.aalen/infra/eventserver.git";
}
]);

clonerer = pkgs.writeShellApplication {
Expand Down
16 changes: 13 additions & 3 deletions home/sway/swaylock.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
let
image = builtins.fetchurl {
url = "https://raw.githubusercontent.com/Golo300/dotfiles/93bab13ad41c666af34d49aca63a251fbfa9b9b5/home/timl/wallpaper/nixos.jpg";
sha256 = "02x2cdms4gp7dr6zr4af1s9qlxqha1mp5jbki90bazz2c1b8amm0";
};
in
{
programs.swaylock = {
enable = true;
settings = {
color = "000000";
font-size = 24;
indicator-idle-visible = false;
indicator-radius = 100;
line-color = "ffffff";
show-failed-attempts = true;
indicator-radius = 60;
inside-color = "000000";
#line-color = "253243";
key-hl-color = "87c1cf";
ring-color = "6081ac";
show-failed-attempts = false;
image = "${image}";
};
};
}

0 comments on commit 3690255

Please sign in to comment.