dxhd icon indicating copy to clipboard operation
dxhd copied to clipboard

dxhd services should load all config files found in the config directory

Open dakyskye opened this issue 3 years ago • 0 comments

What do you want

I want to enable dxhd systemd (as of now) service which will load all my config files from my dxhd configs directory instead of the default dxhd.sh one.

Why

Because otherwise what's the point of dxhd service?

Implementation hints

dxhd should store this shell script and call it from systemd service with ExecStart:

CFG_PATH=${XDG_CONFIG_HOME:-$HOME/.config}/dxhd
for file in $(ls "$CFG_PATH"); do
    dxhd -bc "$CFG_PATH/$file"
done

dakyskye avatar Apr 26 '21 09:04 dakyskye