feat: move to waylock, hyprlock is bugged.
This commit is contained in:
parent
77fbca3955
commit
c467c4293e
2 changed files with 6 additions and 5 deletions
|
|
@ -85,7 +85,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
lock_cmd = "pidof waylock || waylock"; # avoid starting multiple waylock 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"; # to avoid having to press a key twice to turn on the display.
|
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||||
ignore_dbus_inhibit = 1;
|
ignore_dbus_inhibit = 1;
|
||||||
|
|
@ -95,7 +95,7 @@ in {
|
||||||
listener = [
|
listener = [
|
||||||
{
|
{
|
||||||
timeout = 10; # 10 sec
|
timeout = 10; # 10 sec
|
||||||
on-timeout = "pidof hyprlock && hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
|
on-timeout = "pidof waylock && hyprctl dispatch dpms off"; # Turn off screen if waylock is running
|
||||||
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
@ -104,7 +104,7 @@ in {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 310; # 5min and 10 sec
|
timeout = 310; # 5min and 10 sec
|
||||||
on-timeout = "hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
|
on-timeout = "hyprctl dispatch dpms off"; # Turn off screen if waylock is running
|
||||||
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -214,7 +214,7 @@ in {
|
||||||
|
|
||||||
"$mod, F, fullscreen"
|
"$mod, F, fullscreen"
|
||||||
|
|
||||||
"$mod SHIFT, L, exec, hyprlock"
|
"$mod SHIFT, L, exec, waylock"
|
||||||
|
|
||||||
"$mod, B, exec, zen-beta"
|
"$mod, B, exec, zen-beta"
|
||||||
"$mod SHIFT, B, exec, librewolf"
|
"$mod SHIFT, B, exec, librewolf"
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
'')
|
'')
|
||||||
cliphist
|
cliphist
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
waylock
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable and setup tofi
|
# Enable and setup tofi
|
||||||
|
|
@ -60,7 +61,7 @@
|
||||||
|
|
||||||
# Enable hyprlock
|
# Enable hyprlock
|
||||||
programs.hyprlock = {
|
programs.hyprlock = {
|
||||||
enable = true;
|
enable = false;
|
||||||
package = inputs.hyprlock.packages.${pkgs.stdenv.hostPlatform.system}.hyprlock;
|
package = inputs.hyprlock.packages.${pkgs.stdenv.hostPlatform.system}.hyprlock;
|
||||||
settings = {
|
settings = {
|
||||||
image = {
|
image = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue