378 current 2025-05-03 19:07:08 25.05.20250424.f771eb4 6.12.24 *
This commit is contained in:
11
home/scripts/document-scripts/paper-search-cached.sh
Normal file
11
home/scripts/document-scripts/paper-search-cached.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
paper_dir="/home/synchronous/Zotero/storage"
|
||||
papers=$(cat "/home/synchronous/.paper-cache")
|
||||
selected_file=$(echo "$papers" | rofi -dmenu -i -p "Select a paper" -theme /home/synchronous/.config/rofi/styles/prompt-papers.rasi)
|
||||
|
||||
if [ -n "$selected_file" ]; then
|
||||
full_path=$(find $paper_dir -name "$selected_file")
|
||||
echo "$full_path"
|
||||
|
||||
/etc/profiles/per-user/synchronous/bin/zathura --fork "$full_path"
|
||||
fi
|
||||
Reference in New Issue
Block a user