Skip to content

Conversation

@tobi
Copy link

@tobi tobi commented Nov 10, 2025

Omarchy could use something like apple's open, a generic way that cli
users can use to start desktop apps, urls, directories, or files using
their XDG default players.

Currently supports as parameters:

  • url (dispatched to xdg-open)
  • files (.wav, .mp4, *) (dispatched to xdg-open)
  • directory (dispatched to xdg-open, opens file-manager)
  • terminal commands (executed directly)
  • .desktop files (launched with uwsm-app)
tobi ~ ❯❯❯ omarchy-open .
Launching app: xdg-open /home/tobi

tobi ~ ❯❯❯ omarchy-open Videos/screenrecording-2025-11-10_12-02-17.mp4
Launching app: xdg-open /home/tobi/Videos/screenrecording-2025-11-10_12-02-17.mp4

tobi ~ ❯❯❯ omarchy-open hey
Launching app: /home/tobi/.local/share/applications/HEY.desktop

It also searches through XDG directories for applications to launch. Examples: `omarchy-launch hey" will find the .desktop in /home/user/.local/share/applications/HEY.desktop and execute that.

I personally find this script useful, merge if you like it. I alias open=omarchy-open on my system.

Omarchy could use something like apple's open, a generic way that cli
users can use to start desktop apps, urls, directories, or files using
their XDG default players
@Vladimir-csp
Copy link

https://github.com/Vladimir-csp/app2unit/

@dhh
Copy link
Member

dhh commented Nov 17, 2025

The current open alias is able to handle url/images/videos/directories (just xdg-open). It doesn't do .desktop files. Think separating these into two buckets could make sense, so we have something like launch for the latter. Curious when you use that, though, versus triggering the app launcher on super + space?

@tobi tobi closed this Nov 23, 2025
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.

3 participants