prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add rofi launch calculator

savaobay opened this issue · comments

Feature Request

Description

Can you add https://github.com/svenstaro/rofi-calc

Use Case

Makes calculations easy based on rofi without having to install additional applications

Proposed Solution

Launch rofi calculator with theme using keybinding Command+Shift+C

This plugin of rofi got this deps.

https://archlinux.org/packages/extra/x86_64/libqalculate/
https://archlinux.org/packages/extra/x86_64/rofi-calc/

Also can you check if the aur package is working?
https://archlinux.org/packages/extra/x86_64/rofi-calc/

If we can pull this off we can theme this to follow Hyde

Here's some extra tools we have using rofi
image

yes it works but i don't know how to make it follow the theme :V
240607_00h19m01s_screenshot

Would like to see this themed too 😃

I just use my old dmenu script with rofi

image

image

commented

I see so this way we will only need qalc, right?

yes the lib
1 extra/libqalculate 5.2.0-1 [0 B 15.49 MiB] [Installed]

I forgot if you need the gui version to run updates on currency to be able to convert. I might have found a cli command to do that but I forgot

Edit: I do not have qalculate-qt installed so I guess I managed to update.
But calculations work with only the lib

commented

That's perfect! I only got the Flatpak qt one. Didn't know the lib exposes an executable. Can I get inspiration from your script? Will add a Hyde show calc option if anyone would like to use it.

Welcome

qalc -e
updates the currency rate
I added to my script
...
qalc -e &
sleep 1
...
to always run a quick update

Meaning minimum requirements besides rofi is libqalculate

commented

to always run a quick update

hmm can we make it run every 24 hours by default? or every after reboot/relogin. I takes much time for me to always fetch.

Sounds like a plan

commented

Hyde show calc

At launch :
image

After some calcualtions:

  • last result becomes the entry message
  • the message will be added to pasteboard
  • also being notified too
    image

image

regarding the currency rate, updated it every launch in background, and works like a charm.

Very nice.

But dunst is a bit unreadable in Mocha

240630_09h21m32s_screenshot

commented

Reverted it back to default for now. Soon if we had a single executable for wallbash. We might as well generate the color scheme on the go.

(we can cater for both light and dark modes, but this might be start of having a bloated icon pack stored in the repo)

image

for now I helped myself :)

That's perfect! I only got the Flatpak qt one. Didn't know the lib exposes an executable. Can I get inspiration from your script? Will add a Hyde show calc option if anyone would like to use it.

I can use the Hyde show calc option. But I was wondering how to implement this little program in my setup. So when I want to set a keybind for that, do I need to use Hyde show calc or is it better to use something else (like the actual shell script and if so where can I find that).

commented

image

edit your keybinds at ~/.config/hypr/keybindings.conf

image

edit your keybinds at ~/.config/hypr/keybindings.conf

Why do you use bindd and not just bind.

commented

Why do you use bindd and not just bind.

Upon the latest update we can now have explicit description for keybinds hence adding 'd' flag.

image