From a2ecc9e0a902714c7ea9f6a872de244b205a6f93 Mon Sep 17 00:00:00 2001
From: foo-dogsquared <foo.dogsquared@gmail.com>
Date: Fri, 1 May 2020 22:45:31 +0800
Subject: [PATCH] Update the scripts one last time

---
 README.adoc                               | 8 ++++----
 bin/{choose-emoji => choose-emoji-menu}   | 6 ++++--
 bin/{choose-manual => choose-manual-menu} | 0
 bin/{toggle-bin => toggle-process}        | 0
 sxhkd/sxhkdrc                             | 6 +++---
 5 files changed, 11 insertions(+), 9 deletions(-)
 rename bin/{choose-emoji => choose-emoji-menu} (81%)
 rename bin/{choose-manual => choose-manual-menu} (100%)
 rename bin/{toggle-bin => toggle-process} (100%)

diff --git a/README.adoc b/README.adoc
index 663dadd..773fc3d 100644
--- a/README.adoc
+++ b/README.adoc
@@ -154,7 +154,7 @@ footnote:[This is a part of the package list but I think it's appropriate to cre
 
 Here's a list of the top most useful scripts (at least for me):
 
-* link:./bin/rofi-screenshot[A Rofi menu for all of my screenshoting and screencasting needs].
+* link:./bin/rofi-screenshot-menu[A Rofi menu for all of my screenshoting and screencasting needs].
 The script is also a fork of https://github.com/ceuk/rofi-screenshot[`ceuk's` rofi-screenshot].
 Big thanks to them for the idea!
 
@@ -162,15 +162,15 @@ Big thanks to them for the idea!
 Capture a region, process it through an OCR engine, and the content are then copied into the clipboard.
 Useful for capturing links in images or videos usually found in lecture videos.
 
-* link:./bin/prompt[Quick command prompts].
+* link:./bin/user-prompt[Quick command prompts].
 The script is based from https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/prompt[Luke Smith's prompt script].
 
-* link:./bin/toggle-bin[Switching on/off programs].
+* link:./bin/toggle-process[Switching on/off programs].
 Useful for situations where only one instance of the program is desirable.
 
 * link:./bin/select-theme[A basic theme selection for easy color scheme generation] with https://github.com/muennich/sxiv[sxiv].
 
-* link:./bin/choose-emoji[A universal emoji list] for easy copy-pasting and clear communication with those who speak Emojian.
+* link:./bin/choose-emoji-menu[A universal emoji list] for easy copy-pasting and clear communication with those who speak Emojian.
 
 Aside from the scripts, there are also some details and files that are not committed to this setup for privacy and security reasons.
 A few examples of which is my cron setups where it is tasked with updating and committing the package lists to the Git repo, updating the packages, cleaning the cache, and so much more.
diff --git a/bin/choose-emoji b/bin/choose-emoji-menu
similarity index 81%
rename from bin/choose-emoji
rename to bin/choose-emoji-menu
index c4ac6f2..f34bb8d 100644
--- a/bin/choose-emoji
+++ b/bin/choose-emoji-menu
@@ -10,8 +10,10 @@
 # * rofi - Version: 1.5.4
 # * xclip - version 0.13
 
-emoji_file='~/.local/share/emoji-test.txt'
-selection=$(awk 'match($0, /([0-9A-F ]+)\s+; fully-qualified\s+# (\S+) E[[:digit:]]+.[[:digit:]]+ (.+)$/, a){print a[2], a[3]}' ~/emojis.txt | rofi -dmenu -p "Choose an emoji to copy." -theme fds-sidebar-dark | awk '{print $1}') 
+emoji_file="$HOME/.local/share/emoji-test.txt"
+selection=$(awk 'match($0, /([0-9A-F ]+)\s+; fully-qualified\s+# (\S+) E[[:digit:]]+.[[:digit:]]+ (.+)$/, a){print a[2], a[3]}' "$emoji_file" \
+    | rofi -dmenu -p "Choose an emoji to copy." \
+    | awk '{print $1}') 
 
 if [ -n "$selection" ]; then
     printf "$selection" | xclip -selection clipboard && notify-send "'$(xclip -o -selection clipboard)' has been copied to clipboard."
diff --git a/bin/choose-manual b/bin/choose-manual-menu
similarity index 100%
rename from bin/choose-manual
rename to bin/choose-manual-menu
diff --git a/bin/toggle-bin b/bin/toggle-process
similarity index 100%
rename from bin/toggle-bin
rename to bin/toggle-process
diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc
index 4be9420..79bc0e9 100644
--- a/sxhkd/sxhkdrc
+++ b/sxhkd/sxhkdrc
@@ -8,7 +8,7 @@ super + shift + Return
     tdrop -ma -w -4 -y "$PANEL_HEIGHT" -s dropterm $TERMINAL
 
 super + t
-    toggle-bin screenkey
+    toggle-process screenkey
 
 
 
@@ -42,10 +42,10 @@ super + shift + w
 
 # Miscellaneous shortcuts.
 super + shift + m
-    choose-manual --viewpdf
+    choose-manual-menu
 
 super + shift + e
-    choose-emoji
+    choose-emoji-menu
 
 super + shift + t
     select-wal-theme