← Commit history

release 1.1.60

John Lauer ·5c6583097b ·1mo ago ·parent b4d5a1e
3 files changed +6−3
bin/hydrogen-widget-claude-usage+2−2
@@ -3,9 +3,9 @@ apply to your plan, as percent used. Reads the Claude Code sign-in in ~/.claude/.credentials.json and asks the same usage endpoint the Claude Code CLI shows in /usage. Refreshes every minute.""" import json, os, sys-sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))+sys.path.insert(0, os.path.dirname(os.path.realpath(__file__))) from importlib.machinery import SourceFileLoader-lib = SourceFileLoader('hwlib', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'hydrogen-widget-lib.py')).load_module()+lib = SourceFileLoader('hwlib', os.path.join(os.path.dirname(os.path.realpath(__file__)), 'hydrogen-widget-lib.py')).load_module()  def data():     c = json.load(open(os.path.expanduser('~/.claude/.credentials.json')))
bin/hydrogen-widget-codex-usage+1−1
@@ -4,7 +4,7 @@ secondary window when the plan has one. Reads the Codex sign-in in ~/.codex/auth the usage endpoint the Codex CLI shows in /status. Refreshes every minute.""" import json, os, sys from importlib.machinery import SourceFileLoader-lib = SourceFileLoader('hwlib', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'hydrogen-widget-lib.py')).load_module()+lib = SourceFileLoader('hwlib', os.path.join(os.path.dirname(os.path.realpath(__file__)), 'hydrogen-widget-lib.py')).load_module()  def data():     a = json.load(open(os.path.expanduser('~/.codex/auth.json')))
install.sh+3
@@ -67,3 +67,6 @@ STAGED_VERSION="$(cat "$HERE/VERSION" 2>/dev/null || echo unknown)"  # hydrogen-widget (adom/hydrogen#17): the Claude and Codex usage widgets for Hydrogen's title bar. for w in "$HERE"/bin/hydrogen-widget-*; do [ -f "$w" ] && install -m 0755 "$w" "${HOME}/.local/bin/$(basename "$w")"; done+# >>> hydrogen-widget (adom/hydrogen#17): the Claude and Codex usage widgets for Hydrogen's title bar.+for w in "$HERE"/bin/hydrogen-widget-*; do [ -f "$w" ] && chmod 0755 "$w" && ln -sfn "$w" "${HOME}/.local/bin/$(basename "$w")"; done+# <<< hydrogen-widget