1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-27 06:51:25 +02:00

Removed old rofi-emoji ebuilds

This commit is contained in:
2024-03-29 19:46:19 +01:00
parent ff4158a3bd
commit 468ed42782
5 changed files with 3 additions and 75 deletions
@@ -1,36 +0,0 @@
diff --git a/clipboard-adapter.sh b/clipboard-adapter.sh
index 891c65d..ff8501c 100755
--- a/clipboard-adapter.sh
+++ b/clipboard-adapter.sh
@@ -52,6 +52,23 @@ handle_copy() {
esac
}
+handle_primary() {
+ case "$1" in
+ xsel)
+ xsel --primary --input
+ ;;
+ xclip)
+ xclip -selection primary -in
+ ;;
+ wl-copy)
+ wl-copy --primary
+ ;;
+ *)
+ show_error "$1 has no implementation for copying yet"
+ exit 1
+ esac
+}
+
# Print out the first argument and return true if that argument is an installed
# command. Prints nothing and returns false if the argument is not an installed
# command.
@@ -86,6 +103,7 @@ case "$1" in
copy)
shift
printf "%s" "$*" | handle_copy "$tool"
+ printf "%s" "$*" | handle_primary "$tool"
;;
*)
show_error "$0: Unknown command \"$1\""