update: add ATRI idle config

This commit is contained in:
wyj
2026-06-29 06:01:51 -04:00
parent 626a0fd769
commit b1534e45c4
2 changed files with 26 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
general {
ignore_dbus_inhibit = false
}
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
# dpms
listener {
# DPMS TIMEOUT
timeout = 660
# DPMS ONTIMEOUT
on-timeout = hyprctl dispatch dpms off
# DPMS ONRESUME
on-resume = hyprctl dispatch dpms on
}
+5
View File
@@ -1,8 +1,13 @@
local settings=require("lua.lib.settings")
local M = {}
local function start_hypridle()
if string.sub(settings["hostname"], 1, 4) == "ATRI" then
hl.exec_cmd("hypridle -c ~/.config/hypr/hypridle-ATRI.conf")
else
hl.exec_cmd("hypridle")
end
end
M.autostart = {
start_hypridle,