~whereiseveryone/guixrus

guixrus/guixrus/packages/wayland-xyz.scm -rw-r--r-- 8.4 KiB
bf2ff435jgart add emacs-prelude-ivy an hour 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2021 florhizome <florhizome@posteo.net>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

;;; module for utility packages/tools specifically for wayland and wlroots
;;; graphical environments

(define-module (guixrus packages wayland-xyz)
  #: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 (gnu packages)
  #:use-module (gnu packages base)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system meson)
  #:use-module (guix build-system cmake)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages lxde)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages version-control)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages maths)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages gl)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages pulseaudio)
  #:use-module (gnu packages cpp)
  #:use-module (gnu packages wm)
  #:use-module (gnu packages xdisorg)
  #:use-module (guixrus packages misc))

;; I tried to build it from the latest github commit, since the
;; latest release is pretty old but it fails at installing man-pages.
;; disabling man pages via configure flag didn't help.
(define-public lxappearance-gtk3-wayland
  (package
    (inherit lxappearance)
    (name "lxappearance-gtk3-wayland")
    (version "0.6.3")
    (source
     (origin
       (method url-fetch)
       (uri
        (string-append "mirror://sourceforge/lxde/"
                       "LXAppearance/lxappearance-" version ".tar.xz"))
       (sha256
        (base32 "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj"))
       (patches
        (parameterize
            ((%patch-path
              (map
               (lambda (directory)
                 (string-append directory "/guixrus/packages/patches"))
               %load-path)))
        (search-patches
         ;;patches created from github issues
         "lxappearence-gtk3-01-only-do-x11-on-x11.patch"
         "lxappearence-gtk3-02-set-some-settings-gsettings.patch")))))
    (build-system gnu-build-system)
    (inputs (list gtk+ dbus dbus-glib))
    (arguments '(#:configure-flags '("--enable-gtk3=yes" "--enable-dbus=yes" )))
    (synopsis "LXDE GTK+ theme switcher")
    (description "LXAppearance is a desktop-independent GTK+ theme switcher
able to change themes, icons, and fonts used by GTK+ applications.
This version is compiled for supporting GTK+3 and dbus, and applies
patches from LXDE's github repos Merge Requests to work on wayland as well.")
    (home-page "https://lxde.github.io")
    (license license:gpl2+)))


(define-public nwg-launchers
  (package
    (name "nwg-launchers")
    (version "0.6.3")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/nwg-piotr/nwg-launchers")
         (commit (string-append "v" version))))
       (sha256
        (base32 "05aih05z5dybbv67qjmn90yjrk1k2l0v83hhglqqdin18k5xhq21"))))
    (build-system meson-build-system)
    (native-inputs
     (list git-minimal json-modern-cxx pkg-config))
    (inputs
     (list gtk-layer-shell gtkmm-3 librsvg))
    (synopsis "GTK-based launchers")
    (description "This package provides application grid, button bar and dmenu
for sway and other window managers.")
    (home-page "https://github.com/nwg-piotr/nwg-launchers")
    (license license:expat)))

(define-public swaynotificationcenter
  (let ((commit "3df4c34c5f0fd0fa3e56f6b605ae2d318b08aae6")
        (revision "0")
        (version "0.4"))
    (package
      (name "swaynotificationcenter")
      (version (git-version version revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/ErikReider/SwayNotificationCenter")
           (commit commit)))
         (sha256
          (base32 "0zr78k6rrjz4y18w2yv1v0m3aazkrr5y6v8ff32c4qjj7brgxr5d"))))
      (native-inputs
       (list `(,glib "bin") gobject-introspection pkg-config vala))
      (inputs
       (list glib gtk-layer-shell gtk+ json-glib
        libhandy wayland-protocols))
      (build-system meson-build-system)
      (synopsis "A simple notification daemon with a GTK gui built for
 Notifications and the control center")
      (description "Features
@itemize
@itemize Keyboard shortcuts
@itemize Notification body markup with image support
@itemize A panel to view previous notifications
@itemize Show album art for notifications like Spotify
@itemize Do not disturb
@itemize Click notification to execute default action
@itemize Show alternative notification actions
@itemize Customization through a CSS file
@itemize Trackpad/mouse gesture to close notification
@itemize The same features as any other basic notification daemon
@itemize Basic configuration through a JSON config file
@itemize Hot-reload config through swaync-client
@end itemize")
      (home-page "https://github.com/ErikReider/SwayNotificationCenter")
      (license license:expat))))

(define-public wapanel
  (package
   (name "wapanel")
   (version "1.1.0")
   (source
    (origin
     (method git-fetch)
     (uri
      (git-reference
       (url "https://www.github.com/firstbober/wapanel")
       (commit version)))
     (sha256
      (base32 "1d66jsnmgsjwnpq97lrkvb1zp0rp66120vpgw2zhbxwr2nbvnvxb"))))
   (build-system meson-build-system)
   (arguments `(#:glib-or-gtk? #t
                #:configure-flags '("-Dsystem_toml11=true")))
   (native-inputs
    (list wayland gobject-introspection pkg-config)) ;;wayland-scanner
   (inputs
    (list toml11 wayland-protocols pulseaudio glib
          gtk-layer-shell gtkmm-3 libdrm wlroots wayland))
   (propagated-inputs (list xdg-utils))
   (home-page "https://firstbober.github.io/wapanel")
   (synopsis "Simple panel for your custom stacking Wayland-based desktop")
   (description "@{code}wapanel is a desktop-dedicated wayland panel/status bar/task bar for
wayfire and other wlroots based compositors. It is also compatible with Mir.")
   (license license:expat)))

(define-public wdisplays
  (package
   (name "wdisplays")
   (version "1.1")
   (source
    (origin
     (method url-fetch)
     (uri "https://github.com/artizirk/wdisplays/archive/refs/tags/1.1.tar.gz")
            (sha256
             (base32 "103gpg74fjqaaakx033axichaxdnnkvdfa1grbkqz4hdrvg3k9ss"))))
   (build-system meson-build-system)
   (arguments
    `(#:glib-or-gtk? #t
      #:modules ((guix build meson-build-system)
                 (guix build utils)
                 (srfi srfi-1))
      #:phases
      ;;fixes issue with finding libGLESv2.so....
      (modify-phases %standard-phases
        (add-after 'install 'mesa-wrap
        (lambda* (#:key outputs inputs #:allow-other-keys)
          (let* ((out (assoc-ref outputs "out"))
                (mesa (assoc-ref inputs "mesa")))
            (wrap-program (string-append out "/bin/wdisplays")
              `("LD_LIBRARY_PATH" ":" prefix
                (,(string-append mesa "/lib"))))) #t)))))
   (native-inputs (list `(,glib "bin") pkg-config))
   (inputs (list libepoxy wayland-protocols mesa  gtk+ wayland
                 wlroots python-scour))
   (home-page "https://github.com/artiirk/wdisplays")
   (synopsis "GTK+ display configuration GUI for Wayland")
   (description "@code{wdisplays} is a graphical application for configuring
 displays in Wayland compositors. It borrows some code from kanshi.
 It should work in any compositor that implements the wlr-output-
-management-unstable-v1 protocol.")
   (license license:gpl3+)))