mlaga97-nix/systems/ll-latitude-e5591/home.nix
2025-08-21 23:06:51 -05:00

56 lines
1.6 KiB
Nix

{ pkgs, ... }: {
home.stateVersion = "24.11";
imports = [
../../home-manager/programs/thunderbird.nix
];
xsession.windowManager.i3.extraConfig = ''
# Desk Lights
bindsym $mod+Shift+d exec curl -X POST https://homeassistant.mlaga97.space/api/webhook/--caDGWR8KXLTM3yZ6Y01XPe6
bindsym $mod+Shift+w exec curl -X POST https://homeassistant.mlaga97.space/api/webhook/-tbHkUPb8aLVcFaOQcXbBdIJb
bindsym $mod+Shift+o exec curl -X POST https://homeassistant.mlaga97.space/api/webhook/-fmYa59UtZaMXythyEsda_ulo
'';
home.file = {
"latitude/tv" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --mode 1920x1080 --primary \
--output DP-2-2 --mode 1920x1080
'';
};
"latitude/desk" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --off \
--output DP-2-1 --mode 3840x2160 --rate 30 --right-of DP-2-2 \
--output DP-2-2 --mode 3840x2160 --rate 30 --primary
i3-msg restart
'';
};
"latitude/desk+" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --mode 1920x1080 --left-of DP-2-2 \
--output DP-2-1 --mode 3840x2160 --rate 30 --right-of DP-2-2 \
--output DP-2-2 --mode 3840x2160 --rate 30 --primary
i3-msg restart
'';
};
"latitude/standalone" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --mode 1920x1080 --primary \
--output DP-2-1 --off \
--output DP-2-2 --off \
--output DP-2-3 --off
i3-msg restart
'';
};
};
}