mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
fix: hyprlock is broken on asahi kernel, replace it with swaylock
This commit is contained in:
@@ -134,6 +134,6 @@ bind = $mod, Print, exec, hyprshot -m window -o ~/Pictures/Screenshot
|
|||||||
bind = CTRL, Print, exec, hyprshot -m region -o ~/Pictures/Screenshots
|
bind = CTRL, Print, exec, hyprshot -m region -o ~/Pictures/Screenshots
|
||||||
|
|
||||||
# -- Others --
|
# -- Others --
|
||||||
bind = CTRL ALT, l, exec, hyprlock
|
bind = CTRL ALT, l, exec, swaylock
|
||||||
bind = $mod SHIFT, x, exec, wlogout
|
bind = $mod SHIFT, x, exec, wlogout
|
||||||
bind = $mod, n, exec, nm-connection-editor # need install network-manager-applet
|
bind = $mod, n, exec, nm-connection-editor # need install network-manager-applet
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
general {
|
general {
|
||||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple instances
|
lock_cmd = pidof swaylock || swaylock # avoid starting multiple instances
|
||||||
before_sleep_cmd = loginctl lock-session # lock before suspend
|
before_sleep_cmd = loginctl lock-session # lock before suspend
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on # resume dpms after suspend
|
after_sleep_cmd = hyprctl dispatch dpms on # resume dpms after suspend
|
||||||
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests
|
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests
|
||||||
@@ -21,7 +21,7 @@ general {
|
|||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 1200 # 20 minutes
|
timeout = 1200 # 20 minutes
|
||||||
on-timeout = pidof hyprlock || hyprlock # lock screen
|
on-timeout = pidof swaylock || swaylock # lock screen
|
||||||
on-resume = hyprctl dispatch dpms on # monitor wake up
|
on-resume = hyprctl dispatch dpms on # monitor wake up
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@@ -29,7 +30,7 @@ in
|
|||||||
catppuccin.waybar.enable = false;
|
catppuccin.waybar.enable = false;
|
||||||
|
|
||||||
# screen locker
|
# screen locker
|
||||||
programs.hyprlock.enable = true;
|
programs.swaylock.enable = true;
|
||||||
|
|
||||||
# Logout Menu
|
# Logout Menu
|
||||||
programs.wlogout.enable = true;
|
programs.wlogout.enable = true;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# fix https://github.com/ryan4yin/nix-config/issues/10
|
# fix https://github.com/ryan4yin/nix-config/issues/10
|
||||||
security.pam.services.hyprlock = { };
|
security.pam.services.swaylock = { };
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user