diff --git a/homeModules/wayland/hyprland/default.nix b/homeModules/wayland/hyprland/default.nix
index 139f4851..1fcb8d96 100644
--- a/homeModules/wayland/hyprland/default.nix
+++ b/homeModules/wayland/hyprland/default.nix
@@ -13,7 +13,6 @@ in
imports = [
./services.nix
./hypridle.nix
- ./hyprlock.nix
];
config = {
catppuccin.hyprland.enable = c.enable;
diff --git a/homeModules/wayland/hyprland/hypridle.nix b/homeModules/wayland/hyprland/hypridle.nix
index 7b9e5da0..47abaef0 100644
--- a/homeModules/wayland/hyprland/hypridle.nix
+++ b/homeModules/wayland/hyprland/hypridle.nix
@@ -11,7 +11,9 @@ in
enable = false;
settings = {
general = {
- lock_cmd = "hyprlock";
+ lock_cmd = "loginctl lock-session";
+ before_sleep_cmd = "loginctl lock-session";
+ after_sleep_cmd = "hyprctl dispatch dpms on";
};
};
};
diff --git a/homeModules/wayland/hyprland/hyprlock.nix b/homeModules/wayland/hyprland/hyprlock.nix
deleted file mode 100644
index d127395d..00000000
--- a/homeModules/wayland/hyprland/hyprlock.nix
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-let
- cfg = config.wayland.windowManager.hyprland;
-in
-{
- config.catppuccin.hyprlock.enable = cfg.enable;
- config.catppuccin.hyprlock.useDefaultConfig = false;
- config.programs.hyprlock = lib.mkIf cfg.enable {
- enable = true;
- settings = {
- general = {
- hide_cursor = true;
- immediate_render = true;
- text_trim = true;
- };
- };
- extraConfig = ''
- $accent = $mauve
- $accentAlpha = $mauveAlpha
- $font = Blex Mono Nerd Font
-
- # BACKGROUND
- background {
- monitor =
- path = $HOME/bgs/wallpapers/xenia/chimmie_valentine_xenia.png
- blur_passes = 1
- color = $base
- }
-
- # TIME
- label {
- monitor =
- text = $TIME
- color = $text
- font_size = 90
- font_family = $font
- position = -30, 0
- halign = right
- valign = top
- }
-
- # DATE
- label {
- monitor =
- text = cmd[update:43200000] date +"%A, %d %B %Y"
- color = $text
- font_size = 25
- font_family = $font
- position = -30, -150
- halign = right
- valign = top
- }
-
- # USER AVATAR
- image {
- monitor =
- path = $HOME/.face
- size = 100
- border_color = $accent
- position = 0, 75
- halign = center
- valign = center
- }
-
- # INPUT FIELD
- input-field {
- monitor =
- size = 300, 60
- outline_thickness = 4
- dots_size = 0.2
- dots_spacing = 0.2
- dots_center = true
- outer_color = $accent
- inner_color = $surface0
- font_color = $text
- fade_on_empty = false
- placeholder_text = Logged in as $USER
- hide_input = false
- check_color = $accent
- fail_color = $red
- fail_text = $FAIL ($ATTEMPTS)
- capslock_color = $yellow
- position = 0, -47
- halign = center
- valign = center
- }
- '';
- };
-}
diff --git a/nixosModules/homes/thehedgehog-zaphod/caelestia-shell.json b/nixosModules/homes/thehedgehog-zaphod/caelestia-shell.json
index 6964bc12..bf5d78f8 100644
--- a/nixosModules/homes/thehedgehog-zaphod/caelestia-shell.json
+++ b/nixosModules/homes/thehedgehog-zaphod/caelestia-shell.json
@@ -163,16 +163,16 @@
"timeouts": [
{
"idleAction": "lock",
- "timeout": 180
+ "timeout": 420
},
{
"idleAction": "dpms off",
"returnAction": "dpms on",
- "timeout": 300
+ "timeout": 600
},
{
- "idleAction": ["systemctl", "suspend-then-hibernate"],
- "timeout": 600
+ "idleAction": ["systemctl", "suspend"],
+ "timeout": 900
}
]
}
@@ -221,9 +221,9 @@
"name": "Lock"
},
{
- "command": ["systemctl", "suspend-then-hibernate"],
+ "command": ["systemctl", "suspend"],
"dangerous": false,
- "description": "Suspend then hibernate",
+ "description": "Suspend",
"enabled": true,
"icon": "bedtime",
"name": "Sleep"
@@ -284,14 +284,14 @@
},
"session": {
"commands": {
- "hibernate": ["systemctl", "hibernate"],
+ "hibernate": ["systemctl", "suspend"],
"logout": ["loginctl", "terminate-user", ""],
"reboot": ["systemctl", "reboot"],
"shutdown": ["systemctl", "poweroff"]
},
"dragThreshold": 30,
"enabled": true,
- "vimKeybinds": false
+ "vimKeybinds": true
},
"sidebar": {
"dragThreshold": 80,
diff --git a/nixosModules/programs/hyprland/default.nix b/nixosModules/programs/hyprland/default.nix
index 6494a90a..50c3aead 100644
--- a/nixosModules/programs/hyprland/default.nix
+++ b/nixosModules/programs/hyprland/default.nix
@@ -15,6 +15,5 @@ in
enable = true;
xwayland.enable = true;
};
- programs.hyprlock.enable = cfg.enable;
};
}