hypridle
This commit is contained in:
parent
9919b73f58
commit
0c12a13c62
|
@ -4,12 +4,12 @@
|
|||
settings = {
|
||||
listener = [
|
||||
{
|
||||
timeout = 600;
|
||||
timeout = 300;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
{
|
||||
timeout = 1200;
|
||||
timeout = 600;
|
||||
on-timeout = "systemctl suspend";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
exec-once = [
|
||||
"ags"
|
||||
"hypridle"
|
||||
"sh ~/nix/home/hyprland/scripts/hypridle.sh"
|
||||
];
|
||||
|
||||
windowrule = [
|
||||
|
|
6
home/hyprland/scripts/hypridle.sh
Normal file
6
home/hyprland/scripts/hypridle.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
hostname=$(hostname)
|
||||
|
||||
[ "$hostname" = "latop" ] && hyprilde
|
||||
|
Loading…
Reference in a new issue