Compare commits

...
2 Commits
Author SHA1 Message Date
wyj b1534e45c4 update: add ATRI idle config 2026-06-29 06:01:51 -04:00
wyj 626a0fd769 fix: fix the M.autostart=nil problem 2026-06-29 06:01:35 -04:00
3 changed files with 28 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
}
+2
View File
@@ -3,6 +3,8 @@ local events = require("lua.lib.events")
local utils = require("lua.lib.utils")
local M = {}
M.autostart = {}
-- for openRC system
if settings["hostname"] == "optiplex-gentoo" and not settings["systemd"] then
M.autostart = {
+6 -1
View File
@@ -1,7 +1,12 @@
local settings=require("lua.lib.settings")
local M = {}
local function start_hypridle()
hl.exec_cmd("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 = {