hypridle: fix red background when locking
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
4ba4d8cfab
commit
4ead66e6b1
1 changed files with 14 additions and 4 deletions
|
@ -24,10 +24,20 @@ in {
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = let
|
||||||
general = {
|
# Workaround for red background immediately showing while lockscreen starts
|
||||||
before_sleep_cmd = "${pgrep} hyprlock || ${hyprlock} --immediate";
|
# https://github.com/YaLTeR/niri/issues/808
|
||||||
lock_cmd = "${pgrep} hyprlock || ${hyprlock}";
|
do-screen-transition = "${niri} msg action do-screen-transition --delay-ms 1000 &&";
|
||||||
|
in {
|
||||||
|
general = let
|
||||||
|
lock = "${pgrep} hyprlock || ${
|
||||||
|
if config.custom.desktops.desktop == "niri"
|
||||||
|
then do-screen-transition
|
||||||
|
else ""
|
||||||
|
} ${hyprlock}";
|
||||||
|
in {
|
||||||
|
before_sleep_cmd = "${lock} --immediate";
|
||||||
|
lock_cmd = lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
listener = [
|
listener = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue