p-e-w / argos

Create GNOME Shell extensions in seconds
https://extensions.gnome.org/extension/1176/argos/
1.67k stars 112 forks source link

Register as a handler for bitbar:// uris #81

Open pigsflew opened 5 years ago

pigsflew commented 5 years ago

Is it possible to register a script within argos as a handler for URIs for the protocol "bitbar://{script}?{args}" ?

The handler would then launch that script within argos' handler sets with the supplied arguments; the main use case would be:

openPlugin(title, src):

  1. Interrogate the user ("Are you sure you'd like to load the following extension?")
  2. Download the file at ${src} to ~/.config/argos/

Example link: bitbar://openPlugin?title=Amazon%20ECS%20Cluster%20Status&src=https://github.com/matryer/bitbar-plugins/raw/master/AWS%2fecs-cluster.10m.sh, as seen on getbitbar.com

chabad360 commented 5 years ago

I saw this request and wrote this. It uses zenity for prompting the user, so make sure you have it installed.

@p-e-w maybe (just maybe) would you be able to officially recommend this?