fix: properly configure yazi

Now super+e opens yazi instead of trying to open dolphin
This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2024-02-07 19:12:51 -03:00
parent 0a369a745b
commit 392a94a4ec
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
5 changed files with 20 additions and 23 deletions

View file

@ -213,7 +213,7 @@
bind = $mainMod SHIFT, F, fullscreen, 1
bind = $mainMod SHIFT, P, exec, ~/.local/share/scripts/hyprland/screenshot.sh
bind = $mainMod, C, killactive
bind = $mainMod, E, exec, dolphin
bind = $mainMod, E, exec, wezterm start fish -c "ya"
bind = $mainMod, F, fullscreen
bind = $mainMod, M, exit
bind = $mainMod, O, togglesplit # dwindle

View file

@ -1,19 +0,0 @@
{ pkgs, yazi, ... }:
{
programs.yazi = {
enable = true;
package = yazi.packages.${pkgs.system}.default;
settings = {
opener = {
text = [{
block = true;
exec = "nvim \"$@\"";
}];
};
theme = builtins.readFile ./theme.toml;
};
};
}

9
programs/yazi/yazi.toml Normal file
View file

@ -0,0 +1,9 @@
[opener]
video = [
{ exec = 'vlc "$1"', desc = "Open in VLC", orphan = true }
]
[open]
rules = [
{ mime = "video/*", use = "video" }
]