Skip to content

Commit

Permalink
swaylock again!
Browse files Browse the repository at this point in the history
  • Loading branch information
Flameopathic committed Aug 11, 2024
1 parent 898cd91 commit 55e1108
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
30 changes: 5 additions & 25 deletions mod-hm/hypridle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,18 @@
enable = true;
settings = {
general = {
before_sleep_cmd = "hyprlock";
before_sleep_cmd = "swaylock; sleep 1";
};
};
};

programs.hyprlock = {
programs.swaylock = {
enable = true;
settings = {
general = {
hide_cursor = true;
ignore_empty_input = true;
};
background = {
color = "rgba(${inputs.nix-colors.lib.conversions.hexToRGBString ", " config.colorScheme.palette.base03}, 1.0)";
blur_passes = 3;
blur_size = 8;
};

input-field = {
size = "600, 100";
position = "0, 0";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "password for flame";
shadow_passes = 2;
};
image = "/etc/nixos/resources/bay.png";
indicator = true;
};
};
};
}

2 changes: 1 addition & 1 deletion mod-hm/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ in
"$mod, R, exec, wofi --normal-window --show drun --insensitive --allow-images"
"$mod SHIFT, s, exec, hyprshot -m region -o ~/pic/ss"
"$mod, q, exec, kitty"
"$mod, p, exec, hyprlock"
"$mod, p, exec, swaylock"
"$mod, t, exec, toggle-theme"
"$mod, w, exec, swww img /etc/nixos/resources/${cfg.wallpaper}"
"CTRL SHIFT $mod ALT, l, exec, firefox --new-tab https://linkedin.com/"
Expand Down
2 changes: 1 addition & 1 deletion mod/hyprland.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ ... }: {
config = {
programs.hyprland.enable = true;
security.pam.services.hyprlock = { };
security.pam.services.swaylock = { };
home-manager.users.flame.imports = [
../mod-hm/hyprland.nix
];
Expand Down
Binary file added resources/bay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 55e1108

Please sign in to comment.