mirror of
https://github.com/hyprwm/hypridle.git
synced 2024-12-30 00:49:48 +01:00
assets: add example.conf
This commit is contained in:
parent
e5366d34b5
commit
f84c2d7981
2 changed files with 24 additions and 0 deletions
|
@ -20,6 +20,8 @@ endif()
|
||||||
|
|
||||||
include_directories(. "protocols/")
|
include_directories(. "protocols/")
|
||||||
|
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
# configure
|
# configure
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value
|
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(TARGETS hypridle)
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/systemd/hypridle.service
|
install(FILES ${CMAKE_BINARY_DIR}/systemd/hypridle.service
|
||||||
DESTINATION "lib/systemd/user")
|
DESTINATION "lib/systemd/user")
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_SOURCE_DIR}/assets/example.conf
|
||||||
|
DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/hypr
|
||||||
|
RENAME hyprlock.conf)
|
||||||
|
|
17
assets/example.conf
Normal file
17
assets/example.conf
Normal file
|
@ -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.
|
||||||
|
}
|
Loading…
Reference in a new issue