refactor *started*
This commit is contained in:
parent
d0413cb830
commit
db2103a37d
103 changed files with 1008 additions and 786 deletions
12
home/apps/terminal/default.nix
Normal file
12
home/apps/terminal/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./kitty.nix
|
||||
];
|
||||
}
|
||||
75
home/apps/terminal/kitty.nix
Normal file
75
home/apps/terminal/kitty.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = lib.mkIf osConfig.apps.terminal.kitty.enable {
|
||||
programs = {
|
||||
kitty = {
|
||||
enable = true;
|
||||
enableGitIntegration = true;
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
font = {
|
||||
name = "FiraCode Nerd Font";
|
||||
size = 16;
|
||||
package = pkgs.nerd-fonts.fira-code;
|
||||
};
|
||||
settings = {
|
||||
include = "themes/noctalia.conf";
|
||||
wayland_titlebar_color = "system";
|
||||
macos_titlebar_color = "system";
|
||||
# The most important setting of the whole confiG
|
||||
|
||||
confirm_os_window_close = 0;
|
||||
|
||||
# Cursor
|
||||
|
||||
cursor_shape = "underline";
|
||||
|
||||
# Scrollback
|
||||
|
||||
scrollback_lines = 10000;
|
||||
|
||||
# Link Behaviour
|
||||
|
||||
url_style = "straight";
|
||||
open_url_with = "default";
|
||||
|
||||
# Layouts
|
||||
|
||||
remember_window_size = "no";
|
||||
enabled_layouts = "splits, tall";
|
||||
window_resize_step_cells = 3;
|
||||
window_resize_step_lines = 3;
|
||||
window_border_width = "3 pt";
|
||||
draw_minimal_borders = "yes";
|
||||
window_margin_width = 10;
|
||||
window_padding_width = 10;
|
||||
|
||||
# Borders/Appearance
|
||||
|
||||
inactive_text_alpha = 0.5;
|
||||
hide_window_decorations = "no";
|
||||
|
||||
# tab bar
|
||||
|
||||
tab_bar_min_tabs = 1;
|
||||
tab_bar_edge = "bottom";
|
||||
tab_bar_style = "powerline";
|
||||
tab_powerline_style = "slanted";
|
||||
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
|
||||
};
|
||||
};
|
||||
};
|
||||
home.sessionVariables = {
|
||||
TERM = lib.mkDefault "xterm-kitty";
|
||||
};
|
||||
};
|
||||
}
|
||||
61
home/apps/terminal/ranger.nix
Normal file
61
home/apps/terminal/ranger.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = lib.mkIf osConfig.apps.terminal.tui.ranger.enable {
|
||||
programs = {
|
||||
ranger = {
|
||||
enable = true;
|
||||
extraPackages = [
|
||||
|
||||
];
|
||||
settings = {
|
||||
viewmode = "miller";
|
||||
column_ratios = "1,3,4";
|
||||
show_hidden = true;
|
||||
confirm_on_delete = "multiple";
|
||||
use_preview_script = true;
|
||||
automatically_count_files = true;
|
||||
open_all_images = true;
|
||||
vcs_aware = true;
|
||||
vcs_backend_git = "enabled";
|
||||
vcs_msg_length = 50;
|
||||
preview_images = true;
|
||||
preview_images_method = lib.mkIf config.terminal.kitty.enable "kitty";
|
||||
preview_files = true;
|
||||
preview_directories = true;
|
||||
collapse_preview = false;
|
||||
save_console_history = true;
|
||||
status_bar_on_top = false;
|
||||
draw_progress_bar_in_status_bar = true;
|
||||
draw_borders = "both";
|
||||
dirname_in_tabs = true;
|
||||
mouse_enabled = false;
|
||||
display_size_in_main_column = true;
|
||||
display_size_in_status_bar = true;
|
||||
display_free_space_in_status_bar = true;
|
||||
display_tags_in_all_columns = true;
|
||||
update_title = true;
|
||||
update_tmux_title = true;
|
||||
shorten_title = 10;
|
||||
hostname_in_titlebar = true;
|
||||
tilde_in_titlebar = false;
|
||||
max_history_size = 100;
|
||||
max_console_history_size = 200;
|
||||
scroll_offset = 8;
|
||||
flushinput = true;
|
||||
autosave_bookmarks = true;
|
||||
show_cursor = false;
|
||||
sort = "natural";
|
||||
sort_case_insensitive = true;
|
||||
sort_directories_first = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue