feat: add change wallpaper shortcut to yazi

This commit is contained in:
danny 2025-11-10 15:21:18 +08:00
parent d1f25b377f
commit c45ba82b90
18 changed files with 188 additions and 21 deletions

View file

@ -61,6 +61,13 @@ in
};
opener = {
set-wallpaper = [
{
run = ''${pkgs.swww}/bin/swww img "$1" --transition-fps 45 --transition-duration 1 --transition-type random'';
for = "linux";
desc = "Set as wallpaper";
}
];
edit = [
{
run = ''''\${EDITOR:=nvim} "$@"'';
@ -98,6 +105,15 @@ in
keymap = {
mgr = {
prepend_keymap = [
# Set Wallpaper
{
on = [
"g"
"w"
];
run = ''shell -- ${pkgs.swww}/bin/swww img "$1" --transition-fps 45 --transition-duration 1 --transition-type random'';
desc = "Set as wallpaper";
}
# Git Changes
{
on = [