Commit graph

8 commits

Author SHA1 Message Date
f158b2fe92 config: fix custom config paths
fixes #172
2025-09-09 13:16:32 +01:00
Chris Hixon
a282131ac7
core: add an option to ignore idle inhibition per-listener (#158)
* Add ability to ignore Wayland idle inhibitors

config: general:ignore_wayland_inhibit (bool)

If the config value general:ignore_wayland_inhibit is true, the
CCExtIdleNotifierV1 function used will be: sendGetInputIdleNotification.
This instructs the compositor (hyprland) to return all idle/resume
events, ignoring any Wayland inhibitors.

If the config value general:ignore_wayland_inhibit is false/unset,
it will use the default function sendGetIdleNotification, which obeys
Wayland inhibitors.

* Ignore idle inhibition per-listener

Add `ignore_inhibit` option (bool) to listener section of config file,
to allow ignoring idle inhibition per-listener. When set to true, all
types of inhibitors are ignored (systemd, dbus/ScreenSaver, Wayland).
Default value: false (the rule will obey inhibition)

Example:

    listener {
        timeout = 5
        on-timeout = logger 'should obey idle inhibition'
    }

    listener {
        timeout = 6
        on-timeout = logger 'should ignore idle inhibition'
        ignore_inhibit = true
    }

* Add ability to ignore Wayland idle inhibitors

config: general:ignore_wayland_inhibit (bool, default: false)

If the config value general:ignore_wayland_inhibit is true, use
sendGetInputIdleNotification to create the idle notification object.
(Wayland protocol: ext_idle_notifier_v1::get_input_idle_notification)
This instructs the compositor to return all idle/resume events,
ignoring any Wayland inhibitors.

If the config value general:ignore_wayland_inhibit is false (default),
it will use sendGetIdleNotification, which obeys Wayland inhibitors.
(Wayland protocol: ext_idle_notifier_v1::get_idle_notification)

* clang-format

* Update flake.lock

* Add newline at end of file: src/core/Hypridle.cpp
2025-06-03 19:45:20 +01:00
martin
a0037ac40c
config: add support for source option for additional config files (#144)
* feat: support `source` option for additional config files

* fix: prevent circular dependency
2025-05-02 17:27:53 +02:00
Maximilian Seidler
15ca902b2c
core: implement hyprlock-lock-notify-v1 functionality (#122)
---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2025-01-27 14:24:13 +01:00
Anthony Ruhier
029f08805a
config: Add a -c|--config flag to set a config path (#25) 2024-02-29 16:19:33 +00:00
Jakub Konior
afee84925a
fix: repoll after inhibitor idled (#15)
* yep, but how to trigger it?

* stupid yet works

* forgot about lock
2024-02-27 21:22:15 +00:00
36d7238afd core: add support for dbus events 2024-02-17 22:13:12 +00:00
9e8d11a964 core: initial commit 2024-02-17 19:30:11 +00:00