Skip to content

Repository files navigation

elephant-numr

numr calculator provider for the Walker launcher with the Elephant backend.

screenshot

Requirements

  • Walker with Elephant backend
  • numr-cli in PATH
  • Go, curl, and tar for manual builds

Elephant providers are Go plugins, so numr.so must be built against the same Elephant version as the running elephant binary. This repository pins that version in build.sh and aur/PKGBUILD.

Installation

Manual

git clone https://github.com/nasedkinpv/elephant-numr
cd elephant-numr
sudo ./build.sh

The script builds Elephant, the standard providers, and the Numr provider together, then installs them to /usr/bin/elephant and /usr/lib/elephant/.

Setup

Add numr to your Walker providers:

[providers]
default = [
  "desktopapplications",
  "websearch",
  "numr",
]

Optional prefix:

[[providers.prefixes]]
prefix = "+"
provider = "numr"

Restart Elephant:

systemctl --user restart elephant

Keybindings

Key Action
Enter Copy result to clipboard
Ctrl+R Refresh exchange rates
Shift+Enter Save expression to numr file

Press Alt+J for actions menu.

Configuration (optional)

~/.config/elephant/numr.toml

min_chars = 2        # minimum query length
require_number = true # require digit in query
command = "wl-copy -n %VALUE%"  # copy command

Updating

When Elephant updates, update the pinned version in build.sh and aur/PKGBUILD, rebuild, and restart Elephant. A stale plugin will fail to load.

About

numr calculator provider for Walker/Elephant launcher

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages