GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mirql/appring: A radial menu for the desktop: hold a key, point, release to run.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
appring
appring
 
 
assets
assets
 
 
experiments
experiments
 
 
macos
macos
 
 
nix
nix
 
 
tools
tools
 
 
.all-contributorsrc
.all-contributorsrc
 
 
.coderabbit.yaml
.coderabbit.yaml
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
flake.lock
flake.lock
 
 
flake.nix
flake.nix
 
 
justfile
justfile
 
 

Repository files navigation

appring. hold. point. release.

A radial menu for the desktop: hold a key, point, release to run.

License: MIT Platform: Linux (Wayland) Built on Quickshell Tested on Hyprland
GitHub stars Last commit Commit activity All contributors

Once you've cast spells with OPie, opening Firefox the normal way just feels slow.

— Askar, author of appring

appring is a radial menu. Hold a key: a ring of icon buttons appears around the pointer, each in its own colour. Point in a direction (the whole slice of the screen counts, never a small target), then release the key or click to run that item. Groups open as a smaller ring around their own button. Esc or a right click cancels; releasing in the centre does nothing. The items are apps and commands from a JSON file you write. It is the kind of menu OPie made popular in World of Warcraft, for your desktop.

git clone https://github.com/mirql/appring && cd appring
nix develop                          # quickshell and the test tools
just run                             # start it, hidden
just open                            # show the default menu (bind this to a key)
just commit                          # run the highlighted item (bind this to the key's release)

Note

appring is young (0.1). It runs on Linux under Wayland, built on Quickshell. For now we build and test it under Hyprland; other compositors have not been tried yet. macOS: experimental, see below. Windows is planned, not started. It is packaged for Nix; other packages are not there yet.

Why

Launchers make you type, docks and menus make you aim. A radial menu asks for neither: your hand learns the directions, and after a few days you pick an item without looking.

  • Directions, not targets. The whole slice of the screen counts, so a quick flick is enough.
  • Your menu, your way. Apps and commands from a JSON file, groups for the rest, a style per item if you want one.
  • Out of the way. Nothing on screen until you hold the key, gone when you release it.

Install

With Nix (flakes):

nix run github:mirql/appring                 # try it: starts it, hidden until opened
nix profile install github:mirql/appring     # or install the `appring` command

On NixOS, add the flake as an input and the package to your system:

# flake.nix: inputs.appring.url = "github:mirql/appring";
environment.systemPackages = [ inputs.appring.packages.${pkgs.system}.default ];

Then start it with your session and bind a key to open it, and the key's release to run the highlighted item. These lines call the appring command, so it has to be on your PATH: installed with nix profile install or as a NixOS package (nix run does not put it there). On Hyprland:

exec-once = appring run
bind = SUPER, grave, global, appring:ring

The bind is a Hyprland global shortcut: appring hears the key's press (it opens) and its release (the highlighted item runs) straight from Hyprland, with no command to start each time. On other compositors, bind the press to appring open and the release to appring commit.

appring help lists the commands: run, open [NAME], commit, cancel, toggle [NAME], settings, stop, restart. open and settings start it when it is not running. The package also installs a desktop entry ("appring", it opens the appearance window) and the icons.

Without Nix, or from a checkout: you need Quickshell on your PATH, and start it with the checkout's appring folder (the bind stays the same):

exec-once = quickshell -p /path/to/appring/appring -d
bind = SUPER, grave, global, appring:ring

On other compositors, bind the press to quickshell ipc -p /path/to/appring/appring call appring open "" and the release to ... call appring commit.

appring draws its own opening and closing; turn off Hyprland's layer animation for it, or Hyprland shrinks and fades its full-screen layer on top, which looks like the ring sliding away:

layerrule = noanim, ^(appring)$

macOS (experimental)

We are still finding out what the macOS app should be, so there are two experiments to try:

  • a native menu-bar app in macos/ (Swift, not Quickshell): the same menu file and the same gesture, below;
  • a Qt app that reuses the Linux ring's QML unchanged, in experiments/macos-qt: it draws the ring, without the hold key or your menu yet.

The menu-bar app

The menu-bar program in macos/ has the same menu file and the same gesture: hold a key, point, release.

cd macos
swift run appring-core-tests
swift run appring          # menu bar, hidden until you hold the key
# or a double-clickable app:
./build-app.sh             # dist/appring.app

