diff --git a/dots-extra/vianix/README.md b/dots-extra/vianix/README.md new file mode 100644 index 000000000..5f77637f9 --- /dev/null +++ b/dots-extra/vianix/README.md @@ -0,0 +1 @@ +This folder contains tweakd configs when --via-nix is specified. diff --git a/dots-extra/vianix/hypridle.conf b/dots-extra/vianix/hypridle.conf new file mode 100644 index 000000000..6f1858607 --- /dev/null +++ b/dots-extra/vianix/hypridle.conf @@ -0,0 +1,26 @@ +$lock_cmd = swaylock +# $lock_cmd = pidof hyprlock || hyprlock +$suspend_cmd = systemctl suspend || loginctl suspend + +general { + lock_cmd = $lock_cmd + before_sleep_cmd = loginctl lock-session + after_sleep_cmd = hyprctl dispatch global quickshell:lockFocus + inhibit_sleep = 3 +} + +listener { + timeout = 300 # 5mins + on-timeout = loginctl lock-session +} + +listener { + timeout = 600 # 10mins + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} + +listener { + timeout = 900 # 15mins + on-timeout = $suspend_cmd +} diff --git a/sdata/subcmd-install/3.files-exp.sh b/sdata/subcmd-install/3.files-exp.sh index 8f0bcd8f9..0ff62c0e3 100644 --- a/sdata/subcmd-install/3.files-exp.sh +++ b/sdata/subcmd-install/3.files-exp.sh @@ -9,6 +9,7 @@ # TODO: add --exp-files-regen Force copy the default config to ${EXP_FILE_PATH} (auto do this when not existed) # TODO: Implement versioning, i.e. when user-defined yaml config file has version number mismatch with the default one, produce error. If only minor version number is not the same, the error can be ommitted via --exp-file-no-strict . # TODO: add --exp-files-no-strict Ignore error when minor version number is not the same +# TODO: When --via-nix is specified, use dots-extra/vianix/hypridle.conf instead # # Stage 2 todos: # TODO: Implement bool key symlink (both read-write and read-only), when the value of `symlink` is true, then instead using `rsync` or `cp`, use `ln`. diff --git a/sdata/subcmd-install/3.files-legacy.sh b/sdata/subcmd-install/3.files-legacy.sh index 608b4ac6d..88337a1db 100644 --- a/sdata/subcmd-install/3.files-legacy.sh +++ b/sdata/subcmd-install/3.files-legacy.sh @@ -3,6 +3,7 @@ # shellcheck shell=bash +# TODO: When --via-nix is specified, use dots-extra/vianix/hypridle.conf instead # In case some dirs does not exists v mkdir -p $XDG_BIN_HOME $XDG_CACHE_HOME $XDG_CONFIG_HOME $XDG_DATA_HOME/icons