blob: 41a9e515e1dbe03f8e56330624d3a4f89fe71b55 (
plain) (
blame)
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
|
{ config, lib, pkgs, ... }:
{
xsession.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = pkgs.stdenv.mkDerivation {
name = "xmonad-config";
src = ./xmonad.hs;
dontUnpack = true;
terminal = "${pkgs.rxvt-unicode}/bin/urxvt";
dmenu = "${pkgs.rofi}/bin/rofi -combi-modi window,run -show combi -modi combi";
installPhase = ''
substituteAll "$src" "$out"
'';
};
};
xsession.enable = true;
xsession.initExtra = ''
# source .Xmodmap to get key rebindings
${pkgs.xorg.xmodmap}/bin/xmodmap .Xmodmap
# disable mouse acceleration
${pkgs.xorg.xinput}/bin/xinput --set-prop \
'Logitech G500s Laser Gaming Mouse' \
'libinput Accel Profile Enabled' 0, 1
# make displayport input the primary monitor
${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --primary
'';
xsession.pointerCursor = {
defaultCursor = "left_ptr";
package = pkgs.vanilla-dmz;
name = "Vanilla-DMZ-AA";
size = 16;
};
# adding dzen to path because I cannot for the life of me figure
# out how to add it to xmonad's path
home.packages = with pkgs; [
dzen2
];
}
|