~thecashewtrader/scripts

b86d1c0fc8f7cd198334464cd2d0b274e0aa9aee — thecashewtrader 1 year, 8 months ago 7c2df57
Add snippets.sh
8 files changed, 37 insertions(+), 71 deletions(-)

D bookmarks/bookmarks.sh
D bookmarks/bookmarks.txt
D scripts_menu/scripts_menu.sh
D scripts_menu/scripts_menu.txt
A snippets/snippets.json
R unicode/unicode.sh => snippets/snippets.sh
M symlinks/symlinks.sh
D unicode/unicode.txt
D bookmarks/bookmarks.sh => bookmarks/bookmarks.sh +0 -7
@@ 1,7 0,0 @@
#!/usr/bin/env sh

SCRIPT_DIR=$(dirname "$(readlink -f -- "$0")")

link=$(cat "$SCRIPT_DIR/bookmarks.txt" | rofi -dmenu)
[ -z "$link" ] && exit
$BROWSER "$link" &

D bookmarks/bookmarks.txt => bookmarks/bookmarks.txt +0 -17
@@ 1,17 0,0 @@
https://monkeytype.com
https://0x0.st
http://ix.io
https://cheat.sh/
https://kumi.tube/c/simplerecitations/videos
https://theminimalistmuslim.com
https://aminimalistmuslim.com
https://devchallenges.io
https://blog.jethro.dev/
https://sqrtminusone.xyz/posts/
https://config.phundrak.com/
https://gomakethings.com/
https://animate.style/
https://djliden.github.io/
https://puffyan.us/blog/
https://thelolproject.xyz
https://privacyyathra.in/

D scripts_menu/scripts_menu.sh => scripts_menu/scripts_menu.sh +0 -8
@@ 1,8 0,0 @@
#!/usr/bin/env sh

# Displays a menu of scripts to choose from.

SCRIPT_DIR=$(dirname "$(readlink -f -- "$0")")

chosen=$(cat "$SCRIPT_DIR/scripts_menu.txt" | rofi -dmenu )
"$chosen"

D scripts_menu/scripts_menu.txt => scripts_menu/scripts_menu.txt +0 -3
@@ 1,3 0,0 @@
unicode
bookmarks
reddit_images

A snippets/snippets.json => snippets/snippets.json +34 -0
@@ 0,0 1,34 @@
{
  "Salam": "السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ",
  "Salam Extended": "سَلاَمٌ عَلَيْكُمْ كَتَبَ رَبُّكُمْ عَلَى نَفْسِهِ الرَّحْمَةَ أَنَّهُ مَن عَمِلَ مِنكُمْ سُوءًا بِجَهَالَةٍ ثُمَّ تَابَ مِن بَعْدِهِ وَأَصْلَحَ فَأَنَّهُ غَفُورٌ رَّحِيمٌ",
  "Wa Alaikum As Salam": "وَ عَلَيْكُمَ اَلسَّلَامْ وَ رَحْمَةُ أللهِ وَ بَرَكَاتُه",
  "Salam Ala Man Ittaba Al Huda": "السَّلٰمُ عَلٰى مَنِ اتَّبَعَ الۡهُدٰي",
  "Good Night": "نوما هنيئا",
  "SAW": "ﷺ",
  "Insha Allah": "إِنْ شَاءَ الله",
  "Sabah Al Khayr": "صَبَاح اَلخَيْر",
  "Inna Lillahi": "إِنَّا لِلّهِ وَإِنَّـا إِلَيْهِ رَاجِعُونَ",
  "Bismillah": "بِسْمِ اللهِ الرَّحْمَـٰنِ الرَّحِيمِ",
  "Alhamdulillah": "ٱلْحَمْدُ لِلَّٰهِ",
  "Mashallah": "مَا شَاءَ اللهُ",
  "Jazakallah": "جزاك اللهُ خير ",
  "Wa Iyyak": "وَ إيَّاكَ",
  "Wa Iyyaki": "وَ إيَّاكِ",
  "Cute UwU 1": "UωU",
  "Cute UwU 2": "ŬwŬ",
  "Cute UwU 3": "UŵU",
  "Devanagari UwU": "उवु",
  "Arabic UwU": "ءُوُ",
  "Bengali UwU": "উওউ",
  "Ta Smiley": "ت",
  "Astaghfirullah": "اَسْتَغْفِرُ اَللّهَ",
  "Cute OwO": "OωO",
  "Angry OwO": "ÒwÓ",
  "Lenny": "( ͡° ͜ʖ ͡°)",
  "Hearts": "🥰😍😻💘💝💖💗💓💞💕💟❣️❤️🧡💛💚💙💜🤎🤍♥️",
  "Paap": "आपको अपने पापों के लिए पश्चाताप करना चाहिए। वे तुम्हें नष्ट कर देंगे। आप कोई मौका नहीं खड़े हैं। तुम उसके हाथ पर मर जाओगे। पछताना।",
  "Ramadan Mubarak": "رمضان مبارك",
  "Eid Mubarak": "عيد مبارك",
  "Ashura Mubarak": "عاشورا مبارك",
  "rehantdaphedar.xyz": "https://rehantdaphedar.xyz"
}

R unicode/unicode.sh => snippets/snippets.sh +2 -2
@@ 2,7 2,7 @@

SCRIPT_DIR=$(dirname "$(readlink -f -- "$0")")

chosen=$(cat "$SCRIPT_DIR/unicode.txt" | rofi -dmenu)
chosen=$(jq -r 'keys_unsorted[]' "$SCRIPT_DIR/snippets.json" | rofi -dmenu)
[ -z "$chosen" ] && exit

grep "$chosen" "$SCRIPT_DIR/unicode.txt" | head -1 | sed 's/.*-\s//' | xclip -sel c
jq -r ".[\"$chosen\"]" "$SCRIPT_DIR/snippets.json" | xclip -sel c

M symlinks/symlinks.sh => symlinks/symlinks.sh +1 -3
@@ 11,17 11,15 @@ ln -s ~/.scripts/mpv_clipboard/mpv_clipboard.sh ~/.local/bin/mpv_clipboard
ln -s ~/.scripts/notif/notif.sh ~/.local/bin/notif
ln -s ~/.scripts/powermenu/powermenu.sh ~/.local/bin/powermenu
ln -s ~/.scripts/quran/quran.sh ~/.local/bin/quran
ln -s ~/.scripts/scripts_menu/scripts_menu.sh ~/.local/bin/scripts_menu
ln -s ~/.scripts/setbg/setbg.sh ~/.local/bin/setbg
ln -s ~/.scripts/setup_programs/setup_programs.sh ~/.local/bin/setup_programs
ln -s ~/.scripts/startup/startup.sh ~/.local/bin/startup
ln -s ~/.scripts/steal/steal.sh ~/.local/bin/steal
ln -s ~/.scripts/symlinks/symlinks.sh ~/.local/bin/symlinks
ln -s ~/.scripts/typo/typo.sh ~/.local/bin/typo
ln -s ~/.scripts/unicode/unicode.sh ~/.local/bin/unicode
ln -s ~/.scripts/snippets/snippets.sh ~/.local/bin/snippets
ln -s ~/.scripts/reddit_images/reddit_images.sh ~/.local/bin/reddit_images
ln -s ~/.scripts/neet/neet.sh ~/.local/bin/neet
ln -s ~/.scripts/bookmarks/bookmarks.sh ~/.local/bin/bookmarks
ln -s ~/.scripts/update_roam/update_roam.sh ~/.local/bin/update_roam
ln -s ~/.scripts/update_roam/org_roam_export.py ~/.local/bin/org_roam_export
ln -s ~/.scripts/update_ntse/update_ntse.sh ~/.local/bin/update_ntse

D unicode/unicode.txt => unicode/unicode.txt +0 -31
@@ 1,31 0,0 @@
Salam - السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ
Better Salam - سَلاَمٌ عَلَيْكُمْ كَتَبَ رَبُّكُمْ عَلَى نَفْسِهِ الرَّحْمَةَ أَنَّهُ مَن عَمِلَ مِنكُمْ سُوءًا بِجَهَالَةٍ ثُمَّ تَابَ مِن بَعْدِهِ وَأَصْلَحَ فَأَنَّهُ غَفُورٌ رَّحِيمٌ
Wa Alaikum Salam - وَ عَلَيْكُمَ اَلسَّلَامْ وَ رَحْمَةُ أللهِ وَ بَرَكَاتُه
Salam Ala Man Ittaba Al Huda - السَّلٰمُ عَلٰى مَنِ اتَّبَعَ الۡهُدٰي
Good Night - نوما هنيئا
SAW - ﷺ
Insha Allah - إِنْ شَاءَ الله
Sabah Al Khayr - صَبَاح اَلخَيْر
Inna Lillahi - إِنَّا لِلّهِ وَإِنَّـا إِلَيْهِ رَاجِعُونَ
Bismillah - بِسْمِ اللهِ الرَّحْمَـٰنِ الرَّحِيمِ
Alhamdulillah - ٱلْحَمْدُ لِلَّٰهِ
Mashallah - مَا شَاءَ اللهُ
Jazakallah - جزاك اللهُ خير 
Wa Iyyak - وَ إيَّاكَ
Wa Iyyaki - وَ إيَّاكِ
Cute UwU 1 - UωU
Cute UwU 2 - ŬwŬ
Cute UwU 3 - UŵU
Devanagari UwU - उवु
Arabic UwU - ءُوُ
Bengali UwU - উওউ
Ta Smiley - ت
Astaghfirullah - اَسْتَغْفِرُ اَللّهَ
Cute OwO - OωO
Angry OwO - ÒwÓ
Lenny - ( ͡° ͜ʖ ͡°)
Hearts - 🥰😍😻💘💝💖💗💓💞💕💟❣️❤️🧡💛💚💙💜🤎🤍♥️
Paap - आपको अपने पापों के लिए पश्चाताप करना चाहिए। वे तुम्हें नष्ट कर देंगे। आप कोई मौका नहीं खड़े हैं। तुम उसके हाथ पर मर जाओगे। पछताना।
Ramadan Mubarak - رمضان مبارك
Eid Mubarak - عيد مبارك
Ashura Mubarak - عاشورا مبارك