Skip to content

MatthiasGrandl/Loungy

Repository files navigation

Logo
Loungy

Loungy is an application launcher in the vein of Raycast and Alfred.
It's built using GPUI, a GPU accelerated application framework for Rust.

Showcase

Loungy.mp4

Features

  • Launching apps
  • Calculator (including unit/currency/date conversions, thanks to Numbat)
  • Task manager (killing processes)
  • MacOS menu search
  • Clipboard manager
  • Tailscale peer list
  • Bitwarden password client (only viewing, not editing)
  • Matrix Chat client (very early WIP)

In the absence of a proper extension system (which is wanted, but still quite far out at this point) I am adding features I need, but that aren't universally useful behind cargo feature flags.

So far there is clipboard, tailscale, bitwarden and matrix. You can also build all optional features with cargo build --all-features --release.

Installation

Either download the .dmg from the releases section or use homebrew:

brew install loungy

The pre-built version comes with the following optional crate features:

  • clipboard

If you want to try any other optional features, at the moment you will have to build Loungy yourself.

Development

Requirements

  • Xcode Apple Swift 5.9.2
  • Rust v1.75.0

Running

cargo run dev

Caveats

  • It is MacOS only, but I would love to support a Linux build in the future. That won't happen until GPUI adds Linux support. There is some very rough Linux support. It's still very early since a lot of functionality in GPUI required for Loungy hasn't made it into the Linux GPUI yet (they are obviously focusing on getting Zed features running first).
  • Accessibility is still a nightmare. GPUI is lacking a proper accessible text input so currently I am implementing one myself. Screen readers or people with impairments please don't try to use this yet.
  • The window position is currently hardcoded, so depending on your screen resolution it might not be in the best position. Will be fixed as soon as there is an API for it in GPUI. I kinda fixed this, but it's probably still wonky on multi display setups.
  • The hotkey is currently hardcoded to Opt+Ctrl+Cmd+Space Hotkeys are now rebindable, but it's still a bit sketchy since GPUI doesn't report raw keycodes, while the Tauri hotkey manager uses raw keycodes. To rebind you can simple select any command in the root search and use the Change Hotkey action.

Linux

Experimental Linux support. Building requires (on Fedora Wayland):

  • openssl-devel
  • wayland-devel
  • g++
  • fontconfig-devel
  • libxcb-devel
  • libxkbcommon-x11-devel
  • libxkbcommon-devel

Many features won't work yet, since I am using a lot of MacOS specific APIs for autofilling. So notably the clipboard and bitwarden features will need Linux specific implementations to get working.

Credits

Loungy wouldn't be possible without the awesome open source ecosystem:

  • GPUI : The lovely framework
  • Numbat : Used as the calculator
  • Lucide : Amazing open source SVG icon-set
  • Catppuccin : The theme that makes everything look good
  • swift-rs : For providing a way to interface with accessibility APIs and other MacOS native stuff that I wouldn't know how to do with pure Rust
  • nucleo : Fuzzy searcher implemented by the team of my favorite modal editor Helix