hyprwm / hypridle

Hyprland's idle daemon
BSD 3-Clause "New" or "Revised" License
320 stars 16 forks source link

[Feature] Support `source` option for additional config files #33

Open rdvm opened 4 months ago

rdvm commented 4 months ago

In hyprland.conf I source other config files so I can have some device-specific configurations while sharing most of my config between systems. I'd like to have different idle behavior on my laptop vs. my desktop, so it'd be great if that were an option for hypridle as well.

source=~/.config/hypr/hosts/laptop/hypridle.conf
[ERR] Config has errors:
Config error in file /home/rdvm/dotfiles/hyprland/.config/hypr/hypridle.conf at line 1: config option <source> does not exist.

Thanks for all your work on hyprwm !

Rabcor commented 2 months ago

yeah this would be great, if only just so you can keep all your power related settings in one config file. There are ways around this but none are pretty.

Alternatively at least for my scenario being able to execute with commandline args instead of a config file (like swayidle) would be neat.