-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesktop.nix
47 lines (42 loc) · 1.1 KB
/
desktop.nix
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
37
38
39
40
41
42
43
44
45
46
47
{ pkgs, ... }:
{
services.xserver = {
enable = true;
xkb.layout = "de";
xkb.variant = "neo";
displayManager.lightdm = {
enable = true;
# Too noisy.
# background = pkgs.nixos-artwork.wallpapers.binary-black.gnomeFilePath;
background = "#000000";
};
desktopManager.xterm.enable = false;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
extraPackages = haskellPackages: [ haskellPackages.split ];
};
};
services.picom = {
enable = true;
# 2021-08-09 Solves screen tearing in Chrome for me.
# https://www.reddit.com/r/archlinux/comments/j58isj/i3gaps_picom_screen_tearing_issue/
backend = "glx";
fade = true;
inactiveOpacity = 0.7;
opacityRules = [
"100:class_g = 'dmenu'"
# Not working.
# "100:class_g = 'gimp'"
# "100:class_i = 'gimp'"
# "100:class_g = 'Gimp'"
# "100:class_i = 'Gimp'"
];
vSync = true;
settings = {
"detect-transient" = true;
"detect-client-leader" = true;
"focus-exclude" = [ "class_g = 'Gimp'" ];
};
};
}