316 current 2025-02-09 03:49:52 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
@@ -42,6 +42,8 @@ in {
|
|||||||
bspwm
|
bspwm
|
||||||
yt-dlp
|
yt-dlp
|
||||||
beets
|
beets
|
||||||
|
netcat
|
||||||
|
zathura
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
with lib; let
|
with lib; let
|
||||||
|
|||||||
30
home/scripts/document-scripts/paper-search.sh
Normal file
30
home/scripts/document-scripts/paper-search.sh
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
paper_dir="/home/synchronous/documents/10-19-papers"
|
||||||
|
OIFS="$IFS"
|
||||||
|
IFS=$'\n'
|
||||||
|
|
||||||
|
paperall=""
|
||||||
|
papers=$(find $paper_dir -name "*.pdf")
|
||||||
|
for file in $papers
|
||||||
|
do
|
||||||
|
prefix=$(echo "$file" | grep -o -E "[0-9][0-9]\.[0-9][0-9]")
|
||||||
|
name=$(echo "$file" | awk -F/ '{print $NF}')
|
||||||
|
entry="[${prefix}] ${name}"
|
||||||
|
# https://unix.stackexchange.com/questions/20035/how-to-add-newlines-into-variables-in-bash-script
|
||||||
|
paperall=${paperall}${entry}'
|
||||||
|
'
|
||||||
|
done
|
||||||
|
paperall=$(echo "$paperall" | grep -v '^$')
|
||||||
|
|
||||||
|
selected_file=$(echo "$paperall" | rofi -dmenu -i -p "Select a paper" -theme /home/synchronous/.config/rofi/styles/prompt-papers.rasi)
|
||||||
|
echo "$selected_file"
|
||||||
|
|
||||||
|
if [ -n "$selected_file" ]; then
|
||||||
|
selected_file=$(echo "$selected_file" | cut -c10-)
|
||||||
|
echo "$selected_file"
|
||||||
|
full_path=$(find $paper_dir -name "$selected_file")
|
||||||
|
|
||||||
|
# Open the selected file with zathura
|
||||||
|
zathura "$full_path"
|
||||||
|
fi
|
||||||
2
home/scripts/termbin/tb.sh
Normal file
2
home/scripts/termbin/tb.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
file=$1
|
||||||
|
cat "$1" | nc termbin.com 9999
|
||||||
Reference in New Issue
Block a user