Add home dock/monitor config

This commit is contained in:
Evie Litherland-Smith 2023-07-28 07:00:26 +01:00
parent 04e00b1348
commit 9713314c45

View file

@ -3,9 +3,10 @@ let
username = "elitherl"; username = "elitherl";
homeDirectory = "/home/${username}"; homeDirectory = "/home/${username}";
monitors = { monitors = {
eDP-1 = "preferred,auto,1.5"; eDP-1 = "preferred,auto,1.25";
Iiyama = "preferred,0x185,1"; Iiyama = "preferred,0x185,1";
Dell = "preferred,1920x0,1,transform,1"; Dell = "preferred,1920x0,1,transform,1";
Acer = "highrr,auto,1";
}; };
in { in {
imports = [ imports = [
@ -28,11 +29,11 @@ in {
enable = true; enable = true;
systemdTarget = "hyprland-session.target"; systemdTarget = "hyprland-session.target";
profiles = { profiles = {
undocked.outputs = [{ default.outputs = [{
criteria = "eDP-1"; criteria = "eDP-1";
status = "enable"; status = "enable";
}]; }];
docked.outputs = [ workDock.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
status = "disable"; status = "disable";
@ -46,15 +47,25 @@ in {
status = "enable"; status = "enable";
} }
]; ];
homeDock.outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "Acer Technologies ED270R TJMEE0043W01";
status = "enable";
}
];
}; };
}; };
xdg.configFile."hypr/display.conf".text = '' xdg.configFile."hypr/display.conf".text = ''
monitor=eDP-1,${monitors.eDP-1} monitor=eDP-1,${monitors.eDP-1}
monitor=desc:Iiyama North America PLB2403WS 0574281251316,${monitors.Iiyama} monitor=desc:Iiyama North America PLB2403WS 0574281251316,${monitors.Iiyama}
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,${monitors.Dell} monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,${monitors.Dell}
monitor=desc:Acer Technologies ED270R TJMEE0043W01,${monitors.Acer}
bindl=,switch:Lid Switch,exec,rfkill unblock wlan bindl=,switch:Lid Switch,exec,rfkill unblock wlan
# bindl=,switch:Lid Switch,exec,hyprctl reload
bindl=,switch:Lid Switch,exec,pkill -9 kanshi bindl=,switch:Lid Switch,exec,pkill -9 kanshi
bindl=,switch:Lid Switch,exec,pkill -9 hyprpaper && hyprctl dispatch exec hyprpaper bindl=,switch:Lid Switch,exec,pkill -9 hyprpaper && hyprctl dispatch exec hyprpaper
''; '';