mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Add options to use a .json extension for the config filename
This commit is contained in:
parent
cf3d6545c3
commit
c65ec9e14f
@ -207,9 +207,13 @@ std::tuple<const std::string, const std::string> waybar::Client::getConfigs(
|
|||||||
const std::string &config, const std::string &style) const {
|
const std::string &config, const std::string &style) const {
|
||||||
auto config_file = config.empty() ? getValidPath({
|
auto config_file = config.empty() ? getValidPath({
|
||||||
"$XDG_CONFIG_HOME/waybar/config",
|
"$XDG_CONFIG_HOME/waybar/config",
|
||||||
|
"$XDG_CONFIG_HOME/waybar/config.json",
|
||||||
"$HOME/.config/waybar/config",
|
"$HOME/.config/waybar/config",
|
||||||
|
"$HOME/.config/waybar/config.json",
|
||||||
"$HOME/waybar/config",
|
"$HOME/waybar/config",
|
||||||
|
"$HOME/waybar/config.json",
|
||||||
"/etc/xdg/waybar/config",
|
"/etc/xdg/waybar/config",
|
||||||
|
"/etc/xdg/waybar/config.json",
|
||||||
SYSCONFDIR "/xdg/waybar/config",
|
SYSCONFDIR "/xdg/waybar/config",
|
||||||
"./resources/config",
|
"./resources/config",
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user