[Sync] Lua Hyprland chain, licence cleanup

This commit is contained in:
Coja committed 2026-11-09 18:25:35 +01:00
1 parent 93b4f695ce
commit 47166d877f
183 files changed
+5618 -5839

No files matched your search

+14 -3
View File
@@ -7,7 +7,14 @@
#!    ░▒▓▓   ▓▓  //____/
# $LOCKSCREEN = hyprlock # preferred LOCKSCREEN e.g swaylock
$LOCKSCREEN = lockscreen.sh # Calls $LOCKSCREEN set from hyprland
# Absolute path required: the Lua chain starts hypridle as a systemd user unit
# (hyde-Hyprland-idle.service), and on the SDDM/fish session path the session PATH
# never reaches the user manager (start_up.lua's unconditional `uwsm finalize` runs
# but errors outside a uwsm session, so the import never happens) — a bare
# `lockscreen.sh` is "command not found" there — Super+L, the 240s idle lock and
# before_sleep all silently no-op. The script self-bootstraps its own env
# (hyde-shell init), so the full path alone is sufficient.
$LOCKSCREEN = ~/.local/lib/hyde/lockscreen.sh
general {
lock_cmd = $LOCKSCREEN
@@ -31,10 +38,14 @@ listener {
}
# DPMS off
# Lua-chain form: in Lua mode `hyprctl dispatch` evaluates its argument as Lua, so the hyprlang
# `dpms off` is a syntax error and this listener silently never ran. The table form is the one
# hypridle's own sample uses (/usr/share/hypr/hypridle.conf); a bare bool/string argument acts
# like a toggle — `hl.dsp.dpms("on")` turned the display OFF. main (hyprlang) keeps `dpms off/on`.
listener {
timeout = 2300
on-timeout = hyprctl dispatch dpms off #do not turn off display while media is playing
on-resume = hyprctl dispatch dpms on
on-timeout = hyprctl dispatch 'hl.dsp.dpms({action = "off"})' #do not turn off display while media is playing
on-resume = hyprctl dispatch 'hl.dsp.dpms({action = "on"})'
}
# Suspend