regolith-linux / ilia

A GTK-based Desktop Executor
Apache License 2.0
83 stars 10 forks source link

Fixed bindings defined in user config partials not showing up #68

Closed SoumyaRanjanPatnaik closed 1 year ago

SoumyaRanjanPatnaik commented 1 year ago

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.