Hypridle checks for hyprlock, then turn's off screen.
This commit is contained in:
parent
ffad809828
commit
18619ac45d
@ -55,13 +55,13 @@
|
|||||||
|
|
||||||
listener = [
|
listener = [
|
||||||
{
|
{
|
||||||
timeout = 300; # 5min
|
timeout = 10; # 10 sec
|
||||||
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
on-timeout = "pidof hyprlock && hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
|
||||||
|
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 330; # 5.5min
|
timeout = 300; # 5min
|
||||||
on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed
|
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
||||||
on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -73,7 +73,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
disable_loading_bar = true;
|
disable_loading_bar = true;
|
||||||
grace = 300;
|
grace = 0;
|
||||||
hide_cursor = true;
|
hide_cursor = true;
|
||||||
no_fade_in = false;
|
no_fade_in = false;
|
||||||
};
|
};
|
||||||
@ -174,6 +174,8 @@
|
|||||||
"$mod, D, exec, tofi-run | xargs hyprctl dispatch exec --"
|
"$mod, D, exec, tofi-run | xargs hyprctl dispatch exec --"
|
||||||
"$mod SHIFT, D, exec, tofi-drun | xargs hyprctl dispatch exec --"
|
"$mod SHIFT, D, exec, tofi-drun | xargs hyprctl dispatch exec --"
|
||||||
|
|
||||||
|
"$mod, L, exec, hyprlock --immediate"
|
||||||
|
|
||||||
"$mod, V, exec, cliphist list | tofi --horizontal false --height 380 | cliphist decode | wl-copy"
|
"$mod, V, exec, cliphist list | tofi --horizontal false --height 380 | cliphist decode | wl-copy"
|
||||||
|
|
||||||
"$mod, j, layoutmsg, cyclenext"
|
"$mod, j, layoutmsg, cyclenext"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user