Commit Graph
1667 Commits
Author SHA1 Message Date
Ryan Hughes da53c0ff60 Add Pi theme based on system theme
Based entirely on the work of @robzolkos in #5711. That attempt was
adapted to better fit the standard templating system while also adding
color mixing for use in other themes.
2026-05-20 01:53:34 -04:00
Ryan Hughes ae6f2e7ac7 Add color mixing 2026-05-20 01:45:20 -04:00
Ryan Hughes 26281b3863 Prevent maching the check causing spontaneous locking 2026-05-19 21:01:15 -04:00
Ryan Hughes 72c9331c72 Make lock screen behave like a lock screen 2026-05-19 17:20:45 -04:00
David Heinemeier Hansson d468c392a9 Make config/uwsm something you should never need to edit 2026-05-19 21:42:02 +02:00
David Heinemeier Hansson bffc8f1fae Make more resilient 2026-05-19 21:33:12 +02:00
David Heinemeier Hansson 1a630b1239 Pull low battery warning into shell 2026-05-19 21:28:32 +02:00
David Heinemeier Hansson 0f4490c9fc Leave this to the themes 2026-05-19 21:01:51 +02:00
David Heinemeier Hansson abf0a68b54 Drop walker + elephant 2026-05-19 20:54:20 +02:00
David Heinemeier Hansson 7fe472bf8a Simplify 2026-05-19 20:54:20 +02:00
Ryan Hughes b59a8d0bb0 Add Battle.net installer 2026-05-19 14:09:04 -04:00
David Heinemeier Hansson a157b98d5b No longer need wiremix 2026-05-19 18:51:05 +02:00
David Heinemeier Hansson 7ea4e1ab04 Switch hyprlock to QS 2026-05-19 17:08:14 +02:00
David Heinemeier Hansson 0f5044167c Move from hypridle to QS 2026-05-19 12:02:28 +02:00
David Heinemeier Hansson c6d7aa9494 Drop the systemd running on advice from outfoxxed 2026-05-19 11:20:29 +02:00
David Heinemeier Hansson 2896fc5c98 Merge branch 'dev' into omarchy-shell 2026-05-19 10:50:47 +02:00
ed93a047ee Fix power profile race on plug/unplug events (#5898)
The udev power_supply rule fires before sysfs `online` is updated on
some laptops (notably Lenovo Yoga Pro 7 14IAH10 with USB-C charging).
The autodetect branch reads the stale value and sets the wrong profile,
so the system stays on `performance` after unplug (or vice versa).

A single plug/unplug typically fires 3-4 udev events within ~1s (ACAD +
each USB-C port). With `systemd-run --unit=omarchy-power-profile
--collect`, duplicate invocations against the same unit name can be
dropped while the first is still running, so the surviving event isn't
guaranteed to be the latest one.

This adds a 0.3s settle delay at the top of the autodetect branch only.
Explicit `ac` and `battery` invocations remain instant.

Tested on Lenovo Yoga Pro 7 14IAH10 (Intel Core Ultra 9 285H, Omarchy
3.8.1).

Co-authored-by: Iqbal Attila <iqbal@kcmon.id>
2026-05-19 09:42:13 +02:00
David Heinemeier Hansson 2ac069e72b Drop bluetui and impala in favor of shell controls 2026-05-19 08:20:13 +02:00
Ryan Hughes d4bf8d0eea omarchy dev ui-preview: jump to a specific section via argument
Pass a section name to open the gallery with the cursor already on
that component instead of scrolling from the top. Useful when
iterating on a single widget.

  omarchy dev ui-preview              # default position
  omarchy dev ui-preview button       # land on the Button section
  omarchy dev ui-preview button-group # land on ButtonGroup
  omarchy dev ui-preview slider       # land on Slider, etc.

The bin script forwards the argument as {"section": "..."} in the
shell summon payload. The gallery's open(payloadJson) parses it,
clamps against visibleSections (unknown names fall back to default),
and sets focusSection + selectedIndex inside the existing Qt.callLater
so the cursor's hasCursor bindings fire ensureCursorVisible
automatically.
2026-05-18 12:36:46 -04:00
Ryan Hughes 648bc54db1 Unify font sizes through qs.Commons.Style
Themes now drive typography the same way they drive colors: one [font]
base-size in shell.toml is the rem root, and every Style.font.<token>
(caption, bodySmall, body, subtitle, title, heading, display,
displayLarge, iconSmall, icon, iconLarge) derives from it via a fixed
multiplier. Themes can also pin individual tokens for stylistic
emphasis. base-size is clamped 11..13 until row-height tokens exist.

Bar dimensions move to the same singleton: [bar] size-horizontal /
size-vertical replace the hardcoded 26/28 in Bar.qml, exposed as
Style.bar.sizeHorizontal / sizeVertical.

Style.qml also resolves the fontconfig 'monospace' alias via fc-match
and exposes Style.font.resolvedFamily so panels can display the
concrete family. Watches ~/.config/fontconfig/fonts.conf so it tracks
'omarchy font set <name>'.

The qs.Ui kit (PillButton, Dropdown, Toggle, TextField, etc.) and
every first-party plugin (bar widgets, settings, menu, clipboard,
emoji, polkit, notifications, osd, image-picker, dev-gallery) now
bind to Style.font.* instead of pixel literals. Only three deliberate
display-scale outliers remain: the notification empty-state glyph and
the weather flyout's hero temperature pair, all commented.

Background plugin's applyTheme IPC fast-path also pushes shell.toml to
Style so theme swaps update typography and bar size without waiting
for inotify debounce.

Dev gallery (omarchy dev ui-preview) now ships a Typography section
that renders the full scale and theme tokens live, and its summon
command is fixed (omarchy-shell-ipc -> omarchy-shell).
2026-05-18 11:33:19 -04:00
Ryan Hughes f48eef58e0 Trim doc and comment drift in qs.Ui kit 2026-05-18 10:17:01 -04:00
David Heinemeier Hansson 0fe985b45d Promote shell to its own top-level directory 2026-05-18 14:56:59 +02:00
David Heinemeier Hansson 4551b8920a Fix glyph notifications to be slim 2026-05-18 14:29:43 +02:00
David Heinemeier Hansson b0f5d941ba Switch to running quickshell as a systemd service that is auto-restarted if it crashes 2026-05-18 13:58:07 +02:00
Ryan Hughes a1e11f68b8 Add omarchy dev ui-preview to open the qs.Ui dev gallery 2026-05-18 02:49:04 -04:00
Ryan Hughes c17ab99fa4 Stay Awake: filled red coffee cup when active, empty cup at rest 2026-05-18 02:45:19 -04:00
Ryan Hughes 2a6749dc6c Stay Awake: fix state detection, rename, notify on toggle 2026-05-18 02:40:19 -04:00
Ryan Hughes 64115a9cb4 Read cornerRadius from Hyprland instead of the quickshell-menu.json toggle 2026-05-17 23:31:47 -04:00
Ryan Hughes fa4d2bc566 Faster restart-shell, sidestep upstream IPC kill crash
quickshell kill currently trips Quickshell #539 (notifyInternal2 event
loop crash via IpcKillCommand::exec), which leaves the Wayland surface
lingering long enough that the new instance starts on top of the dying
one — a duplicate bar. SIGKILL drops the client connection and the
compositor cleans up surfaces immediately; the shell has no persistent
state to flush. Sub-20ms restart, no duplicates.
2026-05-17 18:16:03 -04:00
David Heinemeier Hansson 75f04857f5 No longer used 2026-05-17 22:11:10 +02:00
David Heinemeier Hansson 0d98d7e2af Don't show notifications for things that have other visual indicators
Like the bar indicators
2026-05-17 22:09:31 +02:00
David Heinemeier Hansson 671dd4698c Kill this weird pattern 2026-05-17 21:55:53 +02:00
David Heinemeier Hansson a41b094baf Always set 2026-05-17 21:51:09 +02:00
David Heinemeier Hansson 9426196a47 Always set 2026-05-17 21:50:35 +02:00
David Heinemeier Hansson 89a6517018 Simplify scaling 2026-05-17 21:44:08 +02:00
David Heinemeier Hansson ac3dd76e83 Errant - 2026-05-17 21:30:58 +02:00
David Heinemeier Hansson a60c2a4367 Combine here too 2026-05-17 21:09:24 +02:00
David Heinemeier Hansson 2df003ccc5 Slim 2026-05-17 21:02:18 +02:00
David Heinemeier Hansson 50ed525c69 Combine and cache for faster reactions 2026-05-17 21:00:39 +02:00
David Heinemeier Hansson 01df3669b8 Unused 2026-05-17 20:47:48 +02:00
David Heinemeier Hansson c6917585cd Simpler 2026-05-17 20:47:23 +02:00
David Heinemeier Hansson 04d3170e07 Simpler 2026-05-17 20:47:21 +02:00
David Heinemeier Hansson 20aa4bf205 Don't need fallback for earlier versions 2026-05-17 20:05:58 +02:00
David Heinemeier Hansson d6e43ee6ff Simplify control logic 2026-05-17 20:05:49 +02:00
David Heinemeier Hansson b719de7774 We should do all or not 2026-05-17 20:02:01 +02:00
David Heinemeier Hansson 8718962d13 Not needed 2026-05-17 19:59:49 +02:00
David Heinemeier Hansson 9878b5b791 Don't use notifications for toggles that have clear visual feedback already 2026-05-17 19:52:11 +02:00
David Heinemeier Hansson 4e2da8480a Standardize all notification sending 2026-05-17 19:51:29 +02:00
David Heinemeier Hansson 682c6406bd No need to quote glyphs 2026-05-17 19:51:29 +02:00
David Heinemeier Hansson 27497b19bf Expose DNS setting in the network widget 2026-05-17 19:51:29 +02:00