b5ee64410d
add '-f 100' as an argument to sxhkd to keep it from flooding bspwm add SXHKD_SHELL=/bin/sh to help default to a faster shell than what may be set in $SHELL (example: with zsh)
24 lines
486 B
Nix
24 lines
486 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.xserver.windowManager.bspwm;
|
|
in
|
|
|
|
{
|
|
options = {
|
|
services.xserver.windowManager.bspwm.enable = mkEnableOption "bspwm";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager.session = singleton {
|
|
name = "bspwm";
|
|
start = "
|
|
SXHKD_SHELL=/bin/sh ${pkgs.sxhkd}/bin/sxhkd -f 100 &
|
|
${pkgs.bspwm}/bin/bspwm
|
|
";
|
|
};
|
|
environment.systemPackages = [ pkgs.bspwm ];
|
|
};
|
|
}
|