Commit Graph

56 Commits

Author SHA1 Message Date
Eduard Tykhoniuk cc23f97836
core: Do not crash if the last CLI parameter was -c (#92)
* fix: Do not crash if the last CLI parameter was -c

* feat: return an error if the next argument after -c is a flag

* feat: return an error if multiple config files are provided
2024-09-25 10:41:09 +01:00
André Silva 22b058b47a nix: add wayland-scanner native build input 2024-09-01 18:20:25 +03:00
BBaoVanC a46cd0bb05
logs: Flush buffer automatically (#88) 2024-08-27 21:01:19 +02:00
BBaoVanC 01a63fcf5a
misc: Include Log.hpp in main (#87)
It is already included because of ConfigManager.hpp, but that should not
be relied on as logging is also directly used in the main function.
2024-08-27 20:41:54 +02:00
Erik Tollerud 96d51ec2a7
CMake: typo fix hyprlock->hypridle (#82) 2024-08-02 23:49:02 +03:00
Mihai Fufezan f84c2d7981
assets: add example.conf 2024-08-02 22:19:47 +03:00
gnusenpai e5366d34b5
core: Fix running without logind (#76)
* dbus: Move logind matches inside try-catch

* core: Don't exit when logind is absent

logind being missing is non-fatal
2024-07-18 22:03:02 +02:00
Mihai Fufezan 9163a9f318
flake.lock: update 2024-07-18 20:43:36 +03:00
Mihai Fufezan ee6ca4d6c5
CMake: fmt 2024-07-18 20:43:28 +03:00
Mihai Fufezan 2d774e6f32
CMake, Nix: add VERSION file 2024-07-18 20:42:35 +03:00
Mihai Fufezan fc4e3bd2dc
Config: use hyprutils helper (#77)
* flake.lock: update

* config: use hyprutils helper

* Nix: add hyprutils dep

flake.lock: update
2024-07-16 22:36:07 +02:00
Elvyria 7c5747b785
core: re-register all notifications when idled and inhibit was released (#72) 2024-06-22 17:00:57 +02:00
Mihai Fufezan cb169c4e06
nix/hm-module: remove 2024-05-21 19:46:17 +03:00
Daniel Horton afa6e21b88
README: Fixed getconf command in build instructions (#60)
getconf NPROCESSORS_CONF isn't a valid command. The correct command is getconf _NPROCESSORS_CONF.
2024-05-14 16:12:55 +01:00
Marcin Jaworski a7a6b8f4f5
dbus: Separate `ignore_systemd_inhibit` config param, register ScreenSaver objects separately (#59)
* Don't register ScreenSaver object at all if ignore_dbus_inhibit is set. Introduce new ignore_systemd_inhibit config parameter.

* Ability to register org.freedesktop.ScreenSaver object under multiple paths. Add object under legacy /ScreenSaver path.

* Update documentation to reflect new configuration parameter.
2024-05-14 16:10:16 +01:00
Marcin Jaworski 50da2e7bf4
core: Add support for systemd-logind idle block inhibits (#57) 2024-05-13 22:22:06 +01:00
Vaxry 7cff4581a3 props: bump version to 0.1.2 2024-04-18 21:34:42 +01:00
alba4k eb916db19c fix systemd service exec path 2024-04-17 09:35:26 +03:00
Mihai Fufezan 01772b32af
flake.lock: update 2024-04-15 23:55:20 +03:00
alba4k 72a6b38b15 fix systemd service install path 2024-04-12 21:53:15 +03:00
Aaron Blasko dad6ac14df
Add systemd service (#45) 2024-04-12 21:16:49 +03:00
Lucas Reis 4395339a2d
core: Fix typo and check correct grandchild PID in spawn() (#34) 2024-03-11 18:14:34 +00:00
Anthony Ruhier 029f08805a
config: Add a -c|--config flag to set a config path (#25) 2024-02-29 16:19:33 +00:00
Mihai Fufezan cc465d04d6
Nix: refactor flake 2024-02-29 15:09:56 +02:00
Vaxry 6ea4e04532 cmake: bump ver to 0.1.1 2024-02-28 16:05:44 +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
Jan Beich 790988d116
core: Catch sdbus-cpp exception to print better error (#19)
$ hypridle
[...]
[LOG] wayland done, registering dbus
Abort
2024-02-27 13:07:22 +00:00
Mihai Fufezan b9c94ed827
flake.lock: update nixpkgs 2024-02-24 17:13:26 +02:00
LOSEARDES77 b85722e41a
core: fix missing headers (#18) 2024-02-22 10:33:19 +00:00
Mathis H a180de7bc7 nix: add default empty list for listeners option 2024-02-22 01:00:30 +02:00
ItsDrike 158c52c4a7
dbus: Actually register inhibit cookies (#14)
* Actually register inhibit cookies

* Add unregistering logic

* Fix code style
2024-02-20 18:25:50 +00:00
ItsDrike da2624628b
dbus: Send response on uninhibit (#13) 2024-02-20 00:57:34 +00:00
Jakub Konior c26683b60d
idleinhibit: added less than 0 inhibitor mitigation (#11) 2024-02-19 21:41:52 +00:00
Joshua Manchester f4659b1bb8 nix: home-manager module fix service wantedby 2024-02-19 02:02:32 +02:00
Vaxry 56f334cbe8 core: roundtrip after registering idle timers
fixes #7
2024-02-18 23:45:05 +00:00
Mihai Fufezan 411addbd9f
Nix: update hyprlang 2024-02-18 19:26:31 +02:00
Austin Horstman c030553b50 nix: home-manager module fixes 2024-02-18 19:25:41 +02:00
Austin Horstman 80abfa0dfd nix: hypridle meta.mainProgram 2024-02-18 19:25:41 +02:00
Vaxry afcef912d6 idle: ignore if inhibit locked 2024-02-18 14:58:39 +00:00
Vaxry f6dd1ef9d6 dbus: handle before/after sleep in PrepareForSleep 2024-02-17 23:48:54 +00:00
Vaxry cd592840ff cmake: further expand version 2024-02-17 23:40:04 +00:00
Vaxry 39b8afbef7 README: add features and ignore_dbus_inhibit 2024-02-17 23:26:03 +00:00
Vaxry 9320017b63 dbus: support ScreenSaver interface 2024-02-17 23:24:01 +00:00
Vaxry 55410176d4 core: move to anonymous hyprlang categories 2024-02-17 22:41:19 +00:00
Mihai Fufezan 12fff4a122
Nix: add missing deps 2024-02-18 00:25:25 +02:00
NotAShelf 6855ebdf3d nix: init home-manager module 2024-02-18 00:22:10 +02:00
Vaxry c8e0016fa5 core: throw hyprlang errors 2024-02-17 22:19:15 +00:00
Vaxry 36d7238afd core: add support for dbus events 2024-02-17 22:13:12 +00:00
Mihai Fufezan a3855cb40b
CI: init 2024-02-17 23:14:09 +02:00
Mihai Fufezan 2d370eff32
Nix: init 2024-02-17 23:14:08 +02:00