insect plugin for rofi
/ dmenu
. This is an analog of macOS Spotlight calculator functions for Linux.
rofi-insect-demo.mp4
Note Watch the demo in full screen for much better quality.
insect
is used as the calculator back-end. You can pass any operation insect
can handle.
I integrate this with rofi-bangs.sh
.
## ~/.config/rofi/scripts/rofi-bangs.sh
...
# Use calculator (insect)
COMMANDS["calc"]="$XDG_CONFIG_HOME/rofi/scripts/rofi-insect/rofi-insect.sh"
LABELS["calc"]=""
And I have rofi-bangs
integrated with sxhkd
.
## ~/.config/sxhkd/sxhkdrc
...
alt + @m
~/.config/rofi/scripts/rofi-bangs.sh
I press Alt + m
on my keyboard, and get the rofi-bangs
popup. I can then enter calc
mode.
If you want faster access to the calculator, you can add an entry in your sxhkdrc
like:
alt + 7
$XDG_CONFIG_HOME/rofi/scripts/rofi-insect/rofi-insect.sh
insect
xsel
rofi
ordmenu