diff --git a/users/erwin/work.nix b/users/erwin/work.nix index 156fe73..6a39bc3 100644 --- a/users/erwin/work.nix +++ b/users/erwin/work.nix @@ -2,6 +2,22 @@ with lib; let cfg = config.eboskma.users.erwin; + + remoteSessionScript = pkgs.writeShellScriptBin "remote-session" '' + ${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --mode 2560x1440 + ${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --mode 2560x1440 --right-of DP-0 + ${pkgs.nitrogen}/bin/nitrogen --head=0 --set-auto ${toString ./wallpapers/jwst-carina-cosmic-cliffs-nircam-2560.png} + ${pkgs.nitrogen}/bin/nitrogen --head=1 --set-auto ${toString ./wallpapers/jwst-southern-ring-nircam-miri-side-by-side-2560.png} + systemctl --user restart polybar + ''; + localSessionScript = pkgs.writeShellScriptBin "local-session" '' + ${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --mode 3840x2160 + ${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --mode 3840x2160 --right-of DP-0 + ${pkgs.nitrogen}/bin/nitrogen --head=0 --set-auto ${toString ./wallpapers/jwst-carina-cosmic-cliffs-nircam-3840.png} + ${pkgs.nitrogen}/bin/nitrogen --head=1 --set-auto ${toString ./wallpapers/jwst-southern-ring-nircam-miri-side-by-side-3840.png} + systemctl --user restart polybar + ''; + in { config = mkIf cfg.work { @@ -56,7 +72,23 @@ in signingKeyFormat = "ssh"; }; gpg.enable = true; - i3.enable = true; + i3 = { + enable = true; + startupCommands = [ + { + command = "${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --primary --left-of DP-4"; + notification = false; + } + { + command = "${pkgs.xorg.xset}/bin/xset +dpms dpms 900 1200 1500"; + notification = false; + } + { + command = "${pkgs.dropbox}/bin/dropbox start"; + notification = false; + } + ]; + }; mpd.enable = true; nushell.enable = true; picom.enable = true; @@ -137,6 +169,9 @@ in wine zathura zeal + + localSessionScript + remoteSessionScript ] ++ (with gst_all_1; [ gstreamer gstreamer.dev gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-vaapi ]);