mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-24 07:02:27 +01:00
Changed a way how stdin is copied in rofi-emoji script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
AUX rofi-emoji-2.2.0-primary.patch 855 BLAKE2B 87a2985f1ad5f34a9af98589697c732443181527bd221001ecd475c02bd2b8c81938a8a13fafc41356424fefea5f0daec7077422d40cce58402ca2824e73fb72 SHA512 9a2ca5508e3f010966cfa5652849169ba805bd09c503915b16fa5b0e7c4d76932322014be3d28f16548cbad8ef10d3ae51fe9cdd0e03ff5becda1067d96d4adf
|
||||
AUX rofi-emoji-3.1.0-primary.patch 1052 BLAKE2B f213004e9bd86ed769d124843ca3fd80761ae1d5e6c6f8d7aef2d0c53fd7dce4cf72efc602656215f6dd8844c8482f5f7b64b1a0118de6ed02cfd965f310f282 SHA512 7d6ad6557ec7db79882735308cddda32c82495fc04ea711ec5f77fd0deb972944004ee22ba4d3d31d916b4ab4c2350b30386293e8d85e0f2519bf48ce6d35eff
|
||||
AUX rofi-emoji-3.1.0-primary.patch 953 BLAKE2B 0f8565bd6ba8d7b9551e93c00bda4123bb59549e9e4cf099e5aacb5587ce932391f791ae6215c61ac2b35a0bcd00835b11d3e235d54d9e02c4ec697bb8372680 SHA512 45f1ec33102c60a7328b0864d2d45ca362e28d94602d6fc3d778e774ae7a7a9376e5d4a1f1c069822c7207d4510eff4f529d6f2f37d4f27a73e5a79bf80b3010
|
||||
EBUILD rofi-emoji-2.2.0.ebuild 772 BLAKE2B 1278a7dde4af384bf8cd541b1582b6b13c78fee0e6ec6f6e633e62bc94b28e283b97e0d7b3c46cba2a6f0d19edb3b547e80907c5c8809809e5595dee60c14673 SHA512 4b2c4ff3d8d82a13b0ec9c8937ce7a34ddb83a30d86954ffd13987c2a32295c90b76af8bfaf81d278597d8eb67de5c0f483a29fefe22c9eb606a32e9098187dc
|
||||
EBUILD rofi-emoji-3.1.0.ebuild 772 BLAKE2B 1278a7dde4af384bf8cd541b1582b6b13c78fee0e6ec6f6e633e62bc94b28e283b97e0d7b3c46cba2a6f0d19edb3b547e80907c5c8809809e5595dee60c14673 SHA512 4b2c4ff3d8d82a13b0ec9c8937ce7a34ddb83a30d86954ffd13987c2a32295c90b76af8bfaf81d278597d8eb67de5c0f483a29fefe22c9eb606a32e9098187dc
|
||||
|
||||
@@ -1,18 +1,37 @@
|
||||
diff -ur rofi-emoji_orig/clipboard-adapter.sh rofi-emoji/clipboard-adapter.sh
|
||||
--- rofi-emoji_orig/clipboard-adapter.sh 2022-10-08 09:43:38.033895494 +0200
|
||||
+++ rofi-emoji/clipboard-adapter.sh 2022-10-08 10:06:06.297588512 +0200
|
||||
@@ -54,6 +54,7 @@
|
||||
diff --git a/clipboard-adapter.sh b/clipboard-adapter.sh
|
||||
index af86763..b110c2c 100755
|
||||
--- a/clipboard-adapter.sh
|
||||
+++ b/clipboard-adapter.sh
|
||||
@@ -53,7 +53,9 @@ main() {
|
||||
exit 0
|
||||
;;
|
||||
copy)
|
||||
perform_copy
|
||||
+ perform_primary
|
||||
- perform_copy
|
||||
+ input="$(cat -)"
|
||||
+ printf "%s" "$input" | perform_copy
|
||||
+ printf "%s" "$input" | perform_primary
|
||||
;;
|
||||
insert)
|
||||
# Also copy when doing insert to give users a fallback in case automatic
|
||||
@@ -103,6 +104,30 @@
|
||||
;;
|
||||
"")
|
||||
show_error "Could not find any tool to handle copying. Please install a clipboard handler."
|
||||
@@ -112,6 +114,30 @@ perform_copy() {
|
||||
esac
|
||||
}
|
||||
|
||||
+perform_primary() {
|
||||
+ tool=$(find_copy_tool)
|
||||
+
|
||||
+ case "$tool" in
|
||||
+ xsel)
|
||||
+ xsel --primary --input
|
||||
+ ;;
|
||||
+ xclip)
|
||||
+ xclip -selection primary -in
|
||||
+ ;;
|
||||
+ wl-copy)
|
||||
+ wl-copy --primary
|
||||
+ ;;
|
||||
+ "")
|
||||
+ show_error "Could not find any tool to handle copying. Please install a clipboard handler."
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+ *)
|
||||
@@ -22,21 +41,6 @@ diff -ur rofi-emoji_orig/clipboard-adapter.sh rofi-emoji/clipboard-adapter.sh
|
||||
+ esac
|
||||
+}
|
||||
+
|
||||
+perform_primary() {
|
||||
+ tool=$(find_copy_tool)
|
||||
+
|
||||
+ case "$tool" in
|
||||
+ xsel)
|
||||
+ xsel --clipboard --output | xsel --primary --input
|
||||
+ ;;
|
||||
+ xclip)
|
||||
+ xclip -selection clipboard -out | xclip -selection primary -in
|
||||
+ ;;
|
||||
+ wl-copy)
|
||||
+ wl-copy --primary
|
||||
+ ;;
|
||||
+ "")
|
||||
+ show_error "Could not find any tool to handle copying. Please install a clipboard handler."
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
perform_insert() {
|
||||
tool=$(find_insert_tool)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user