Shell and terminal tweaks

This commit is contained in:
Erwin Boskma 2023-04-25 09:48:32 +02:00
parent 60f2b7666c
commit 012a2b9764
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU
5 changed files with 20 additions and 9 deletions

View file

@ -86,10 +86,9 @@ let dark_theme = {
} }
# External completer example # External completer example
# let carapace_completer = {|spans| let carapace_completer = {|spans|
# carapace $spans.0 nushell $spans | from json carapace $spans.0 nushell $spans | from json
# } }
# The default config record. This is where much of your global configuration is setup. # The default config record. This is where much of your global configuration is setup.
let-env config = { let-env config = {
@ -182,8 +181,8 @@ let-env config = {
algorithm: "fuzzy" # prefix or fuzzy algorithm: "fuzzy" # prefix or fuzzy
external: { external: {
enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options # max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
completer: null # $carapace_completer # check 'carapace_completer' above as an example completer: $carapace_completer # check 'carapace_completer' above as an example
} }
} }
filesize: { filesize: {

View file

@ -26,6 +26,8 @@ in
extraConfig = '' extraConfig = ''
alias vim = nvim alias vim = nvim
alias tree = ${pkgs.exa}/bin/exa -Fb --git --tree alias tree = ${pkgs.exa}/bin/exa -Fb --git --tree
let-env LS_COLORS = (${pkgs.vivid}/bin/vivid generate dracula | str trim)
''; '';
}; };

View file

@ -14,6 +14,10 @@ in
type = types.package; type = types.package;
default = pkgs.rofi; default = pkgs.rofi;
}; };
terminal = mkOption {
description = "Path to the terminal program rofi will use to execute console applications";
type = types.path;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -21,7 +25,7 @@ in
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
theme = ./launch.rasi; theme = ./launch.rasi;
terminal = "${pkgs.alacritty}/bin/alacritty"; terminal = cfg.terminal;
extraConfig = { extraConfig = {
modi = "drun"; modi = "drun";
font = "Overpass Nerd Font 10"; font = "Overpass Nerd Font 10";

View file

@ -26,7 +26,8 @@ in
eboskma = { eboskma = {
programs = { programs = {
alacritty.enable = true; alacritty.enable = false;
atuin.enable = true;
bat.enable = true; bat.enable = true;
cargo = { cargo = {
enable = true; enable = true;
@ -105,6 +106,7 @@ in
rofi = { rofi = {
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
terminal = config.home-manager.users.erwin.wayland.windowManager.sway.config.terminal;
}; };
vscode.enable = true; vscode.enable = true;
solvespace.enable = true; solvespace.enable = true;

View file

@ -23,6 +23,7 @@ in
var.workSystem = true; var.workSystem = true;
programs = { programs = {
alacritty.enable = true; alacritty.enable = true;
atuin.enable = true;
bat.enable = true; bat.enable = true;
cargo = { cargo = {
enable = true; enable = true;
@ -74,7 +75,10 @@ in
} }
]; ];
}; };
rofi.enable = true; rofi = {
enable = true;
terminal = config.home-manager.users.erwin.xsession.windowManager.i3.config.terminal;
};
ssh.enable = true; ssh.enable = true;
starship.enable = true; starship.enable = true;
zellij = { zellij = {