From bfd5b17ef7d4b03d3b185fe19003d333cc1ac0c6 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Thu, 14 Dec 2023 00:45:16 -0800 Subject: [PATCH] fix idle for hypr --- home/dot_config/hypr/scripts/executable_idle.sh | 3 +++ home/dot_config/hypr/start.conf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 home/dot_config/hypr/scripts/executable_idle.sh diff --git a/home/dot_config/hypr/scripts/executable_idle.sh b/home/dot_config/hypr/scripts/executable_idle.sh new file mode 100644 index 00000000..2304734b --- /dev/null +++ b/home/dot_config/hypr/scripts/executable_idle.sh @@ -0,0 +1,3 @@ +swayidle -w \ + timeout 300 'hyprctl dispatch dpms off' \ + resume 'hyprctl dispatch dpms on' \ diff --git a/home/dot_config/hypr/start.conf b/home/dot_config/hypr/start.conf index 3306616a..950c9951 100644 --- a/home/dot_config/hypr/start.conf +++ b/home/dot_config/hypr/start.conf @@ -1,4 +1,4 @@ # autostart with hyprland exec-once = waybar -exec = ~/.config/sway/scripts/idle.sh +exec = ~/.config/hypr/scripts/idle.sh exec = swaybg -i ~/media/pictures/wallpapers/random_wallpapers/sulphur-mountain.jpg