Skip to content

Commit

Permalink
add XDG_CONFIG_HOME paths for py3status
Browse files Browse the repository at this point in the history
  • Loading branch information
lasers committed Feb 5, 2019
1 parent bdd3dbf commit 45140d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py3status/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def parse_cli():
# i3status config file default detection
# respect i3status' file detection order wrt issue #43
i3status_config_file_candidates = [
"{}/py3status/py3status.conf".format(xdg_home_path),
"{}/py3status/config".format(xdg_home_path),
"{}/.i3status.conf".format(home_path),
"{}/i3status/config".format(xdg_home_path),
"{}/.config/i3/i3status.conf".format(home_path),
Expand Down Expand Up @@ -248,6 +250,7 @@ def _format_action_invocation(self, action):
# make include path to search for user modules if None
if not options.include_paths:
options.include_paths = [
"{}/py3status/modules".format(xdg_home_path),
"{}/.i3/py3status/".format(home_path),
"{}/.config/i3/py3status/".format(home_path),
"{}/i3status/py3status".format(xdg_home_path),
Expand Down

0 comments on commit 45140d7

Please sign in to comment.