bspwm-unstable: init at 2016-09-30

+83
+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 + ./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 + { config, lib, pkgs, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + cfg = config.services.xserver.windowManager.bspwm-unstable; 7 + in 8 + 9 + { 10 + options = { 11 + services.xserver.windowManager.bspwm-unstable = { 12 + enable = mkEnableOption "bspwm-unstable"; 13 + startThroughSession = mkOption { 14 + type = with types; bool; 15 + default = false; 16 + description = " 17 + Start the window manager through the script defined in 18 + sessionScript. Defaults to the the bspwm-session script 19 + provided by bspwm 20 + "; 21 + }; 22 + sessionScript = mkOption { 23 + default = "${pkgs.bspwm-unstable}/bin/bspwm-session"; 24 + defaultText = "(pkgs.bspwm-unstable)/bin/bspwm-session"; 25 + description = " 26 + The start-session script to use. Defaults to the 27 + provided bspwm-session script from the bspwm package. 28 + 29 + Does nothing unless `bspwm.startThroughSession` is enabled 30 + "; 31 + }; 32 + }; 33 + }; 34 + 35 + config = mkIf cfg.enable { 36 + services.xserver.windowManager.session = singleton { 37 + name = "bspwm-unstable"; 38 + start = if cfg.startThroughSession 39 + then cfg.sessionScript 40 + else '' 41 + export _JAVA_AWT_WM_NONREPARENTING=1 42 + SXHKD_SHELL=/bin/sh ${pkgs.sxhkd-unstable}/bin/sxhkd -f 100 & 43 + ${pkgs.bspwm-unstable}/bin/bspwm 44 + ''; 45 + }; 46 + environment.systemPackages = [ pkgs.bspwm-unstable ]; 47 + }; 48 + }
+1
nixos/modules/services/x11/window-managers/default.nix
··· 10 10 imports = [ 11 11 ./afterstep.nix 12 12 ./bspwm.nix 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 + { stdenv, fetchFromGitHub, libxcb, libXinerama, sxhkd, xcbutil, xcbutilkeysyms, xcbutilwm }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "bspwm-unstable-2016-09-30"; 5 + 6 + 7 + src = fetchFromGitHub { 8 + owner = "baskerville"; 9 + repo = "bspwm"; 10 + rev = "8664c007e44de162c1597fd7e163635b274fb747"; 11 + sha256 = "0clvpz32z38i8kr10hqlifa661szpfn93c63m2aq2h4dwmr44slz"; 12 + }; 13 + 14 + buildInputs = [ libxcb libXinerama xcbutil xcbutilkeysyms xcbutilwm ]; 15 + 16 + buildPhase = '' 17 + make PREFIX=$out 18 + ''; 19 + 20 + installPhase = '' 21 + make PREFIX=$out install 22 + ''; 23 + 24 + meta = { 25 + description = "A tiling window manager based on binary space partitioning (git version)"; 26 + homepage = https://github.com/baskerville/bspwm; 27 + maintainers = [ stdenv.lib.maintainers.meisternu stdenv.lib.maintainers.epitrochoid ]; 28 + license = stdenv.lib.licenses.bsd2; 29 + platforms = stdenv.lib.platforms.linux; 30 + }; 31 + }
+2
pkgs/top-level/all-packages.nix
··· 12096 12096 12097 12097 bspwm = callPackage ../applications/window-managers/bspwm { }; 12098 12098 12099 + bspwm-unstable = callPackage ../applications/window-managers/bspwm/unstable.nix { }; 12100 + 12099 12101 bvi = callPackage ../applications/editors/bvi { }; 12100 12102 12101 12103 bviplus = callPackage ../applications/editors/bviplus { };