gtrash, yazi, etc
This commit is contained in:
parent
020a25a945
commit
0f50d45a0a
6 changed files with 63 additions and 21 deletions
|
@ -259,6 +259,10 @@
|
|||
name = "bluetui (bluetooth manager)";
|
||||
exec = "/home/emenel/.local/bin/wezapp bluetui";
|
||||
};
|
||||
gtrash = {
|
||||
name = "gtrash";
|
||||
exec = "/home/emenel/.local/bin/wezapp gtrash r";
|
||||
};
|
||||
color-picker-clip = {
|
||||
name = "wl color picker (clipboard)";
|
||||
exec = "${pkgs.wl-color-picker}/bin/wl-color-picker clipboard";
|
||||
|
|
|
@ -14,9 +14,9 @@ in
|
|||
niri = {
|
||||
settings = {
|
||||
|
||||
# debug = {
|
||||
# honor-xdg-activation-with-invalid-serial = true;
|
||||
# };
|
||||
debug = {
|
||||
honor-xdg-activation-with-invalid-serial = [];
|
||||
};
|
||||
|
||||
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
|
||||
prefer-no-csd = true;
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
cmake
|
||||
cmake-format
|
||||
|
||||
mediainfo
|
||||
gtrash
|
||||
|
||||
just
|
||||
readline
|
||||
rlwrap
|
||||
|
@ -99,6 +102,7 @@
|
|||
shellAliases = {
|
||||
"em" = "emacsclient -n -r";
|
||||
"mkdir" = "mkdir -pv";
|
||||
"gt" = "gtrash";
|
||||
};
|
||||
interactiveShellInit = ''
|
||||
bind --erase \ct
|
||||
|
|
|
@ -64,6 +64,18 @@
|
|||
rev = "HEAD";
|
||||
sha256 = "sha256-U6rr3TrFTtnibrwJdJ4rN2Xco4Bt4QbwEVUTNXlWRps=";
|
||||
};
|
||||
starship = pkgs.fetchFromGitHub {
|
||||
owner = "Rolv-Apneseth";
|
||||
repo = "starship.yazi";
|
||||
rev = "HEAD";
|
||||
sha256 = "sha256-ORcexu1f7hb7G4IyzQIfGlCkH3OWlk4w5FtZrbXkR40=";
|
||||
};
|
||||
office = pkgs.fetchFromGitHub {
|
||||
owner = "macydnah";
|
||||
repo = "office.yazi";
|
||||
rev = "HEAD";
|
||||
sha256 = "sha256-ORcexu1f7hb7G4IyzQIfGlCkH3OWlk4w5FtZrbXkR40=";
|
||||
};
|
||||
|
||||
dir-rules = ./yazi/plugins/dir-rules.yazi;
|
||||
smart-tab = ./yazi/plugins/smart-tab.yazi;
|
||||
|
@ -133,20 +145,40 @@
|
|||
};
|
||||
plugin = {
|
||||
prepend_preloaders = [
|
||||
{ name = "/mnt/**"; run = "noop"; }
|
||||
{ name = "/home/emenel/Mounts/**"; run = "noop"; }
|
||||
{ name = "/mnt/**"; run = "noop"; }
|
||||
|
||||
# { mime = "{image,audio,video}/*"; run = "mediainfo";}
|
||||
# { mime = "application/x-subrip"; run = "mediainfo";}
|
||||
|
||||
# Office Documents
|
||||
{ mime = "application/openxmlformats-officedocument.*"; run = "office"; }
|
||||
{ mime = "application/oasis.opendocument.*"; run = "office"; }
|
||||
{ mime = "application/ms-*"; run = "office"; }
|
||||
{ mime = "application/msword"; run = "office"; }
|
||||
{ name = "*.docx"; run = "office"; }
|
||||
];
|
||||
|
||||
prepend_previewers = [
|
||||
# { mime = "{image,audio,video}/*"; run = "mediainfo";}
|
||||
# { mime = "application/x-subrip"; run = "mediainfo";}
|
||||
|
||||
{ name = "*.csv"; run = "rich-preview"; }
|
||||
{ name = "*.md"; run = "rich-preview" ; }
|
||||
{ name = "*.rst"; run = "rich-preview"; }
|
||||
{ name = "*.ipynb"; run = "rich-preview"; }
|
||||
{ name = "*.json"; run = "rich-preview"; }
|
||||
{ name = "*.org"; run = "rich-preview"; }
|
||||
|
||||
# Office Documents
|
||||
{ mime = "application/openxmlformats-officedocument.*"; run = "office"; }
|
||||
{ mime = "application/oasis.opendocument.*"; run = "office"; }
|
||||
{ mime = "application/ms-*"; run = "office"; }
|
||||
{ mime = "application/msword"; run = "office"; }
|
||||
{ name = "*.docx"; run = "office"; }
|
||||
];
|
||||
|
||||
append_previewers = [
|
||||
{ mime = "{image,audio,video}/*"; run = "mediainfo";}
|
||||
{ mime = "application/x-subrip"; run = "mediainfo";}
|
||||
# Archive previewer
|
||||
{ name = "*.zip"; run = "ouch"; }
|
||||
{ mime = "application/*zip"; run = "ouch"; }
|
||||
|
@ -157,6 +189,7 @@
|
|||
{ mime = "application/x-xz"; run = "ouch"; }
|
||||
{ mime = "application/octet-stream"; run = "ouch"; }
|
||||
];
|
||||
|
||||
_spotters = [
|
||||
{ name = "*"; run = "file-extra-metadata"; }
|
||||
];
|
||||
|
|
|
@ -10,6 +10,7 @@ require("restore"):setup({
|
|||
show_confirm = true,
|
||||
})
|
||||
|
||||
-- require("starship"):setup()
|
||||
|
||||
Status:children_add(function()
|
||||
local h = cx.active.current.hovered
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue