summary refs log tree commit diff stats
path: root/modules/programs/window-manager.nix
blob: 313bd45d4ec4942ae6f8d878d7eef675806538df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ config, pkgs, ... }:

{ services.xserver = {
   desktopManager.xterm.enable = false;

   displayManager = {
     lightdm = {
       enable = true;
       greeters.enso.enable = true;
     };
     sessionCommands = ''
       ${pkgs.xorg.xrdb}/bin/xrdb -merge $HOME/.xresources/main
       ${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr -solid '#4d4d4c'
       ${pkgs.networkmanagerapplet}/bin/nm-applet &
     '';
   };
    xautolock = {
      enable = true;
      locker = "${pkgs.i3lock-color}";
      time = 5;
    };
  };

  environment.systemPackages = with pkgs; [
    dmenu
    dunst
    libnotify # for notify-send
    rofi
    sxhkd
    maim

    perlPackages.FileMimeInfo # xdg-utils uses this when no DE
  ];
}