mlaga97-nix/systems/ll-latitude-e5591/home.nix
2025-10-26 02:22:08 -05:00

110 lines
3.3 KiB
Nix

{ pkgs, ... }: {
home.stateVersion = "24.11";
home.packages = with pkgs; [
#ventoy
yt-dlp
arduino
distrobox
prismlauncher
];
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-2 --mode 3840x2160 --rate 30 --rotate normal --right-of DP-2-1 \
--output DP-2-1 --mode 3840x2160 --rate 30 --rotate normal --primary
i3-msg restart
'';
};
"latitude/minceraft" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --off \
--output DP-2-2 --mode 3840x2160 --rate 30 --rotate right --right-of DP-2-1 \
--output DP-2-1 --mode 1920x1080 --rate 60 --rotate normal --primary
i3-msg restart
'';
};
"latitude/deskrotateright" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --off \
--output DP-2-2 --mode 3840x2160 --rate 30 --rotate right --right-of DP-2-1 \
--output DP-2-1 --mode 3840x2160 --rate 30 --rotate normal --primary
i3-msg restart
'';
};
"latitude/deskrotateleft" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --off \
--output DP-2-2 --mode 3840x2160 --rate 30 --rotate normal --right-of DP-2-1 --primary \
--output DP-2-1 --mode 3840x2160 --rate 30 --rotate left
i3-msg restart
'';
};
"latitude/deskrotateboth" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --off \
--output DP-2-2 --mode 3840x2160 --rate 30 --rotate right --right-of DP-2-1 \
--output DP-2-1 --mode 3840x2160 --rate 30 --rotate left --primary
i3-msg restart
'';
};
"latitude/desk+" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --mode 1920x1080 --left-of DP-2-2 \
--output DP-2-2 --mode 3840x2160 --rate 30 --rotate normal --right-of DP-2-1 \
--output DP-2-1 --mode 3840x2160 --rate 30 --rotate normal --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
'';
};
"latitude/nvidia/desk" = {
executable = true;
text = ''
xrandr \
--output eDP-1-1 --off \
--output DP-1-2-1 --mode 3840x2160 --rate 30 --right-of DP-1-2-2 \
--output DP-1-2-2 --mode 3840x2160 --rate 30 --primary
i3-msg restart
'';
};
};
}