Add system-wide config and style files

This commit is contained in:
Thomas Plaçais 2018-08-09 17:02:30 +02:00
parent e749f00aa7
commit 22a8427db4
2 changed files with 8 additions and 0 deletions

View File

@ -47,3 +47,9 @@ executable(
include_directories: [include_directories('include')], include_directories: [include_directories('include')],
install: true, install: true,
) )
install_data(
'./resources/config',
'./resources/style.css',
install_dir: '/etc/xdg/waybar',
)

View File

@ -58,11 +58,13 @@ waybar::Client::Client(int argc, char* argv[])
configFile = getFirstValidPath({ configFile = getFirstValidPath({
"$XDG_CONFIG_HOME/waybar/config", "$XDG_CONFIG_HOME/waybar/config",
"$HOME/waybar/config", "$HOME/waybar/config",
"/etc/xdg/waybar/config",
"./resources/config", "./resources/config",
}); });
cssFile = getFirstValidPath({ cssFile = getFirstValidPath({
"$XDG_CONFIG_HOME/waybar/style.css", "$XDG_CONFIG_HOME/waybar/style.css",
"$HOME/waybar/style.css", "$HOME/waybar/style.css",
"/etc/xdg/waybar/style.css",
"./resources/style.css", "./resources/style.css",
}); });