Added danger mode for alacritty

This commit is contained in:
Cameron Reed 2024-03-31 23:40:51 -06:00
parent a125ffeb86
commit 9fa0a38bc5
5 changed files with 9 additions and 1 deletions

View File

@ -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 "";
}

View File

@ -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"

View File

@ -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 "";
}

View File

@ -11,5 +11,10 @@ with lib; {
default = "";
type = types.str;
};
runInDangerTerm = mkOption {
default = "";
type = types.str;
};
};
}

View File

@ -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}"'