From e344c1c27dc5b4570e3aa5dd8e8e92f83a4d9365 Mon Sep 17 00:00:00 2001 From: Lauren Lagarde Date: Tue, 29 Jul 2025 22:26:08 -0500 Subject: [PATCH] Improve home automation keybinds --- home-manager/i3.nix | 5 ----- systems/living-room/home.nix | 5 +++++ systems/ll-latitude-e5591/home.nix | 7 +++++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/home-manager/i3.nix b/home-manager/i3.nix index de8cf5c..89ab837 100644 --- a/home-manager/i3.nix +++ b/home-manager/i3.nix @@ -96,11 +96,6 @@ ################################################################################ # Hardware Control - # 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 - # Allow gnome apps to prompt for password #exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & diff --git a/systems/living-room/home.nix b/systems/living-room/home.nix index d0f0e7a..085886e 100644 --- a/systems/living-room/home.nix +++ b/systems/living-room/home.nix @@ -6,5 +6,10 @@ config.startup = [ { command = "xrandr --output HDMI-1 --mode 1920x1080 --rate 60 --primary"; } ]; + + extraConfig = '' + # House Lights + bindsym $mod+Shift+d exec curl -X POST https://homeassistant.mlaga97.space/api/webhook/IBlEw1rhZcmvRuUGKBMWIS3h + ''; }; } diff --git a/systems/ll-latitude-e5591/home.nix b/systems/ll-latitude-e5591/home.nix index bf14669..a82e4ea 100644 --- a/systems/ll-latitude-e5591/home.nix +++ b/systems/ll-latitude-e5591/home.nix @@ -5,6 +5,13 @@ ../../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 = { ".local/share/OpenSCAD/libraries/BOSL2" = { source = builtins.fetchGit {