summary refs log tree commit diff stats
path: root/modules/programs/window-manager.nix
blob: 1ca1e10972f8dfcdb4e1a462a6aa753a8bf2eb95 (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
35
36
{ 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}/bin/i3lock-color";
      enableNotifier = true;
      notifier = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
      time = 5;
    };
  };

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

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