Merge pull request #2 from Alexays/system-wide-config

Add system-wide config and style files
This commit is contained in:
Alex 2018-08-09 17:14:16 +02:00 committed by GitHub
commit a25967e4c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -51,3 +51,9 @@ executable(
include_directories: [include_directories('include')],
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({
"$XDG_CONFIG_HOME/waybar/config",
"$HOME/waybar/config",
"/etc/xdg/waybar/config",
"./resources/config",
});
cssFile = getFirstValidPath({
"$XDG_CONFIG_HOME/waybar/style.css",
"$HOME/waybar/style.css",
"/etc/xdg/waybar/style.css",
"./resources/style.css",
});