From f18c930947781b11e4088068daa25ba5d3f606aa Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 14:08:17 -0500 Subject: [PATCH] + hypridle & hyprlock --- dots/archinstall/t470p/packages.txt | 2 ++ dots/hypridle/hypridle.conf | 17 +++++++++++++++++ dots/startup/startup.sh | 6 ++++-- scripts/99_deploy.sh | 5 +++++ 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 dots/hypridle/hypridle.conf diff --git a/dots/archinstall/t470p/packages.txt b/dots/archinstall/t470p/packages.txt index 66b3cf1..9d67fbe 100644 --- a/dots/archinstall/t470p/packages.txt +++ b/dots/archinstall/t470p/packages.txt @@ -14,3 +14,5 @@ htop hyprpaper waybar ttf-nerd-fonts-symbols +hypridle +hyprlock diff --git a/dots/hypridle/hypridle.conf b/dots/hypridle/hypridle.conf new file mode 100644 index 0000000..3b0715f --- /dev/null +++ b/dots/hypridle/hypridle.conf @@ -0,0 +1,17 @@ +# timeout in seconds +# +# https://github.com/hyprwm/hypridle +# https://github.com/hyprwm/hypridle/issues/7 + +general { +} + +listener { + timeout = 1800 # 30x60 + on-timeout = hyprlock +} + +listener { + timeout = 2400 # 45x60 + on-timeout = hyprctl dispatch dpms off +} diff --git a/dots/startup/startup.sh b/dots/startup/startup.sh index 8882845..c1dfafa 100644 --- a/dots/startup/startup.sh +++ b/dots/startup/startup.sh @@ -6,5 +6,7 @@ hyprpaper& waybar& -#exec-once = hyprpaper & waybar & hypridle & hyprdim --strength 0.6 --duration 500 --no-dim-when-only --dialog-dim 0.1 & pcloud - +# hypridle +# hyprdim --strength 0.6 --duration 500 --no-dim-when-only --dialog-dim 0.1 +# pcloud +# nextcloud diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index f87a54f..c89f945 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -82,6 +82,11 @@ if [ ${operation} == "dots" ] ; then download_repo ${targz_dots_url} tree ${clone_trg}/lnx-arch + # hypridle + file_name=hypridle.conf + file_path=/home/${user}/.config/hypr + deploy_file ${dots_trg}/hypridle/${file_name} ${file_path}/${file_name} + # hyprland file_name=hyprland.conf file_path=/home/${user}/.config/hypr