feat: add change wallpaper shortcut to yazi
This commit is contained in:
parent
d1f25b377f
commit
c45ba82b90
18 changed files with 188 additions and 21 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue