update: add ATRI idle config
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
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 = {
|
||||
|
||||
Reference in New Issue
Block a user