This PR fixes the issue where the keybindings defined in user configuration directories don't show up on the ilia keybindings page. This was caused because the sway root config file defines the location of user partials with include $HOME/.config/regolith2/sway/config.d/*. However, the logic for finding the configuration files didn't account for the presence of environment variables within the included paths, due to which the user config partials were not getting parsed. As a fix, I wrote a function expand_path_vars that checks the path for environment variables and substitutes any variables that it finds.
This PR fixes the issue where the keybindings defined in user configuration directories don't show up on the
ilia
keybindings page. This was caused because the sway root config file defines the location of user partials withinclude $HOME/.config/regolith2/sway/config.d/*
. However, the logic for finding the configuration files didn't account for the presence of environment variables within the included paths, due to which the user config partials were not getting parsed. As a fix, I wrote a functionexpand_path_vars
that checks the path for environment variables and substitutes any variables that it finds.