feat: superfile
This commit is contained in:
parent
854edf73a0
commit
3fbc4c0642
5 changed files with 54 additions and 75 deletions
|
@ -57,6 +57,7 @@ in {
|
||||||
nemo = enabled;
|
nemo = enabled;
|
||||||
neo = enabled;
|
neo = enabled;
|
||||||
neovim = enabled;
|
neovim = enabled;
|
||||||
|
superfile = enabled;
|
||||||
tea = enabled;
|
tea = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
./ripgrep.nix
|
./ripgrep.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./starship
|
./starship
|
||||||
|
./superfile.nix
|
||||||
./systemctl.nix
|
./systemctl.nix
|
||||||
./tea.nix
|
./tea.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
|
|
52
modules/home/programs/superfile.nix
Normal file
52
modules/home/programs/superfile.nix
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.marleyos.programs.superfile;
|
||||||
|
in {
|
||||||
|
options.marleyos.programs.superfile.enable = lib.mkEnableOption "superfile";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
superfile
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.configFile."superfile/config.toml".text =
|
||||||
|
# https://superfile.netlify.app/configure/superfile-config/
|
||||||
|
# toml
|
||||||
|
''
|
||||||
|
theme = "${config.lib.stylix.colors.scheme-name}"
|
||||||
|
editor = "" # use $EDITOR
|
||||||
|
auto_check_update = false
|
||||||
|
cd_on_quit = false
|
||||||
|
default_open_file_preview = true
|
||||||
|
default_directory = "."
|
||||||
|
|
||||||
|
# Display file sizes using powers of 1000 (kb, MB, GB) instead of powers
|
||||||
|
# of 1024 (KiB, MiB, GiB).
|
||||||
|
file_size_use_si = false
|
||||||
|
|
||||||
|
# Style - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
nerfont = true
|
||||||
|
transparent_background = false
|
||||||
|
file_preview_width = 0
|
||||||
|
sidebar_width = 20
|
||||||
|
border_top = '─'
|
||||||
|
border_bottom = '─'
|
||||||
|
border_left = '│'
|
||||||
|
border_right = '│'
|
||||||
|
border_top_left = '╭'
|
||||||
|
border_top_right = '╮'
|
||||||
|
border_bottom_left = '╰'
|
||||||
|
border_bottom_right = '╯'
|
||||||
|
border_middle_left = '├'
|
||||||
|
border_middle_right = '┤'
|
||||||
|
|
||||||
|
# Plugins - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
metadata = false # requires exiftool
|
||||||
|
enable_md5_checksum = false
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,57 +0,0 @@
|
||||||
# More details are at https://superfile.netlify.app/configure/superfile-config/
|
|
||||||
#
|
|
||||||
# change your theme
|
|
||||||
# TODO: set this via stylix
|
|
||||||
theme = 'rose-pine'
|
|
||||||
#
|
|
||||||
# The editor files/directories will be opened with. (leave blank to use the EDITOR environment variable).
|
|
||||||
editor = ""
|
|
||||||
#
|
|
||||||
# Auto check for update
|
|
||||||
auto_check_update = false
|
|
||||||
#
|
|
||||||
# Cd on quit (For more details, please check out https://superfile.netlify.app/configure/superfile-config/#cd_on_quit)
|
|
||||||
cd_on_quit = false
|
|
||||||
#
|
|
||||||
# Whether to open file preview automatically every time superfile is opened.
|
|
||||||
default_open_file_preview = true
|
|
||||||
#
|
|
||||||
# The path of the first file panel when superfile is opened. (DON'T USE '~')
|
|
||||||
default_directory = "."
|
|
||||||
#
|
|
||||||
# Display file sizes using powers of 1000 (kB, MB, GB) instead of powers of 1024 (KiB, MiB, GiB).
|
|
||||||
file_size_use_si = false
|
|
||||||
#
|
|
||||||
# ================ Style =================
|
|
||||||
#
|
|
||||||
# If you don't have or don't want Nerdfont installed you can turn this off
|
|
||||||
nerdfont = true
|
|
||||||
#
|
|
||||||
# Set transparent background or not (this only work when your terminal background is transparent)
|
|
||||||
transparent_background = false
|
|
||||||
#
|
|
||||||
# File preview width allow '0' (this mean same as file panel),'x' x must be less than 10 and greater than 1 (This means that the width of the file preview will be one xth of the total width.)
|
|
||||||
file_preview_width = 0
|
|
||||||
#
|
|
||||||
# The length of the sidebar. If you don't want to display the sidebar, you can input 0 directly. If you want to display the value, please place it in the range of 3-20.
|
|
||||||
sidebar_width = 20
|
|
||||||
#
|
|
||||||
# Border style
|
|
||||||
border_top = '─'
|
|
||||||
border_bottom = '─'
|
|
||||||
border_left = '│'
|
|
||||||
border_right = '│'
|
|
||||||
border_top_left = '╭'
|
|
||||||
border_top_right = '╮'
|
|
||||||
border_bottom_left = '╰'
|
|
||||||
border_bottom_right = '╯'
|
|
||||||
border_middle_left = '├'
|
|
||||||
border_middle_right = '┤'
|
|
||||||
#
|
|
||||||
# ==========PLUGINS========== #
|
|
||||||
#
|
|
||||||
# Show more detailed metadata, please install exiftool before enabling this plugin!
|
|
||||||
metadata = false
|
|
||||||
#
|
|
||||||
# Enable MD5 checksum generation for files
|
|
||||||
enable_md5_checksum = false
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.marleyos.programs.superfile;
|
|
||||||
in {
|
|
||||||
options.marleyos.programs.superfile.enable = lib.mkEnableOption "superfile";
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
superfile
|
|
||||||
];
|
|
||||||
|
|
||||||
xdg.configFile."superfile/config.toml".source = ./config.toml;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue