1
0
Fork 0
forked from foxora/nix

#1 hater of infinite recursion

This commit is contained in:
do butterflies cry? 2026-02-13 23:27:35 +10:00
parent 43b04c3f8a
commit a5bb1d1cc1
31 changed files with 946 additions and 851 deletions

View file

@ -1,8 +1,8 @@
{ config, inputs, lib, pkgs, ... }:
{
{upkgs, ...}: {
# optional dependencies can be found here:
# https://yazi-rs.github.io/docs/installation/
home.packages = with pkgs; [ # dependencies
home.packages = with upkgs; [
# dependencies
ripdrag
];
@ -22,9 +22,15 @@
keymap = {
mgr.prepend_keymap = [
# drag and drop!!
{ on = [ "<S-c>" ]; run = ''shell "ripdrag -x -a \"$@\"" --confirm''; }
{
on = ["<S-c>"];
run = ''shell "ripdrag -x -a \"$@\"" --confirm'';
}
# copy hovered file to clipboard
{ on = [ "<S-y>" ]; run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list''; }
{
on = ["<S-y>"];
run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list'';
}
];
};
@ -34,36 +40,122 @@
theme = {
icon = {
dirs = [
{ name = ".config"; text = ""; fg = "red"; }
{ name = ".git"; text = ""; fg = "blue"; }
{ name = ".github"; text = ""; fg = "blue"; }
{ name = ".npm"; text = ""; fg = "blue"; }
{ name = "Desktop"; text = ""; fg = "magenta"; }
{ name = "Documents"; text = ""; fg = "magenta"; }
{ name = "Downloads"; text = ""; fg = "red"; }
{ name = "Library"; text = ""; fg = "magenta"; }
{ name = "Movies"; text = ""; fg = "magenta"; }
{ name = "Music"; text = ""; fg = "magenta"; }
{ name = "Pictures"; text = ""; fg = "magenta"; }
{ name = "Public"; text = ""; fg = "magenta"; }
{ name = "Videos"; text = ""; fg = "red"; }
{
name = ".config";
text = "";
fg = "red";
}
{
name = ".git";
text = "";
fg = "blue";
}
{
name = ".github";
text = "";
fg = "blue";
}
{
name = ".npm";
text = "";
fg = "blue";
}
{
name = "Desktop";
text = "";
fg = "magenta";
}
{
name = "Documents";
text = "";
fg = "magenta";
}
{
name = "Downloads";
text = "";
fg = "red";
}
{
name = "Library";
text = "";
fg = "magenta";
}
{
name = "Movies";
text = "";
fg = "magenta";
}
{
name = "Music";
text = "";
fg = "magenta";
}
{
name = "Pictures";
text = "";
fg = "magenta";
}
{
name = "Public";
text = "";
fg = "magenta";
}
{
name = "Videos";
text = "";
fg = "red";
}
];
conds = [
# special files
{ "if" = "orphan"; text = ""; }
{ "if" = "link"; text = ""; }
{ "if" = "block"; text = ""; }
{ "if" = "char"; text = ""; }
{ "if" = "fifo"; text = ""; }
{ "if" = "sock"; text = ""; }
{ "if" = "sticky"; text = ""; }
{ "if" = "dummy"; text = ""; }
conds = [
# special files
{
"if" = "orphan";
text = "";
}
{
"if" = "link";
text = "";
}
{
"if" = "block";
text = "";
}
{
"if" = "char";
text = "";
}
{
"if" = "fifo";
text = "";
}
{
"if" = "sock";
text = "";
}
{
"if" = "sticky";
text = "";
}
{
"if" = "dummy";
text = "";
}
# fallback
{ "if" = "dir"; text = ""; fg = "blue"; }
{ "if" = "exec"; text = ""; }
{ "if" = "!dir"; text = ""; }
];
# fallback
{
"if" = "dir";
text = "";
fg = "blue";
}
{
"if" = "exec";
text = "";
}
{
"if" = "!dir";
text = "";
}
];
};
};
};
@ -76,7 +168,7 @@
force = true;
text = ''
[filechooser]
cmd=${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
cmd=${upkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
default_dir=$HOME
env=TERMCMD='kitty --title filechooser'
open_mode=suggested