colour -> color, behaviour -> behavior, centre -> center, favourite -> favorite, and about twenty other pairs, applied consistently across comments, docs, error/UI copy, and a handful of QML identifiers that used the British spelling as their actual name: SystemSettings' serialiseValue/serialiseTable/normaliseGradient, Displays' normaliseModes, Wallpaper's normalisePolicy, SettingsBackup's serialiseHomeState, DateTime's ntpSynchronised property, Clipboard's _normalise helper, and ShortcutCapture's cancelled signal (with its onCancelled handler in ShortcutsPage.qml). Every call site and the two tests that assert on the literal source text (settings-ownership and settings-backup-live contracts) were updated in lockstep. Left untouched: config/dot/espanso/match/packages/misspell-en/ is a vendored third-party autocorrect dictionary -- its entries are typo corrections, not our prose, and rewriting them would fight the package's own purpose (and any future re-sync from upstream). The already-American `favorites` property (Home page pinned accessories) was never actually misspelled -- only nearby comments and error strings said "favourites" -- so no data migration was needed there. Claude-Session: https://claude.ai/code/session_01E6TJUAh41HaP25MVHWkhRZ
40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
# ─────────────────────────────────────────────────────────────────────────────
|
|
# hypridle — idle behavior
|
|
#
|
|
# Mirrors the GNOME power profile this replaces, exactly:
|
|
# org.gnome.desktop.session idle-delay = 300 (screen off at 5min)
|
|
# org.gnome.desktop.screensaver lock-delay = 300 (lock 5min after that)
|
|
# org.gnome.settings-daemon.plugins.power
|
|
# sleep-inactive-ac-type = nothing (never auto-suspend)
|
|
# power-button-action = nothing
|
|
#
|
|
# So: screen off at 5 minutes, lock at 10, never suspend. This is a desktop.
|
|
#
|
|
# hyprlang syntax, not Lua — hypridle is a separate project from Hyprland.
|
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
general {
|
|
# `pidof` guard prevents stacking lockers if this fires twice.
|
|
lock_cmd = pidof hyprlock || ~/.config/quickshell/scripts/panama-lock run
|
|
before_sleep_cmd = loginctl lock-session
|
|
after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })'
|
|
|
|
# 2 = auto. Holds off sleep until the locker is actually up.
|
|
inhibit_sleep = 2
|
|
}
|
|
|
|
# 5 minutes -> screen off.
|
|
listener {
|
|
timeout = 300
|
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "off" })'
|
|
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })'
|
|
}
|
|
|
|
# 10 minutes -> lock. Matches GNOME's lock-delay of 300s after blanking.
|
|
listener {
|
|
timeout = 600
|
|
on-timeout = loginctl lock-session
|
|
}
|
|
|
|
# Deliberately no suspend listener: sleep-inactive-ac-type was 'nothing'.
|