svenstaro / rofi-calc

🖩 Do live calculations in rofi!
MIT License
966 stars 31 forks source link

Include 1,000 comma separator in output #37

Closed ghost closed 4 years ago

ghost commented 4 years ago

Is it possible to implement an argument which will show , separators in the output? For instance: 500*12 = 6,000 rather than 6000

This would help visualize the results much faster!

ghost commented 4 years ago

Solved:

This can be achieved by passing an argument to qalc: qalc --set 'digit_grouping 2' or by adding that argument to ~/.config/qalculate/qalc.cfg

svenstaro commented 4 years ago

Could you make a PR to document this in the README?

ghost commented 4 years ago

Done. Thanks for this awesome program

jorgelaranjo commented 1 year ago

@svenstaro Calling directly from the CLI rofi -show calc -modi calc -no-show-match -no-sort -no-persist-history -theme gruvbox-dark-hard

rofi-2022-10-16-1124-00000

and calling from i3wm config

bindsym $mod+c exec "rofi -show calc -modi calc -no-show-match -no-sort -no-persist-history -theme gruvbox-dark-hard"

rofi-2022-10-16-1124-00001

Wonder why does not show the separator...