diff --git a/common/users/cameron/home-manager/alacritty.nix b/common/users/cameron/home-manager/alacritty.nix index 44ce9f9..1e00352 100644 --- a/common/users/cameron/home-manager/alacritty.nix +++ b/common/users/cameron/home-manager/alacritty.nix @@ -28,4 +28,5 @@ }; runInTerm = if (config.term == "alacritty") then "${pkgs.alacritty}/bin/alacritty -e" else lib.mkDefault ""; + runInDangerTerm = if (config.term == "alacritty") then "${pkgs.alacritty}/bin/alacritty -o colors.primary.background=\"'##663333'\" -o colors.primary.foreground=\"'##eeeeee'\" -T Danger -e" else lib.mkDefault ""; } diff --git a/common/users/cameron/home-manager/hyprland.nix b/common/users/cameron/home-manager/hyprland.nix index 89305e7..2758b11 100644 --- a/common/users/cameron/home-manager/hyprland.nix +++ b/common/users/cameron/home-manager/hyprland.nix @@ -122,6 +122,7 @@ bind = [ "$mod, Return, exec, ${config.runInTerm} ${pkgs.tmux}/bin/tmux" + "$mod, backslash, exec, ${config.runInDangerTerm} ${pkgs.tmux}/bin/tmux new-session -e DANGER=1" "$mod, B, exec, $browser" "$mod, E, killactive," "$mod, Q, exec, hyprctl kill" diff --git a/common/users/cameron/home-manager/kitty.nix b/common/users/cameron/home-manager/kitty.nix index e1fa903..87e4d90 100644 --- a/common/users/cameron/home-manager/kitty.nix +++ b/common/users/cameron/home-manager/kitty.nix @@ -16,4 +16,5 @@ }; runInTerm = if (config.term == "kitty") then "${pkgs.kitty}/bin/kitty" else lib.mkDefault ""; + runInDangerTerm = if (config.term == "kitty") then "${pkgs.kitty}/bin/kitty" else lib.mkDefault ""; } diff --git a/common/users/cameron/home-manager/options.nix b/common/users/cameron/home-manager/options.nix index 8bf3a6b..07ccd75 100644 --- a/common/users/cameron/home-manager/options.nix +++ b/common/users/cameron/home-manager/options.nix @@ -11,5 +11,10 @@ with lib; { default = ""; type = types.str; }; + + runInDangerTerm = mkOption { + default = ""; + type = types.str; + }; }; } diff --git a/common/users/cameron/home-manager/tmux.nix b/common/users/cameron/home-manager/tmux.nix index 88a979b..b262409 100644 --- a/common/users/cameron/home-manager/tmux.nix +++ b/common/users/cameron/home-manager/tmux.nix @@ -14,7 +14,7 @@ extraConfig = '' set -g status-right '"#T"' -set -g status-style 'bg=#262626 fg=#cccccc' +set-hook -g session-created 'set -F status-style "#{?#{==:#{DANGER},},bg=#262626 fg=#cccccc,bg=#e45555 fg=#000000}"' set-hook -g window-linked 'set -F status "#{?#{==:#{session_windows},1},off,on}"' set-hook -g window-unlinked 'set -F status "#{?#{==:#{session_windows},1},off,on}"'