Skip to content
leewynnePublic

About

Upcoming UFC, ONE Championship, PFL and big boxing fight cards in your Omarchy bar: a countdown pill and a fight-card popup. Data from ESPN and onefc.com.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OmaCombat

The next UFC event in your Omarchy bar. Click it for the full fight card, step through every upcoming event with the arrows, and switch to ONE Championship, the PFL or the big boxing fights coming up.

OmaCombat: the UFC fight card and the boxing tab

  • Bar pill with the headliners and a countdown to the main card (Moicano vs. Nolan · 6d), turning to LIVE in the urgent colour once the first bout starts. Short on bar space? Switch to the icon style: just the glove, which fills with your theme's urgent colour while an event is on.
  • Fight card popup with the date and time in your time zone, venue, broadcaster, and every bout split into main card, prelims and early prelims, with records, countries, weight classes and five-round fights marked.
  • Browse ahead through every scheduled event with ‹ › or h / l.
  • Live results: while an event is on, it refreshes every two minutes and highlights each winner as bouts finish.
  • ONE Championship: the ONE tab (or o) lists every ONE event with its start time in your time zone, venue and full card: MMA, Muay Thai, kickboxing and grappling, title fights marked, and results with the winner and method as bouts finish.
  • PFL: the PFL tab (or p) has every PFL event on ESPN's schedule, laid out like the UFC's: main card and prelims, records, five-round fights and live results.
  • Boxing: a switch at the top of the popup (or b) lists the big boxing fights coming up, with the date, city, broadcaster, rounds and the titles on the line for every bout on the card. UFC is always where it opens.
  • A secret, for anyone who spent 1985 in an arcade: the popup knows a certain famous code.

Install

omarchy plugin add https://github.com/leewynne/omacombat.git --enable

The widget lands in the right section of the bar. Move it with omarchy bar move leewynne.omacombat --section center or by dragging it.

Requires an Omarchy release with the plugin shell (omarchy plugin) and curl, which Omarchy ships.

Coming from Next UFC

OmaCombat is Next UFC renamed, with ONE Championship, the PFL and boxing added. It has a new plugin id, so swap one for the other and set your bar label again if you'd changed it:

omarchy plugin remove leewynne.next-ufc
omarchy plugin add https://github.com/leewynne/omacombat.git --enable
omarchy bar set leewynne.omacombat label icon

Use

Action Does
Left click Open the fight card
Middle click Refresh
Right click Open the next UFC event on ESPN

Inside the popup: u, o, p and b switch between UFC, ONE, PFL and boxing, ← → or h l change event, ↑ ↓ or j k scroll the card, Enter opens the event's page, r refreshes, Esc closes, and Tab moves to the neighbouring bar panel.

It can also be driven over IPC, for a keybinding for instance:

omarchy-shell shell toggle leewynne.omacombat '{}'
omarchy-shell leewynne.omacombat ufc
omarchy-shell leewynne.omacombat one
omarchy-shell leewynne.omacombat pfl
omarchy-shell leewynne.omacombat boxing
omarchy-shell leewynne.omacombat next
omarchy-shell leewynne.omacombat previous
omarchy-shell leewynne.omacombat refresh

Settings

Change these from the bar settings, or with omarchy bar set:

omarchy bar set leewynne.omacombat label icon
omarchy bar set leewynne.omacombat one big
omarchy bar set leewynne.omacombat pfl false --json
omarchy bar set leewynne.omacombat boxing titles
omarchy bar set leewynne.omacombat clock 24h
omarchy bar set leewynne.omacombat refreshMinutes 60 --json
Key Values Default
label fighters (Gane vs. Hokit · 6d) or icon (the glove alone) fighters
one all, big (skips the weekly ONE Friday Fights) or off (no ONE tab) all
pfl true, or false for no PFL tab true
boxing big (ESPN's key dates), titles (every card with a world title fight), all (ESPN's full schedule) or off (no boxing tab) big
clock locale, 24h, 12h locale
refreshMinutes 5–240 30

Data

UFC and PFL schedules, cards and results come from ESPN's public MMA scoreboards (site.api.espn.com). Boxing comes from ESPN's boxing schedule, read through ESPN's news API (now.core.api.espn.com). That story lists dates but not start times, so boxing cards show the day only, and it has no results.

ONE Championship's schedule and cards come from the events pages on onefc.com. A card is only fetched for the event you're looking at, when you open it and every 15 minutes after, or every two minutes while that event is live.

The plugin requests each schedule every refreshMinutes (UFC's and PFL's every two minutes while one of their events is live) and sends nothing else. No account or API key is needed.

ESPN's feeds are undocumented, the boxing schedule is written by hand, and ONE's pages are read as HTML, so any of them could change; if a tab stops loading, please open an issue.

UFC is a registered trademark of Zuffa, LLC; PFL and ONE Championship are trademarks of their owners. This plugin is a fan project and is not affiliated with, endorsed or sponsored by the UFC, Zuffa, TKO, the Professional Fighters League, ONE Championship, ESPN or any boxing promoter or sanctioning body.

Yie Ar Kung-Fu is Konami's. The tribute hidden in this plugin uses original art, rules and code, contains nothing from Konami's games, and is not affiliated with or endorsed by Konami.

Remove

omarchy plugin remove leewynne.omacombat

This removes the plugin folder and its bar entry. It stores nothing else.

Develop

./tests/run

The model (Model.js) and the game (Arcade.js) are plain JavaScript shared by the QML and the node tests. tests/fixtures/scoreboard.json and pfl.json are trimmed real ESPN UFC and PFL responses, tests/fixtures/boxing.json a real copy of the boxing schedule story; the one-*.html fixtures are trimmed copies of onefc.com's schedule and two event pages.

The game's sound effects in sounds/ are synthesised by node tools/sfx.js. They play through Qt Multimedia when it's installed, or PipeWire's pw-play when it isn't.

License

MIT

About

Upcoming UFC, ONE Championship, PFL and big boxing fight cards in your Omarchy bar: a countdown pill and a fight-card popup. Data from ESPN and onefc.com.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages