Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

jessemillar/menu-calc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

This repository is no longer maintained. For more up-to-date code, see sumnerevans's fork.

menu-calc

A calculator for Rofi/dmenu(2)
Screencast

Dependencies

bc
xclip
Rofi or dmenu(2)

Usage

menu-calc uses bc as the backend and will accept any operations bc is able to do:

= -h
= 4+4
= (4+2)/(4+3)
= 4^2
= sqrt(4)
= c(2)`

The answer can be copied to the clipboard and used for further calculations inside (or outside) Rofi/dmenu.

If launched outside of Rofi/dmenu the expression may need quotation marks.

Custom Usage

To launch directly into the calculator, use the following command (useful if bound to "super + equal" in sxhkd or the like):

= [rofi/dmenu parameters]

For example:

= -location 2 -width 100

About

A calculator for Rofi/dmenu(2)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%