summary refs log tree commit diff
path: root/host/Rory-desktop/optional/gui/x11.nix
blob: 0f55862de465bb7cbb9ef2131d80f6c0f655678d (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
{ 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.picom}/bin/picom --config ~/.config/picom.conf &
        ${pkgs.feh}/bin/feh --no-fehbg --bg-fill ${../../../../modules/users/Rory/wallpaper.webp}
      '';
      windowManager.i3.extraPackages = with pkgs; [
        easyeffects
        keepassxc
      ];
    };

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

}