Calculator for i3

I had an idea for a calculator that opens on a window identical to that of whichever terminal you use, same background and font color, etc., but with buttons and all, and that is correctly tiled by the window manager.

pic: 8 hours on gimp

Is this possible? Has it already been done? Where to start?

Attached: 1200px-I3_window_manager_screenshot.png (1200x750, 357K)

Other urls found in this thread:

tldp.org/HOWTO/NCURSES-Programming-HOWTO/mouse.html
twitter.com/SFWRedditImages

man expr

echo $((125./3))

Why would you use a mouse with i3?

Have you tried EXWM? We have three of those.

bc*

it'd be pretty neat if GUI applications could replace / "return" to terminal windows desu

Too limited.
Doesn't work on bash and shells frequently don't have a good math support.
Just use bc.

python interactive mode does math

Just use some REPL programming lang, i use J.

Ctrl-Alt-J allows you to use it with vi keybinds too

>it'd be pretty neat if GUI applications could replace / "return" to terminal windows desu

so, you're saying that's not possible? why not?

no window manager I know of currently has this feature

wtf do you need buttons on the UX for?

dc
presto, a good fucking calculator. If thats not enough, use whatever REPL you like

wtf do you need buttons on the UX for?

"dc"
presto, a good fucking calculator. If thats not enough, use whatever REPL you like

wtf do you need buttons on the UX for?

dc
presto, a good fucking calculator. If thats not enough, use whatever REPL you like

use i3get to get the id of the current window (terminal), spawn calculator window on scratchpad, swap calculator window with terminal window. Or make layout of terminal window tabbed, mark it, then move calculator to mark.

why a calculater?? just use google

LuaJIT is better

You can react to mouse events in ncurses.
tldp.org/HOWTO/NCURSES-Programming-HOWTO/mouse.html

Why don't you use a launcher like dmenu for your calculations?

I do but it could be better.

In what way? Not trying to be an asshole, just curious.