dxhd
dxhd copied to clipboard
dxhd services should load all config files found in the config directory
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