* [bug#72500] [PATCH] Add: rofi-emoji.
@ 2024-08-06 23:41 Wamm K. D.
2024-08-07 0:04 ` [bug#72500] [PATCH] Add: rofi-emoji-wayland Wamm K. D.
0 siblings, 1 reply; 3+ messages in thread
From: Wamm K. D. @ 2024-08-06 23:41 UTC (permalink / raw)
To: 72500; +Cc: Wamm K. D.
* gnu/packages/xdisorg.scm (rofi-emoji): New variable.
---
gnu/packages/xdisorg.scm | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4c12835b24..bb95304a1f 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -55,7 +55,7 @@
;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;; Copyright © 2022 Derek Chuank <derekchuank@outlook.com>
-;;; Copyright © 2022, 2023 Wamm K. D. <jaft.r@outlook.com>
+;;; Copyright © 2022, 2023, 2024 Wamm K. D. <jaft.r@outlook.com>
;;; Copyright © 2022 Tobias Kortkamp <tobias.kortkamp@gmail.com>
;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
;;; Copyright © 2023 Jake Leporte <jakeleporte@outlook.com>
@@ -2102,6 +2102,43 @@ (define-public rofi-calc
natural language input and provide results.")
(license license:expat)))
+(define-public rofi-emoji
+ (package
+ (name "rofi-emoji")
+ (version "3.4.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append "https://github.com/Mange/" name "/"))
+ (commit (string-append "v" version))))
+ (sha256 (base32
+ "0bga0gj948l2xpril7gklm78ngs4l50g44k3iwrmw1sg5din0y34"))))
+ (build-system gnu-build-system)
+ (arguments (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'provide-output-instead-of-rofi
+ (lambda _
+ (substitute* "configure.ac"
+ (("\\[rofi_PLUGIN_INSTALL_DIR]=\".*")
+ (string-append "[rofi_PLUGIN_INSTALL_DIR]=\""
+ #$output
+ "/lib/rofi/\"\n")))))
+ (add-after 'provide-output-instead-of-rofi
+ 'patch-adapter-script-xdotool
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "clipboard-adapter.sh"
+ (("xdotool")
+ (search-input-file inputs "/bin/xdotool"))))))))
+ (native-inputs (list autoconf automake libtool pkg-config))
+ (inputs (list glib cairo xdotool))
+ (propagated-inputs (list rofi))
+ (synopsis "Emoji-selector plugin for Rofi")
+ (description "@code{rofi-emoji} is an emoji-selector plugin for Rofi that
+copies the selected emoji to the clipboard and can insert it into the current
+program window.")
+ (home-page "https://github.com/Mange/rofi-emoji")
+ (license license:expat)))
+
(define-public tint2
(package
(name "tint2")
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#72500] [PATCH] Add: rofi-emoji-wayland.
2024-08-06 23:41 [bug#72500] [PATCH] Add: rofi-emoji Wamm K. D.
@ 2024-08-07 0:04 ` Wamm K. D.
2024-08-07 0:07 ` Jaft
0 siblings, 1 reply; 3+ messages in thread
From: Wamm K. D. @ 2024-08-07 0:04 UTC (permalink / raw)
To: 72500; +Cc: Wamm K. D.
* gnu/packages/xdisorg.scm (rofi-emoji-wayland): New variable.
---
gnu/packages/xdisorg.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index bb95304a1f..cfcccb3e81 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -2139,6 +2139,25 @@ (define-public rofi-emoji
(home-page "https://github.com/Mange/rofi-emoji")
(license license:expat)))
+(define-public rofi-emoji-wayland
+ (package/inherit rofi-emoji
+ (name "rofi-emoji-wayland")
+ (arguments (substitute-keyword-arguments (package-arguments rofi-emoji)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'patch-adapter-script-xdotool
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "clipboard-adapter.sh"
+ (("wtype") (search-input-file inputs
+ "/bin/wtype")))))))))
+ (inputs (modify-inputs (package-inputs rofi-emoji)
+ (replace "xdotool" wtype)))
+ (propagated-inputs (modify-inputs (package-propagated-inputs rofi-emoji)
+ (replace "rofi" rofi-wayland)))
+ (description (string-append
+ (package-description rofi-pass)
+ "\nThis package provides Wayland support by default."))))
+
(define-public tint2
(package
(name "tint2")
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#72500] [PATCH] Add: rofi-emoji-wayland.
2024-08-07 0:04 ` [bug#72500] [PATCH] Add: rofi-emoji-wayland Wamm K. D.
@ 2024-08-07 0:07 ` Jaft
0 siblings, 0 replies; 3+ messages in thread
From: Jaft @ 2024-08-07 0:07 UTC (permalink / raw)
To: 72500@debbugs.gnu.org
[-- Attachment #1: Type: text/plain, Size: 2033 bytes --]
Sending these both to the same bug since the Wayland version depends on the first patch.
I don't think they're so drastically different as to require two separate issue numbers but let me know if that's preferred and I can open a new one for this patch.
On Tuesday, August 6, 2024 at 07:05:04 PM CDT, Wamm K. D. <jaft.r@outlook.com> wrote:
* gnu/packages/xdisorg.scm (rofi-emoji-wayland): New variable.
---
gnu/packages/xdisorg.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index bb95304a1f..cfcccb3e81 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -2139,6 +2139,25 @@ (define-public rofi-emoji
(home-page "https://github.com/Mange/rofi-emoji")
(license license:expat)))
+(define-public rofi-emoji-wayland
+ (package/inherit rofi-emoji
+ (name "rofi-emoji-wayland")
+ (arguments (substitute-keyword-arguments (package-arguments rofi-emoji)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'patch-adapter-script-xdotool
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "clipboard-adapter.sh"
+ (("wtype") (search-input-file inputs
+ "/bin/wtype")))))))))
+ (inputs (modify-inputs (package-inputs rofi-emoji)
+ (replace "xdotool" wtype)))
+ (propagated-inputs (modify-inputs (package-propagated-inputs rofi-emoji)
+ (replace "rofi" rofi-wayland)))
+ (description (string-append
+ (package-description rofi-pass)
+ "\nThis package provides Wayland support by default."))))
+
(define-public tint2
(package
(name "tint2")
--
2.45.2
[-- Attachment #2: Type: text/html, Size: 4426 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-07 0:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06 23:41 [bug#72500] [PATCH] Add: rofi-emoji Wamm K. D.
2024-08-07 0:04 ` [bug#72500] [PATCH] Add: rofi-emoji-wayland Wamm K. D.
2024-08-07 0:07 ` Jaft
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).