summary refs log tree commit diff
path: root/host/Rory-desktop/optional/gui/x11.nix
blob: 4bf9fe4795f437fce961728e70ee3904f85a7752 (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
{ config, pkgs, lib, nhekoSrc, mtxclientSrc, ... }:

{
  imports =
    [ ];

  services = {
    xserver = {
      windowManager.i3.enable = true;
      windowManager.i3.extraSessionCommands = ''
        # output from arandr:
        #xrandr --output DP-1 --mode 1920x1080 --pos 3840x1080 --rotate normal --output HDMI-1 --mode 3840x2160 --pos 0x0 --rotate normal --output HDMI-2 --off --output DP-2 --off
        xrandr --output HDMI-1 --mode 3840x2160 --pos 0x0 --rotate normal --primary --output DP-1 --mode 1920x1080 --pos 3840x1080 --rotate normal --output HDMI-2 --off --output DP-2 --off
        ${pkgs.polybarFull}/bin/polybar &
        ${pkgs.dunst}/bin/dunst &
        ${pkgs.feh}/bin/feh --no-fehbg --bg-fill ${../../../../modules/users/Rory/wallpaper.webp}
      '';
    };

    picom.enable = true;
    picom.vSync = false;
    picom.backend = "glx";
  };

}