https://github.com/bramtechs/peg
Fuzzy file opening with rofi
https://github.com/bramtechs/peg
Last synced: 10 months ago
JSON representation
Fuzzy file opening with rofi
- Host: GitHub
- URL: https://github.com/bramtechs/peg
- Owner: bramtechs
- Created: 2023-05-06T13:36:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-20T13:19:40.000Z (about 3 years ago)
- Last Synced: 2025-06-23T07:41:26.732Z (12 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# peg
Simple rofi script that fuzzy-finds files in your home directory and opens them with xdg-open.
Comes with an install script that installs the required packages.
## Installation (Debian-based only)
```
sudo make install
```
## Usage
```
peg
peg thesis.pdf
```
If no arguments are provided, you can enter a search term in the first appearing rofi screen.
I recommend binding *peg* to a hotkey in your window manager/desktop environment instead of running *peg* directly from a terminal.
*Snippet for [awesome wm](https://awesomewm.org) (binds to Ctrl+Mod+p):*
```lua
-- peg
awful.key({ modkey, "Control" }, "p", function() awful.spawn("/usr/bin/peg") end,
{ description = "run peg", group = "launcher" })
```
## Removal
```
sudo make uninstall
```