[Linux] Alfred Alternative for Quick Caputure

Hey,
i have found a way to combine ULauncher, an alternative to Alfred for Linux, to help me quick capture my thoughts into my daily note.

Demo

Requirements

  1. ULauncher
  2. Advanced URI plugin
  3. Python

Instructions

Obsidian

  1. Install the Obsidian Advanced URI plugin and enable it.
  2. Edit the plugins options to your liking.

ULauncher

  1. Go into the ULauncher Settings
  2. Go to the Shortcuts Tab
  3. Click Add Shortcut
  4. Choose a Name and Keyword
  5. Copy the script below and replace <VAULT_NAME> with your Vaults name
#!/usr/bin/env python
import os
import urllib.parse
import sys
vault_name = "<VAULT_NAME>"
args = sys.argv[1:]
text = ' '.join(args)
content = urllib.parse.quote(str(text))
vault = urllib.parse.quote(str(vault_name))
uri = f"\"obsidian://advanced-uri?vault={vault}&daily=true&data=-%20{content}&mode=append\""
os.system('xdg-open ' + uri)
  1. Click Save and it should work.

Hope i could help someone.

4 Likes