~whereiseveryone/guixrus

guixrus/guixrus/packages/rofi.scm -rw-r--r-- 3.2 KiB
bf2ff435jgart add emacs-prelude-ivy 6 minutes ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
(define-module (guixrus packages rofi)
  #:use-module  (guix download)
  #:use-module  (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module  (guix utils)
  #:use-module  (guix build utils)
  #:use-module  (guix gexp)
  #:use-module  (guix packages)
  #:use-module  (guix build-system gnu)
  #:use-module  (guix build-system meson)
  #:use-module  (gnu packages)
  #:use-module  (gnu packages base)
  #:use-module  (gnu packages xdisorg)
  #:use-module  (gnu packages gawk)
  #:use-module  (gnu packages web)
  #:use-module  (gnu packages pkg-config)
  #:use-module  (gnu packages gtk)
  #:use-module  (gnu packages freedesktop))

(define-public rofi-wayland
  (package
    (inherit rofi)
    (name "rofi-wayland")
    (version "1.7.3")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/lbonn/rofi.git")
         (commit (string-append version "+wayland1"))
                 (recursive? #t)))
        (sha256
         (base32 "1hiv6w3nynskgqsfnr8v05za5zk1fnqv44i7h6aqv3wh31dk3wma"))
        (file-name (git-file-name name version))))
    (build-system meson-build-system)
    (inputs (modify-inputs
             (package-inputs rofi)
             (append wayland-protocols gdk-pixbuf wayland)))
    (synopsis "Rofi fork that's wayland-ready")
    (description "This is a fork of Rofi with added support for Wayland via the layer shell protocol.
Differences with rofi (in wayland mode):
@itemize
@itemize native window selection mode when running under Wayland.
@itemize -normal-window flag in Wayland mode.
@itemize selecting which monitor to run rofi on in Wayland mode,
 rofi only shows up on the currently focused monitor
@itemize some window locations parameters work partially, x-offset
 and y-offset are only working from screen edges
@itemize some X11-specific options like -dpi or fake transparency
@end itemize")))


(define-public buku-rofi
  (package
    (name "buku-rofi")
    (version "0.0.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://gitlab.com/danisztls/buku-rofi")
         (commit "095351dc055aecedc428a289549b540cd022c23b")))
       (sha256
        (base32 "1bmj3sv7z7vyiaf6a0xp0dxsd43d4fjkn9ijyrlfr6fprrl5j2ib"))
       (file-name (git-file-name name version))))
    (native-inputs
     (list pkg-config))
    (inputs (list sed gawk))
    (propagated-inputs (list buku rofi))
    (build-system gnu-build-system)
    (arguments
     `(#:tests? #f
       #:phases
       (modify-phases %standard-phases
         (delete 'configure)
         (add-before 'build 'patch-makefile-paths
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (setenv "PREFIX" out)
               (substitute* "./Makefile"
                 (("/usr/local/bin/buku-rofi")
                  (string-append out "/bin/buku-rofi")))))))))
  (synopsis "Rofi plugin interfacing with buku")
  (description "This rofi plugin tries to provide an interface to
the buku bookmark manager, improving on the (outdated) buku_run script.")
  (home-page "https://gitlab.com/danisztls/buku-rofi")
  (license license:gpl3)))