From f84c2d7981e0a3c19bdcbbffe53749231a235418 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Fri, 2 Aug 2024 22:19:47 +0300 Subject: [PATCH] assets: add example.conf --- CMakeLists.txt | 7 +++++++ assets/example.conf | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 assets/example.conf diff --git a/CMakeLists.txt b/CMakeLists.txt index b7c9755..16ba610 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,8 @@ endif() include_directories(. "protocols/") +include(GNUInstallDirs) + # configure set(CMAKE_CXX_STANDARD 23) add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value @@ -90,3 +92,8 @@ protocol("staging/ext-idle-notify/ext-idle-notify-v1.xml" "ext-idle-notify-v1" install(TARGETS hypridle) install(FILES ${CMAKE_BINARY_DIR}/systemd/hypridle.service DESTINATION "lib/systemd/user") + +install( + FILES ${CMAKE_SOURCE_DIR}/assets/example.conf + DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/hypr + RENAME hyprlock.conf) diff --git a/assets/example.conf b/assets/example.conf new file mode 100644 index 0000000..a556242 --- /dev/null +++ b/assets/example.conf @@ -0,0 +1,17 @@ +# sample hypridle.conf +# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hypridle + +general { + lock_cmd = notify-send "lock!" # dbus/sysd lock command (loginctl lock-session) + unlock_cmd = notify-send "unlock!" # same as above, but unlock + before_sleep_cmd = notify-send "Zzz" # command ran before sleep + after_sleep_cmd = notify-send "Awake!" # command ran after sleep + ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) + ignore_systemd_inhibit = false # whether to ignore systemd-inhibit --what=idle inhibitors +} + +listener { + timeout = 300 # in seconds + on-timeout = notify-send "You are idle!" # command to run when timeout has passed + on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. +}