2015-08-17 22:06:04 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
|
2015-09-11 10:11:51 +02:00
|
|
|
;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
|
2016-02-28 07:37:22 +01:00
|
|
|
;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org>
|
2015-10-10 13:06:40 +02:00
|
|
|
;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
|
2015-10-14 22:26:55 +02:00
|
|
|
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
|
2016-02-28 07:37:22 +01:00
|
|
|
;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
|
2015-08-17 22:06:04 +02:00
|
|
|
;;;
|
|
|
|
;;; This file is 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/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages wm)
|
2016-02-28 07:37:22 +01:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2015-08-17 22:06:04 +02:00
|
|
|
#:use-module (guix packages)
|
2015-10-23 00:41:39 +02:00
|
|
|
#:use-module (gnu packages)
|
2015-08-17 22:06:04 +02:00
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (guix build-system gnu)
|
2015-09-11 10:11:51 +02:00
|
|
|
#:use-module (guix build-system haskell)
|
|
|
|
#:use-module (gnu packages haskell)
|
2015-08-17 22:06:04 +02:00
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (gnu packages xdisorg)
|
|
|
|
#:use-module (gnu packages qt)
|
|
|
|
#:use-module (gnu packages asciidoc)
|
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
#:use-module (gnu packages docbook)
|
2016-02-28 07:37:22 +01:00
|
|
|
#:use-module (gnu packages image)
|
2015-08-17 22:06:04 +02:00
|
|
|
#:use-module (gnu packages pcre)
|
|
|
|
#:use-module (gnu packages gtk)
|
|
|
|
#:use-module (gnu packages libevent)
|
2016-02-28 07:37:22 +01:00
|
|
|
#:use-module (gnu packages fribidi)
|
2015-08-17 22:06:04 +02:00
|
|
|
#:use-module (gnu packages maths)
|
|
|
|
#:use-module (gnu packages web)
|
2016-02-28 07:37:22 +01:00
|
|
|
#:use-module (gnu packages fontutils)
|
2015-08-17 22:06:04 +02:00
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix git-download))
|
|
|
|
|
2015-08-17 22:06:05 +02:00
|
|
|
(define-public libconfuse
|
|
|
|
(package
|
|
|
|
(name "libconfuse")
|
|
|
|
(version "2.7")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://savannah.nongnu.org/download/confuse/"
|
|
|
|
"confuse-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0y47r2ashz44wvnxdb18ivpmj8nxhw3y9bf7v9w0g5byhgyp89g3"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "http://www.nongnu.org/confuse/")
|
|
|
|
(synopsis "Configuration file parser library")
|
|
|
|
(description "libconfuse is a configuration file parser library. It
|
|
|
|
supports sections and (lists of) values (strings, integers, floats, booleans
|
|
|
|
or other sections), as well as some other features (such as
|
|
|
|
single/double-quoted strings, environment variable expansion, functions and
|
|
|
|
nested include statements).")
|
2016-02-28 07:37:22 +01:00
|
|
|
(license license:isc)))
|
2015-08-17 22:06:05 +02:00
|
|
|
|
2015-10-10 13:06:40 +02:00
|
|
|
(define-public bspwm
|
|
|
|
(package
|
|
|
|
(name "bspwm")
|
|
|
|
(version "0.9")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/baskerville/bspwm/archive/"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1pig0h2jk8wipyz90j69c4bk37bfyq60asnn0v0bqld2p2vjvyqy"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("libxcb" ,libxcb)
|
|
|
|
("libxinerama" ,libxinerama)
|
|
|
|
("sxhkd" ,sxhkd)
|
|
|
|
("xcb-util" ,xcb-util)
|
|
|
|
("xcb-util-keysyms" ,xcb-util-keysyms)
|
|
|
|
("xcb-util-wm" ,xcb-util-wm)))
|
|
|
|
(arguments
|
|
|
|
'(#:phases (alist-delete 'configure %standard-phases)
|
|
|
|
#:tests? #f ; no check target
|
|
|
|
#:make-flags (list "CC=gcc"
|
|
|
|
(string-append "PREFIX=" %output))))
|
|
|
|
(home-page "https://github.com/baskerville/bspwm")
|
|
|
|
(synopsis "Tiling window manager based on binary space partitioning")
|
|
|
|
(description "bspwm is a tiling window manager that represents windows as
|
|
|
|
the leaves of a full binary tree.")
|
2016-02-28 07:37:22 +01:00
|
|
|
(license license:bsd-2)))
|
2015-10-10 13:06:40 +02:00
|
|
|
|
2015-08-17 05:05:37 +02:00
|
|
|
(define-public i3status
|
|
|
|
(package
|
|
|
|
(name "i3status")
|
|
|
|
(version "2.9")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://i3wm.org/i3status/i3status-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1qwxbrga2fi5wf742hh9ajwa8b2kpzkjjnhjlz4wlpv21i80kss2"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure))
|
|
|
|
#:tests? #f)) ; no test suite
|
|
|
|
(inputs
|
|
|
|
`(("openlibm" ,openlibm)
|
|
|
|
("libconfuse" ,libconfuse)
|
|
|
|
("libyajl" ,libyajl)
|
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
("wireless-tools" ,wireless-tools)
|
|
|
|
("libcap" ,libcap)
|
|
|
|
("asciidoc" ,asciidoc)))
|
|
|
|
(home-page "http://i3wm.org/i3status/")
|
|
|
|
(synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
|
|
|
|
(description "i3status is a small program for generating a status bar for
|
|
|
|
i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
|
|
|
|
by issuing a very small number of system calls, as one generally wants to
|
|
|
|
update such a status line every second. This ensures that even under high
|
|
|
|
load, your status bar is updated correctly. Also, it saves a bit of energy by
|
|
|
|
not hogging your CPU as much as spawning the corresponding amount of shell
|
|
|
|
commands would.")
|
2016-02-28 07:37:22 +01:00
|
|
|
(license license:bsd-3)))
|
2015-08-17 05:05:37 +02:00
|
|
|
|
2015-08-17 22:06:04 +02:00
|
|
|
(define-public i3-wm
|
|
|
|
(package
|
|
|
|
(name "i3-wm")
|
|
|
|
(version "4.10.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://i3wm.org/downloads/i3-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1lq7h4w7m0hi31iva8g7yf1sc11ispnknxjdaj9agld4smxqb44j"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure))
|
|
|
|
#:tests? #f)) ; no test suite
|
|
|
|
(inputs
|
|
|
|
`(("libxcb" ,libxcb)
|
|
|
|
("xcb-util" ,xcb-util)
|
|
|
|
("xcb-util-cursor" ,xcb-util-cursor)
|
|
|
|
("xcb-util-keysyms" ,xcb-util-keysyms)
|
|
|
|
("xcb-util-wm" ,xcb-util-wm)
|
|
|
|
("libxkbcommon" ,libxkbcommon)
|
|
|
|
("libev" ,libev)
|
|
|
|
("libyajl" ,libyajl)
|
|
|
|
("asciidoc" ,asciidoc)
|
|
|
|
("xmlto" ,xmlto)
|
|
|
|
("perl-pod-simple" ,perl-pod-simple)
|
|
|
|
("docbook-xml" ,docbook-xml)
|
|
|
|
("libx11" ,libx11)
|
|
|
|
("pcre" ,pcre)
|
|
|
|
("startup-notification" ,startup-notification)
|
|
|
|
("pango" ,pango)
|
|
|
|
("cairo" ,cairo)))
|
|
|
|
(native-inputs
|
|
|
|
`(("which" ,which)
|
|
|
|
("perl" ,perl)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://i3wm.org/")
|
|
|
|
(synopsis "Improved tiling window manager")
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 15:50:36 +01:00
|
|
|
(description "A tiling window manager, completely written
|
2015-08-17 22:06:04 +02:00
|
|
|
from scratch. i3 is primarily targeted at advanced users and
|
|
|
|
developers.")
|
2016-02-28 07:37:22 +01:00
|
|
|
(license license:bsd-3)))
|
2015-09-11 10:11:51 +02:00
|
|
|
|
|
|
|
(define-public xmonad
|
|
|
|
(package
|
|
|
|
(name "xmonad")
|
|
|
|
(version "0.11.1")
|
|
|
|
(synopsis "Tiling window manager")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://hackage.haskell.org/package/xmonad/"
|
2015-10-14 22:26:55 +02:00
|
|
|
name "-" version ".tar.gz"))
|
2015-09-11 10:11:51 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2015-10-14 22:26:55 +02:00
|
|
|
"1pfjssamiwpwjp1qqkm9m9p9s35pv381m0cwg6jxg0ppglibzq1r"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
;; Here we update the constraints on the utf8-string package in
|
|
|
|
;; the Cabal file. We allow a newer version which is compatible
|
|
|
|
;; with GHC 7.10.2. The same change is applied on Hackage. See
|
|
|
|
;; <https://hackage.haskell.org/package/xmonad-0.11.1/revisions/>.
|
|
|
|
'(substitute* "xmonad.cabal"
|
|
|
|
(("utf8-string >= 0.3 && < 0.4")
|
|
|
|
"utf8-string >= 0.3 && < 1.1")))))
|
2015-09-11 10:11:51 +02:00
|
|
|
(build-system haskell-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("ghc-mtl" ,ghc-mtl)
|
|
|
|
("ghc-utf8-string" ,ghc-utf8-string)
|
|
|
|
("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
|
|
|
|
("ghc-x11" ,ghc-x11)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after
|
|
|
|
'install 'install-xsession
|
|
|
|
(lambda _
|
|
|
|
(let* ((xsessions (string-append %output "/share/xsessions")))
|
|
|
|
(mkdir-p xsessions)
|
|
|
|
(call-with-output-file
|
|
|
|
(string-append xsessions "/xmonad.desktop")
|
|
|
|
(lambda (port)
|
|
|
|
(format port "~
|
|
|
|
[Desktop Entry]~@
|
|
|
|
Name=~a~@
|
|
|
|
Comment=~a~@
|
|
|
|
Exec=~a/bin/xmonad~@
|
|
|
|
Type=Application~%" ,name ,synopsis %output)))))))))
|
|
|
|
(home-page "http://xmonad.org")
|
|
|
|
(description
|
|
|
|
"Xmonad is a tiling window manager for X. Windows are arranged
|
|
|
|
automatically to tile the screen without gaps or overlap, maximising screen
|
|
|
|
use. All features of the window manager are accessible from the keyboard: a
|
|
|
|
mouse is strictly optional. Xmonad is written and extensible in Haskell.
|
|
|
|
Custom layout algorithms, and other extensions, may be written by the user in
|
|
|
|
config files. Layouts are applied dynamically, and different layouts may be
|
|
|
|
used on each workspace. Xinerama is fully supported, allowing windows to be
|
|
|
|
tiled on several screens.")
|
2016-02-28 07:37:22 +01:00
|
|
|
(license license:bsd-3)))
|
2015-09-11 10:11:51 +02:00
|
|
|
|
|
|
|
(define-public ghc-xmonad-contrib
|
|
|
|
(package
|
|
|
|
(name "ghc-xmonad-contrib")
|
2015-10-14 22:28:10 +02:00
|
|
|
(version "0.11.4")
|
2015-09-11 10:11:51 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://hackage.haskell.org/package/xmonad-contrib/"
|
|
|
|
"xmonad-contrib-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-10-14 22:28:10 +02:00
|
|
|
"1g5cw9vvnfbiyi599fngk02zlmdhrf82x0bndhypkn6kybab6yd3"))))
|
2015-09-11 10:11:51 +02:00
|
|
|
(build-system haskell-build-system)
|
|
|
|
(propagated-inputs
|
|
|
|
`(("ghc-mtl" ,ghc-mtl)
|
2015-10-14 22:28:10 +02:00
|
|
|
("ghc-old-time" ,ghc-old-time)
|
2015-09-11 10:11:51 +02:00
|
|
|
("ghc-random" ,ghc-random)
|
|
|
|
("ghc-utf8-string" ,ghc-utf8-string)
|
|
|
|
("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
|
|
|
|
("ghc-x11" ,ghc-x11)
|
|
|
|
("ghc-x11-xft" ,ghc-x11-xft)
|
|
|
|
("xmonad" ,xmonad)))
|
|
|
|
(home-page "http://xmonad.org")
|
|
|
|
(synopsis "Third party extensions for xmonad")
|
|
|
|
(description
|
|
|
|
"Third party tiling algorithms, configurations, and scripts to Xmonad, a
|
|
|
|
tiling window manager for X.")
|
2016-02-28 07:37:22 +01:00
|
|
|
(license license:bsd-3)))
|
2015-10-16 00:34:26 +02:00
|
|
|
|
|
|
|
(define-public evilwm
|
|
|
|
(package
|
|
|
|
(name "evilwm")
|
|
|
|
(version "1.1.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-10-23 00:41:39 +02:00
|
|
|
"0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
|
|
|
|
(patches (map search-patch '("evilwm-lost-focus-bug.patch")))))
|
2015-10-16 00:34:26 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("libx11" ,libx11)
|
|
|
|
("libxext" ,libxext)
|
|
|
|
("libxrandr" ,libxrandr)))
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((srfi srfi-26)
|
|
|
|
(guix build utils)
|
|
|
|
(guix build gnu-build-system))
|
|
|
|
#:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
|
|
|
|
'("libx11" "libxext" "libxrandr")))
|
|
|
|
(join (lambda (proc strs)
|
|
|
|
(string-join (map proc strs) " ")))
|
|
|
|
(dash-I (cut string-append "-I" <> "/include"))
|
|
|
|
(dash-L (cut string-append "-L" <> "/lib")))
|
|
|
|
`("desktopfilesdir=$(prefix)/share/xsessions"
|
|
|
|
,(string-append "prefix=" (assoc-ref %outputs "out"))
|
|
|
|
,(string-append "CPPFLAGS=" (join dash-I inputs))
|
|
|
|
,(string-append "LDFLAGS=" (join dash-L inputs))))
|
|
|
|
#:tests? #f ;no tests
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(delete 'configure)))) ;no configure script
|
|
|
|
(home-page "http://www.6809.org.uk/evilwm/")
|
|
|
|
(synopsis "Minimalist window manager for the X Window System")
|
|
|
|
(description
|
|
|
|
"evilwm is a minimalist window manager based on aewm, extended to feature
|
|
|
|
many keyboard controls with repositioning and maximize toggles, solid window
|
|
|
|
drags, snap-to-border support, and virtual desktops.")
|
2016-02-28 07:37:22 +01:00
|
|
|
(license (license:x11-style "file:///README"))))
|
|
|
|
|
|
|
|
(define-public fluxbox
|
|
|
|
(package
|
|
|
|
(name "fluxbox")
|
|
|
|
(version "1.3.7")
|
|
|
|
(synopsis "Small and fast window manager")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/fluxbox/"
|
|
|
|
version "/fluxbox-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after
|
|
|
|
'install 'install-xsession
|
|
|
|
(lambda _
|
|
|
|
(let ((xsessions (string-append %output "/share/xsessions")))
|
|
|
|
(mkdir-p xsessions)
|
|
|
|
(call-with-output-file
|
|
|
|
(string-append xsessions "/fluxbox.desktop")
|
|
|
|
(lambda (port)
|
|
|
|
(format port "~
|
|
|
|
[Desktop Entry]~@
|
|
|
|
Name=~a~@
|
|
|
|
Comment=~a~@
|
|
|
|
Exec=~a/bin/startfluxbox~@
|
|
|
|
Type=Application~%" ,name ,synopsis %output)))))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("freetype" ,freetype)
|
|
|
|
("fribidi" ,fribidi)
|
|
|
|
("imlib2" ,imlib2)
|
|
|
|
("libx11" ,libx11)
|
|
|
|
("libxext" ,libxext)
|
|
|
|
("libxft" ,libxft)
|
|
|
|
("libxinerama" ,libxinerama)
|
|
|
|
("libxpm" ,libxpm)
|
|
|
|
("libxrandr" ,libxrandr)
|
|
|
|
("libxrender" ,libxrender)))
|
|
|
|
(description "Fluxbox is a window manager. It is light on resources
|
|
|
|
and easy to handle yet full of features to make an easy and fast desktop
|
|
|
|
experience.")
|
|
|
|
(home-page "http://fluxbox.org/")
|
|
|
|
(license license:expat)))
|