dotfiles/modules/desktop/bspwm/default.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

2021-09-09 21:55:28 +02:00
{ config, lib, pkgs, ... }:
2021-09-14 18:43:49 +02:00
{
services = {
xserver = {
enable = true;
layout = "de";
displayManager = {
defaultSession = "none+bspwm";
autoLogin = {
enable = true;
user = "moritz";
};
lightdm = { enable = true; };
2021-09-14 18:43:49 +02:00
};
windowManager.bspwm.enable = true;
};
};
console.keyMap = "de";
2021-09-29 16:27:02 +02:00
2021-09-14 18:43:49 +02:00
home-manager.users.moritz = {
xsession.windowManager.bspwm = {
enable = true;
rules = {
"Zathura" = { state = "tiled"; };
"Emacs" = { state = "tiled"; };
"feh" = { state = "floating"; };
};
settings = {
border_width = 2;
window_gap = 5;
borderless_monocle = true;
gapless_monocle = true;
focus_follows_pointer = true;
};
startupPrograms = [
"${pkgs.systemd}/bin/systemctl --user start polybar.service"
"feh --bg-fill ~/.config/wallpaper/dracula.png"
];
extraConfig = builtins.readFile ./bspwmrc;
};
services.sxhkd = {
enable = true;
extraConfig = builtins.readFile ./sxhkdrc;
};
2021-09-10 09:14:03 +02:00
2021-09-09 21:55:28 +02:00
xdg = {
enable = true;
configFile = { "wallpaper/dracula.png" = { source = ./dracula.png; }; };
2021-09-09 21:55:28 +02:00
};
home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ];
2021-09-09 21:55:28 +02:00
};
}