mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-13 10:20:42 +01:00
d8914cb4d2
Joshuto is *significantly* faster than ranger and is written in Rust instead of Python. Although both ranger and joshuto have not seen a new release in a while, the future of joshuto seems more promising. Joshuto is additionally faster than lf and, similar to lf, does not hang when previewing images with kitty.
29 lines
822 B
Nix
29 lines
822 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPackages = [
|
|
(pkgs.callPackage ./package {})
|
|
];
|
|
|
|
home-manager.sharedModules = [{
|
|
xdg.configFile."joshuto/joshuto.toml".text = ''
|
|
[display]
|
|
automatically_count_files = true
|
|
show_borders = false
|
|
show_hidden = true
|
|
line_number_style = "absolute"
|
|
collapse_preview = false
|
|
|
|
[preview]
|
|
max_preview_size = 104857600
|
|
preview_script = "~/.config/joshuto/preview.sh"
|
|
preview_shown_hook_script = "~/.config/joshuto/kitty-show.sh"
|
|
preview_removed_hook_script = "~/.config/joshuto/kitty-remove.sh"
|
|
'';
|
|
|
|
xdg.configFile."joshuto/preview.sh".source = ./preview.sh;
|
|
xdg.configFile."joshuto/kitty-show.sh".source = ./kitty-show.sh;
|
|
xdg.configFile."joshuto/kitty-remove.sh".source = ./kitty-remove.sh;
|
|
}];
|
|
}
|