add rofi_calc

This commit is contained in:
Rasmus Moorats 2024-02-08 11:21:34 +02:00
parent 3e19df81d6
commit 8ed50ef280
Signed by: xx
GPG key ID: FE14255A6AE7241C
2 changed files with 11 additions and 0 deletions

View file

@ -11,6 +11,7 @@ bin = @["b64d",
"latest",
"randchars",
"rofi_open_in_nvim",
"rofi_calc",
"saved",
"urle",
"urle_all",

10
src/rofi_calc.nim Normal file
View file

@ -0,0 +1,10 @@
import std/osproc
let rofi = startProcess(
"rofi",
args = ["-show", "calc", "-modi", "calc", "-no-show-match", "-calc-command-history",
"-no-sort", "-calc-command", "printf '%s' '{result}' | wl-copy"],
options = {poUsePath}
)
rofi.close