Compare commits
2
Commits
e8594c54ef
...
b1534e45c4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1534e45c4 | ||
|
|
626a0fd769 |
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user