tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bspwm-unstable: init at 2016-09-30
Chris Darnell
9 years ago
137ce583
02d7fbb6
+83
5 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
services
x11
window-managers
bspwm-unstable.nix
default.nix
pkgs
applications
window-managers
bspwm
unstable.nix
top-level
all-packages.nix
+1
nixos/modules/module-list.nix
···
523
523
./services/x11/window-managers/fluxbox.nix
524
524
./services/x11/window-managers/icewm.nix
525
525
./services/x11/window-managers/bspwm.nix
526
526
+
./services/x11/window-managers/bspwm-unstable.nix
526
527
./services/x11/window-managers/metacity.nix
527
528
./services/x11/window-managers/none.nix
528
529
./services/x11/window-managers/twm.nix
+48
nixos/modules/services/x11/window-managers/bspwm-unstable.nix
···
1
1
+
{ config, lib, pkgs, ... }:
2
2
+
3
3
+
with lib;
4
4
+
5
5
+
let
6
6
+
cfg = config.services.xserver.windowManager.bspwm-unstable;
7
7
+
in
8
8
+
9
9
+
{
10
10
+
options = {
11
11
+
services.xserver.windowManager.bspwm-unstable = {
12
12
+
enable = mkEnableOption "bspwm-unstable";
13
13
+
startThroughSession = mkOption {
14
14
+
type = with types; bool;
15
15
+
default = false;
16
16
+
description = "
17
17
+
Start the window manager through the script defined in
18
18
+
sessionScript. Defaults to the the bspwm-session script
19
19
+
provided by bspwm
20
20
+
";
21
21
+
};
22
22
+
sessionScript = mkOption {
23
23
+
default = "${pkgs.bspwm-unstable}/bin/bspwm-session";
24
24
+
defaultText = "(pkgs.bspwm-unstable)/bin/bspwm-session";
25
25
+
description = "
26
26
+
The start-session script to use. Defaults to the
27
27
+
provided bspwm-session script from the bspwm package.
28
28
+
29
29
+
Does nothing unless `bspwm.startThroughSession` is enabled
30
30
+
";
31
31
+
};
32
32
+
};
33
33
+
};
34
34
+
35
35
+
config = mkIf cfg.enable {
36
36
+
services.xserver.windowManager.session = singleton {
37
37
+
name = "bspwm-unstable";
38
38
+
start = if cfg.startThroughSession
39
39
+
then cfg.sessionScript
40
40
+
else ''
41
41
+
export _JAVA_AWT_WM_NONREPARENTING=1
42
42
+
SXHKD_SHELL=/bin/sh ${pkgs.sxhkd-unstable}/bin/sxhkd -f 100 &
43
43
+
${pkgs.bspwm-unstable}/bin/bspwm
44
44
+
'';
45
45
+
};
46
46
+
environment.systemPackages = [ pkgs.bspwm-unstable ];
47
47
+
};
48
48
+
}
+1
nixos/modules/services/x11/window-managers/default.nix
···
10
10
imports = [
11
11
./afterstep.nix
12
12
./bspwm.nix
13
13
+
./bspwm-unstable.nix
13
14
./compiz.nix
14
15
./dwm.nix
15
16
./exwm.nix
+31
pkgs/applications/window-managers/bspwm/unstable.nix
···
1
1
+
{ stdenv, fetchFromGitHub, libxcb, libXinerama, sxhkd, xcbutil, xcbutilkeysyms, xcbutilwm }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "bspwm-unstable-2016-09-30";
5
5
+
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "baskerville";
9
9
+
repo = "bspwm";
10
10
+
rev = "8664c007e44de162c1597fd7e163635b274fb747";
11
11
+
sha256 = "0clvpz32z38i8kr10hqlifa661szpfn93c63m2aq2h4dwmr44slz";
12
12
+
};
13
13
+
14
14
+
buildInputs = [ libxcb libXinerama xcbutil xcbutilkeysyms xcbutilwm ];
15
15
+
16
16
+
buildPhase = ''
17
17
+
make PREFIX=$out
18
18
+
'';
19
19
+
20
20
+
installPhase = ''
21
21
+
make PREFIX=$out install
22
22
+
'';
23
23
+
24
24
+
meta = {
25
25
+
description = "A tiling window manager based on binary space partitioning (git version)";
26
26
+
homepage = https://github.com/baskerville/bspwm;
27
27
+
maintainers = [ stdenv.lib.maintainers.meisternu stdenv.lib.maintainers.epitrochoid ];
28
28
+
license = stdenv.lib.licenses.bsd2;
29
29
+
platforms = stdenv.lib.platforms.linux;
30
30
+
};
31
31
+
}
+2
pkgs/top-level/all-packages.nix
···
12096
12096
12097
12097
bspwm = callPackage ../applications/window-managers/bspwm { };
12098
12098
12099
12099
+
bspwm-unstable = callPackage ../applications/window-managers/bspwm/unstable.nix { };
12100
12100
+
12099
12101
bvi = callPackage ../applications/editors/bvi { };
12100
12102
12101
12103
bviplus = callPackage ../applications/editors/bviplus { };