Open notifications on click, faster wheel scroll, and xdg-open for links - #9
Conversation
Opening a notification only launched the browser. Mark-as-read was also ignored while a refresh was running, so the bar stayed alarming until the next poll. Hide the thread immediately, queue the GitHub PATCH if a fetch is in flight, and keep an in-flight refresh from restoring it. Validation: - tests/panel-source-test.sh - tests/service-source-test.sh - tests/helper-test.sh Assisted-by: Grok/Grok 4.6
Wayland mice often report a fake 1–2px pixelDelta alongside a real notch. Flickable preferred the pixel value, so the panel crawled. Use pixel scrolling only when it looks like a touchpad, and move about one row per accumulated 120° notch otherwise. Validation: - tests/panel-source-test.sh - tests/service-source-test.sh - tests/helper-test.sh Assisted-by: Grok/Grok 4.6
The handler lived on PanelKeyCatcher, so Flickable kept Qt's default 1–2px Wayland wheel distance and the faster step never ran. Handle wheel as a direct Flickable child, move one row per mouse notch, and scale touchpad pixel deltas. Validation: - tests/panel-source-test.sh Assisted-by: Grok/Grok 4.6
hideNotification destroyed the row immediately, so the click handler read an empty URL and skipped the browser launch. Snapshot the target, open it, then mark the thread. Validation: - tests/panel-source-test.sh - tests/service-source-test.sh - tests/helper-test.sh Assisted-by: Grok/Grok 4.6
omarchy-launch-browser starts a new uwsm unit on every click, which Brave often turns into a window. Hand the URL to the existing browser so it opens as a tab. Private-window and Hyprland focus helpers are not needed for these links. Validation: - tests/panel-source-test.sh Assisted-by: Grok/Grok 4.6
|
Thanks for this — the notification behaviour here is exactly right, and the diagnosis on both the mark-as-read race and the Wayland wheel delta was sharper than the reports that prompted them. I've combined this with #7 and merged it in #10. Four of your five commits are in
I merged rather than squashed specifically so those stayed yours. The one I dropped is One thing worth flagging since it came out of your branch: the Closing as merged via #10. |
|
the reason i wanted xdg-open is because i have the habbit of closing the tab once it is done and never build up the list of tab's, i can see the appeal of your way ill give it a go by changing my habbits. Maybe launch web-app will feel good who knows. Would definetly be good if you get time to make a right click settings panel with a bunch of relevant config where this could be one of the toggle items. |
|
hey @AnthonyPoschen will do. Expect it shortly. |
A gear button in the panel header flips the card to a settings page carrying the open-links behaviour, repository scope, refresh interval, and the archived, forked, and unlit-icon toggles. Open links returns as a setting rather than a hardcoded launcher, so machines without a Chromium-based browser can go back to a browser tab. Settings are written to the widget's entry in shell.json through updateEntryInline, which replaces the entry whole, so every persist merges the current settings forward first. Asked for in #9.
|
@AnthonyPoschen this is done and on There's a gear button in the panel header now that flips to a settings page with Open links, Repository scope, Refresh interval, and toggles for keeping the bar icon unlit and including archived and forked repositories. So if the web app window doesn't win you over, you can put it back on a browser tab without touching the CLI — which was the outcome your One difference from what you described: you asked for right-click, and I went with a header button. Right and middle click on the Octocat are already Refresh, and moving a binding people have in their fingers seemed the worse trade. It also keeps this widget consistent with the settings view in the Omarchy HEY plugin. If the gear proves hard to find, right-click is easy to add as a second route — say the word. Thanks again for both the fixes and the suggestion. |
What
Three UX fixes, tested on a live Omarchy bar against this fork:
mstill mark without opening.pixelDelta, and a WheelHandler only steals that event if it is a direct child of the Flickable.xdg-open.omarchy-launch-browserstarts a new uwsm unit on every click, which Brave/Chromium often turn into a window. Inbox links only need a tab in the existing browser. Super+Shift+B is unchanged.Why
Clicking a notification felt like GitHub’s inbox should: see it, open it, clear the alert. Wheel travel and new windows were the other daily papercuts.
Notes
m: mark only.tests/panel-source-test.shandtests/service-source-test.shcover the new paths.