Enable kanshi again for work laptop

This commit is contained in:
Evie Litherland-Smith 2024-04-19 14:21:00 +01:00
parent 8045622de2
commit 70eae14c8b

View file

@ -1,14 +1,46 @@
{pkgs, ...}: { {
imports = [../Scorch/home.nix]; config,
lib,
pkgs,
...
}: {
home.packages = [(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")]; home.packages = [(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")];
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
accounts.email.accounts = {
proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true;
};
wayland.windowManager.sway.config.output = { wayland.windowManager.sway.config.output = {
"eDP-1" = { "eDP-1".scale = "1.25";
pos = "2560 720"; "Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
scale = "1.25"; };
xresources.properties."Xft.dpi" = toString (builtins.mul 96 1.5);
services.kanshi = {
enable = true;
systemdTarget = "sway-session.target";
profiles = {
undocked = {
outputs = [
{
criteria = "eDP-1";
status = "enable";
scale = 1.25;
}
];
};
docked = {
outputs = [
{
criteria = "Dell Inc. DELL P3223QE CCG8YN3";
status = "enable";
scale = 1.5;
}
{
criteria = "eDP-1";
status = "disable";
}
];
};
}; };
}; };
wayland.windowManager.hyprland.settings = {
workspace = ["1, monitor:eDP-1, default:true"];
monitor = ["eDP-1,1920x1080,2560x720,1.50"];
};
} }