Skip to content

alichtman/rofi-insect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rofi-insect

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.

Usage

insect is used as the calculator back-end. You can pass any operation insect can handle.

Recommended Installation + Configuration

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

Dependencies

  1. insect
  2. xsel
  3. rofi or dmenu

Releases

No releases published

Packages

No packages published

Languages