From 8c9002cf75f4e82f5dd87a2601d02983dd3e5f7d Mon Sep 17 00:00:00 2001 From: "Christopher R. Nelson" Date: Sun, 7 Jan 2024 14:17:40 -0500 Subject: include rofi cherry-picked update --- crn/packages/patches/rofi-extra-whitespace.patch | 13 +++++++++++ crn/packages/xdisorg.scm | 29 ++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 crn/packages/patches/rofi-extra-whitespace.patch create mode 100644 crn/packages/xdisorg.scm (limited to 'crn/packages') diff --git a/crn/packages/patches/rofi-extra-whitespace.patch b/crn/packages/patches/rofi-extra-whitespace.patch new file mode 100644 index 0000000..1d065f7 --- /dev/null +++ b/crn/packages/patches/rofi-extra-whitespace.patch @@ -0,0 +1,13 @@ +diff --git a/source/modes/dmenu.c b/source/modes/dmenu.c +index 27b6097d..85dda8e5 100644 +--- a/source/modes/dmenu.c ++++ b/source/modes/dmenu.c +@@ -391,7 +391,7 @@ static gchar *dmenu_format_output_string(const DmenuModePrivateData *pd, + unsigned int index = + (unsigned int)g_ascii_strtoull(pd->columns[i], NULL, 10); + if (index <= ns && index > 0) { +- if (i == 0) { ++ if (index == 1) { + g_string_append(str_retv, splitted[index - 1]); + } else { + g_string_append_c(str_retv, '\t'); diff --git a/crn/packages/xdisorg.scm b/crn/packages/xdisorg.scm new file mode 100644 index 0000000..1c9cc29 --- /dev/null +++ b/crn/packages/xdisorg.scm @@ -0,0 +1,29 @@ +(define-module (crn packages xdisorg) + #:use-module (crn packages) + #:use-module (gnu packages) + #:use-module ((gnu packages xdisorg) #:prefix gpx:) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages)) + +;; (define-public rofi +;; (package +;; (inherit gpx:rofi) +;; (version "1.7.5") +;; (source (origin +;; (method url-fetch) +;; (uri (string-append "https://github.com/davatorium/rofi/" +;; "releases/download/" +;; version "/rofi-" version ".tar.xz")) +;; (sha256 +;; (base32 +;; "138c4bl60p7namsb2pk8q5cdlxbdkli7zny192vk5jv5s5kczzya")) +;; (snippet +;; #~(begin +;; ;; Delete pre-generated files. +;; (for-each delete-file +;; (list "lexer/theme-lexer.c" +;; "lexer/theme-parser.c" +;; "lexer/theme-parser.h" +;; "resources/resources.c" +;; "resources/resources.h")))))))) -- cgit v1.2.3