1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2025-12-18 20:10:22 +01:00

Hardmask rofi-emoji 4.x, added latest 3.x version

Version 4.0.0 have compilation issue with undefined MODE_TYPE_SWITCHER:

src/plugin.c:302:13: error: use of undeclared identifier 'MODE_TYPE_SWITCHER'
  302 |     .type = MODE_TYPE_SWITCHER,
This commit is contained in:
2024-10-09 07:32:35 +02:00
parent edf476f424
commit db1c26d1d0
4 changed files with 89 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
AUX rofi-emoji-3.3.0-primary.patch 953 BLAKE2B 0f8565bd6ba8d7b9551e93c00bda4123bb59549e9e4cf099e5aacb5587ce932391f791ae6215c61ac2b35a0bcd00835b11d3e235d54d9e02c4ec697bb8372680 SHA512 45f1ec33102c60a7328b0864d2d45ca362e28d94602d6fc3d778e774ae7a7a9376e5d4a1f1c069822c7207d4510eff4f529d6f2f37d4f27a73e5a79bf80b3010
AUX rofi-emoji-3.4.1-primary.patch 1000 BLAKE2B ada3a8dcb43696bb72d23c0b6263bb6b0ade462931f3ff565f28cf0a34ed00305fe191b92df90f66f439341afc55e79d613beedf4a7f1e1add73836227ba0ce5 SHA512 5a250dc2b2119365162e5127cf1d2197e529797524b2640525deca0f8dd4f689bed95255be2f6cef549d507938bdeb5ff0daeaa83c70ff8a7212de7a32dcb25c
AUX rofi-emoji-4.0.0-primary.patch 987 BLAKE2B 13b78567b4286442e1228adae22eebdbc8dc5ce71618ddcf91167511a0380589f545dbb39d81a39ffda66e0e1390fcc654bb69e9e6a0299d917f8ef69c2b68e0 SHA512 dbaafc89616178f6794a41e5a72589abc710f56da3046a750889e2b037a1bd2be9cf417f3ec05ee88ea05dd1a8ca07e338ca797fed121b88a28d41bead92760b
EBUILD rofi-emoji-3.3.0.ebuild 793 BLAKE2B 63a5195fe3ee9ac9d1946cd1283a74ffc58e71dda00ccb4772eb8b3555c86c79bbd92b5ad69a0947937ea4c200863d9c330cbd8a7e3c9fd6c3db083fd9888836 SHA512 4c7e9b637a47d47c530258fd8c66a098abe5994da0843577dc6555ba07d0005d02ea04c99b78f266b61680c70a2949caee392622e5865e4638ccda144617ad1f
EBUILD rofi-emoji-4.0.0.ebuild 803 BLAKE2B a3348ee8f41e263c8af71ac69afc47296363f220ef54a199f057b44b0581ca7bd8e9a8dcef012e9415abef27ab57bbd4c15892558b576d377d9fd2bb579356c5 SHA512 bb3a7b6702f038620a0821ffa8f4390f47e0e939726f1a72c3913db20db539a2a1746539167abc5a6d206f7a09989ebed21fa961a82e3a3b39edc3cdc45a777e
EBUILD rofi-emoji-3.4.1.ebuild 793 BLAKE2B 63a5195fe3ee9ac9d1946cd1283a74ffc58e71dda00ccb4772eb8b3555c86c79bbd92b5ad69a0947937ea4c200863d9c330cbd8a7e3c9fd6c3db083fd9888836 SHA512 4c7e9b637a47d47c530258fd8c66a098abe5994da0843577dc6555ba07d0005d02ea04c99b78f266b61680c70a2949caee392622e5865e4638ccda144617ad1f
EBUILD rofi-emoji-4.0.0.ebuild 792 BLAKE2B 6ed8e83bbec8769dbe149f59d7095ca9118f1ee80e2b5f464361ea046dd572f556ca5a001b54fc499774a5e269bad3b0aa229cf61b4f73ebb8d847a8b7845929 SHA512 17a2e92f6492f7d939f505b570b4566476073a7770f3c1420a0e60a2dabd47859647a2f37b485cd1f0cb78c8785b7e5690148f2ec8edd2c760693f7fe93521b1

View File

@@ -0,0 +1,49 @@
diff --git a/clipboard-adapter.sh b/clipboard-adapter.sh
index 80f8e6e..12a384a 100755
--- a/clipboard-adapter.sh
+++ b/clipboard-adapter.sh
@@ -53,7 +53,9 @@ main() {
exit 0
;;
copy)
- 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
@@ -116,6 +118,33 @@ perform_copy() {
esac
}
+perform_primary() {
+ tool=$(find_copy_tool)
+
+ case "$tool" in
+ xsel)
+ xsel --primary --input
+ ;;
+ xclip)
+ xclip -selection primary -in
+ ;;
+ copyq)
+ copyq copy -
+ ;;
+ wl-copy)
+ wl-copy --primary
+ ;;
+ "")
+ show_error "Could not find any tool to handle copying. Please install a primary handler."
+ exit 1
+ ;;
+ *)
+ show_error "$tool has no implementation for copying into primary yet"
+ exit 2
+ ;;
+ esac
+}
+
perform_insert() {
tool=$(find_insert_tool)

View File

@@ -0,0 +1,36 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools git-r3
DESCRIPTION="Emoji selector plugin for Rofi "
HOMEPAGE="https://github.com/Mange/rofi-emoji"
EGIT_REPO_URI="https://github.com/Mange/rofi-emoji"
EGIT_COMMIT="v${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+clipboard primary wayland +X"
DEPEND="x11-misc/rofi"
RDEPEND="${DEPEND}
X? ( || ( x11-misc/xsel x11-misc/xclip ) )
wayland? ( gui-apps/wl-clipboard )"
BDEPEND=""
PATCHES=(
"${FILESDIR}"/${P}-primary.patch
)
src_prepare() {
default
if ! use primary; then
sed -ie '/handle_primary "$tool"/d' clipboard-adapter.sh || die
fi
if ! use clipboard; then
sed -ie '/handle_copy "$tool"/d' clipboard-adapter.sh || die
fi
eautoreconf
}

View File

@@ -11,7 +11,7 @@ EGIT_COMMIT="v${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS=""
IUSE="+clipboard primary clipboard wayland +X"
DEPEND="x11-misc/rofi"