You are not logged in.

#1 2018-05-15 14:03:15

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

rofi-calc - Do live calculations in rofi!

rofi-calc

TEYgcol.png

See it in action: https://raw.githubusercontent.com/svens … r/demo.gif

This is a plugin for rofi which abuses rofi a little bit in order to do live calculations. This is a tool that I've needed a lot in the past. Usually when I need to do conversions like these I spin up WolframAlpha or such but it's so slow as compared to hitting Super+C and just typing in what I want.
Since this uses the qalc tool from libqalculate you can even type in things that are kind of natural language (just like in WolframAlpha). For instance, try

250 + 30%

or

5000 EUR to BTC

.

Check out rofi-calc on GitHub.

Hopefully, somebody finds this useful.

Last edited by Svenstaro (2020-07-03 10:22:14)

Offline

#2 2018-05-15 14:13:56

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: rofi-calc - Do live calculations in rofi!

Hello!

This looks really cool, but your post violates the CoC's guidelines for pasting pictures.

I have turned your picture into a link (feel free to add a thumbnail that follows the guidelines).

All the best,

-HG

Offline

#3 2018-05-15 14:15:03

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: rofi-calc - Do live calculations in rofi!

Oh, you're right! Sorry.

Offline

#4 2020-07-03 10:19:31

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: rofi-calc - Do live calculations in rofi!

Hey all, I just wanted to post a small update as quite a lot changed since I last posted this.

New features:

  • Persistent history (and you can even delete items by selecting them and pressing SHIFT-DEL)

  • Now in [community]!

  • Add terse mode via -terse flag

  • Add -no-bold flag to make output less exciting

  • Nicer output with proper equation splitting

Offline

Board footer

Powered by FluxBB