hand7s: upstream

Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
s0me1newithhand7s 2026-02-08 22:43:08 +03:00
parent e6c9d19b0f
commit e4222e5423
48 changed files with 282 additions and 1097 deletions

View file

@ -50,6 +50,14 @@
}
];
view = [
{
run = "${lib.getExe pkgs.timg} ''-p k -C $@ | ${lib.getExe' pkgs.uutils-coreutils-noprefix "more"}''";
block = true;
for = "unix";
}
];
edit = [
{
run = "${lib.getExe pkgs.helix} ''$@''";
@ -61,12 +69,36 @@
open = [
{
run = "${lib.getExe' pkgs.xdg-utils "xdg-open"} ''$@''";
block = true;
orphan = true;
for = "unix";
}
];
};
open = {
rules = [
{
mime = "image/*";
use = "view";
}
{
mime = "text/*";
use = "edit";
}
{
mime = "audio/*";
use = "play";
}
{
mime = "video/*";
use = "play";
}
];
};
input = {
cursor_blink = true;
};