Hold Right Option (the menu bar can switch that to Right Command, Right Control, F19 or `). Point, then release to run. Esc or a right click cancels; a click also runs the highlighted item. The first launch asks for Accessibility, which the hold key needs. Without it, use Open in the menu bar.

appring settings (or Edit menu…) creates ~/.config/appring/menu.json from the Mac default if you don't have one, and opens it. There is no appearance window yet. appearance.json is still read for scale, dead zone, slice gap, labels, enlarge-selected and open-at-cursor. With no labels key, the Mac app shows the selected item's name (Linux still defaults to none). Near a screen edge the Mac ring moves in until every button shows, and the pointer moves with it.

Your menu

The ring reads ~/.config/appring/menu.json each time it opens ($XDG_CONFIG_HOME/appring, or APPRING_CONFIG_DIR). Without one, Linux shows appring/default.json and macOS shows macos/Sources/appring/default.json (Safari, Terminal, Finder, Tools). open "tools" reads menu-tools.json from the same folder. A menu name cannot contain / or ...

{
  "style": { "glowColor": "accent" },
  "items": [
    { "label": "Browser", "icon": "firefox", "run": ["firefox"] },
    { "label": "Terminal", "icon": "utilities-terminal", "run": ["foot"] },
    { "label": "Screenshot", "icon": "applets-screenshooter", "run": ["grim", "-g", "0,0 800x600", "/tmp/shot.png"] },
    { "label": "Tools", "icon": "applications-utilities", "items": [
      { "label": "Calculator", "icon": "accessories-calculator", "run": ["gnome-calculator"] }
    ] }
  ]
}
  • run is an argv list, started directly, without a shell. For a shell command, say so: ["sh", "-c", "…"].
  • icon is an icon name from your icon theme.
  • items makes a group. By default it works as in OPie: its button shows one of its items (the face) and runs it, the mouse wheel over it turns to the next one, and resting on it shows the others as a small ghost ring around it; move on into the ghost ring and release over one to run it (it becomes the face). A middle click jumps into the group (the whole ring becomes its items); Esc or a right click goes back. Per group:
    • open: rotate (the default above), jump (opening it switches the ring to its items), satellite (its items open as a smaller ring around it). The appearance window sets the default for every group.
    • rotation, which item a rotate group shows next: remember (the last one you ran or turned to; the default), cycle (the next one after each run), shuffle or random (another one at random after each run), reset (the first one, each time the ring opens).
  • style (top level, per group, per item): shape (rounded-square or circle), cornerRadius, size, glowColor (the slice's colour: auto, a #rrggbb, or accent, ok, warn, error, muted, dim, text), glowSize, ringRadius, caption (none, selected, all), captionSize, backdrop (true: a soft halo behind the ring).

Appearance

quickshell ipc -p appring call appring settings opens the appearance window (or add it to your menu as an item). It shows a live preview, and saves to ~/.config/appring/appearance.json at once:

Setting Default
Ring scale 1.0 (0.5 to 2)
Open at the cursor (off: the middle of the screen) on
Animate transitions on
Closing: fade, zoom (shrinks to the centre), spiral (buttons swirl outward), none fade
Flash on run: the item you run flashes briefly on
Instant pointer rotation (off: the chevron swings round to the cursor) off
Enlarge selected slice on
Colours from icons (off: a fixed palette) on
Slice labels: none, selected, all none
Groups: rotate, jump, satellite (see Your menu) rotate
Nested ring preview (the ghost ring when resting on a group) on
Centre spin, seconds per turn (0: still) 4
Gap between slices, where nothing is selected 0
Dead zone around the centre, px 40
Speeds, ms: opening, closing, run flash, focus change, glow fade, button grow 250, 180, 300, 180, 300, 100
Chevron speed (how fast it swings round) 1.0x
Glow strength; flash pop (how much the button grows) 0.75; +30%

Settings by environment: APPRING_RELEASE_KEY (Super, Alt, Ctrl, Shift), APPRING_REST_MS (resting on a group opens it, default 250), APPRING_GHOST_MS (resting on a group shows its ghost ring, default 250), APPRING_REDUCED_MOTION=1. More in appring/shell.qml.

Coming from ring-app, appring's earlier name? Nothing breaks: the RING_APP_* names, the IPC target ring and the folder ~/.config/ring-app/ (while there is no ~/.config/appring/) still work. To move (the folders are in $XDG_CONFIG_HOME when that is set, else ~/.config):

cfg="${XDG_CONFIG_HOME:-$HOME/.config}"
[ -e "$cfg/appring" ] || mv "$cfg/ring-app" "$cfg/appring"

If appring/ already exists, it is the one read: copy the files you want from ring-app/ into it instead. If you set RING_APP_CONFIG_DIR (or APPRING_CONFIG_DIR), that folder is used as it is: leave it, or move it and change the setting with it. When both an APPRING_* and its old RING_APP_* name are set, the APPRING_* one wins. Then point your key binds at appring/ with call appring.

Limits

Warning

appring runs what your menu file says, as you: treat menu.json like a shell script. While open it is a full-screen overlay with keyboard focus. On Linux, another program in your Wayland session can draw a lookalike, and anything that can call Quickshell's IPC as your user can open it and run the highlighted item. On macOS, another process running as you can do the same through the command socket. More in SECURITY.md.

Development

nix develop
just check       # the checks a PR must pass: secret scan and the off-screen tests
just test        # only the tests: a headless compositor, never your desktop

The tests draw the ring in a headless sway with a private bus, drive it with a virtual pointer, check every step and save screenshots. See CONTRIBUTING.md. experiments/ has earlier prototypes in Rust (iced, cxx-qt, egui) and what they showed.

Found a security problem? Please report it privately: SECURITY.md.

Contributing

Issues, ideas and PRs are welcome. Good places to start:

  • Good first issues. Small, self-contained tasks, each saying where to start and what done looks like.
  • Other compositors. Try it on Sway, niri or another wlr-layer-shell compositor and tell us what happens, or add a test for it.
  • Menus and styles. A menu you like, or a style that looks good, makes a fine example for others.

Questions go to Discussions.

Contributors

Thanks to everyone who makes appring what it is (emoji key):

Askar Amirov
Askar Amirov

💻 📖 🎨 ⚠️ 🤔 🚧
Serg
Serg

💻 📦 ⚠️ 📖

Helped in a way that isn't a commit? Comment on any issue or PR: @all-contributors please add @name for ideas, review (and so on).

Thanks

appring's idea comes from OPie, the ring menu addon for World of Warcraft by foxlit (Townlong Yak, Patreon). appring is its own project, not affiliated with OPie, and uses none of its code or art.

License

MIT

About

A radial menu for the desktop: hold a key, point, release to run.

Topics

desktophyprlandlauncherlayer-shelllinuxpie-menuproductivityqmlquickshellradial-menuwayland

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.