Skip to content

yogeshdnumb/prodigy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Prodigy

A simple yet powerful alternative to xdg-open

Automatically opens a file or url by suitable application

xdg-open is a tool used to open a file using desktop files
but it is confusing and not friendly with window managers so that's why I created this script as a simple replacement with added features

Shell Script

Features

  • Easy configuration
  • Quite intelligent (not really lol)
  • Supports terminal and launcher
  • Opens a file using the application that supports most types

Supports opening file by

  • Extension
  • MimeType
  • Desktop files
  • Asks you if no applications found

Installation

download the prodigy script, rename it to xdg-open and add it to path. Optionally Install alacritty(terminal) and rofi(launcher menu) or change them in the config
or

# if you do not have xdg-open or xdg-utils installed
curl -o /usr/bin https://raw.githubusercontent.com/yogeshdcool/prodigy/main/prodigy # or anywhere at path
# if you have xdg-open in your system
curl -o $(which xdg-open) https://raw.githubusercontent.com/yogeshdcool/prodigy/main/prodigy

Configuration

image=nsxiv # by general mime type ("IMAGE"/jpeg)
jpeg=nsxiv  # by specific mimetype (image/"JPEG")
jpg=nsiv    # by extension (wallpaper."jpg")

https=librewolf
x_scheme_handler=librewolf # all urls (not x-scheme-handler. use _ not - )

text="alacritty -e nvim"
directory="alacritty -e lf"
zip="file-roller"
audio="mpv --no-audio-display"

terminal=alacritty                  # for opening files using desktop files (default)
launcher="rofi -dmenu -p open-with" # (default)

for mimetypes use _ instead of -

Contributing

Contributions are always welcome! please critisize me ;)

Authors

License

MIT

About

A simple yet powerful xdg-open alternative ;)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages