Skip to content

Conversation

@RobinHirst11
Copy link
Collaborator

currently what I've changed:

fix: make separator and custom_dir config options actually work by exporting variables and handling JSON config parsing in bar.sh

implementation/fix: make the custom modules dir actually work

TODO:

make separate archupdates and archupdates-aur modules

parallelization/per-module delays

…porting variables and handling JSON config parsing in bar.sh
@RobinHirst11 RobinHirst11 requested a review from Copilot November 22, 2025 18:49
@RobinHirst11
Copy link
Collaborator Author

might as well give the clanker a shot

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements JSON configuration support and fixes issues with separator and custom_dir config options. It adds the ability to use config.json (when jq is available) as an alternative to the bash-based config file, and refactors the bar building logic to properly handle separators between modules.

Key changes:

  • Added JSON config file support with automatic detection and preference when jq is available
  • Exported SEPARATOR and CUSTOM_DIR variables to make them functional
  • Refactored separator handling to use conditional logic instead of string truncation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 13 comments.

File Description
dwmbar Added JSON config detection logic and load_config() function to parse both JSON and bash configs, with periodic reloading
bar.sh Added duplicate JSON config parsing logic and rewrote get_bar() to build the status bar with proper separator handling

@RobinHirst11
Copy link
Collaborator Author

TL;DR: duplication between dwmbar and bar.sh isn't ideal but it's not breaking anything, half the nitpicks aren't valid

…fixed the config dir with a slight discrepance, and added a new image showcasing the different seperators you can make
@RobinHirst11 RobinHirst11 force-pushed the main branch 2 times, most recently from cb0540e to 88251e6 Compare November 22, 2025 22:50
@RobinHirst11
Copy link
Collaborator Author

RobinHirst11 commented Nov 22, 2025

sorry lol... still getting the hang of this git shi

Copy link
Owner

@thytom thytom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :) commits are good too.

@RobinHirst11 RobinHirst11 merged commit 3a372a0 into thytom:main Nov 23, 2025
1 check passed
thytom pushed a commit that referenced this pull request Nov 25, 2025
* fix: make separator and custom_dir config options actually work by exporting variables and handling JSON config parsing in bar.sh

* feature: seperated archupdates into archupdates and archupdates-aur, fixed the config dir with a slight discrepance, and added a new image showcasing the different seperators you can make

* fix: update todo file

* fix: fix CI tests with aur seperated from pacman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants