Added danger mode for alacritty
This commit is contained in:
parent
a125ffeb86
commit
9fa0a38bc5
@ -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 "";
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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 "";
|
||||
}
|
||||
|
@ -11,5 +11,10 @@ with lib; {
|
||||
default = "";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
runInDangerTerm = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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}"'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user