dotfiles/bin/§calc

7 lines
178 B
Plaintext
Raw Permalink Normal View History

2024-02-19 20:37:09 +01:00
#!/bin/bash
function _echo(){
[ -t 0 ] && echo "$1" && exit
notify-send -i kcalc "$1" && exit
}
_echo `python3 -c 'import sys; print(eval(" ".join(sys.argv[1:])))' "$*"`