Added yazi as base file manager

This commit is contained in:
Michel Fedde 2025-02-23 18:55:37 +01:00
parent 59565c04f9
commit 3a685df812
5 changed files with 25 additions and 1 deletions

View file

@ -98,7 +98,7 @@ bind = $mainMod, F, fullscreen, 1
bind = $mainMod SHIFT, F, fullscreen, 0
$mainMod = SUPER
$files = thunar
$files = gtk-launch yazi
$term = ghostty
$scriptsDir = $HOME/.config/hypr/scripts

View file

@ -19,6 +19,7 @@ windowrulev2 = center, title:^(ROG Control)$
windowrulev2 = center, title:^(Keybindings)$
windowrulev2 = move 72% 7%,title:^(Picture-in-Picture)$
#windowrulev2 = move 72% 7%,title:^(Firefox)$
windowrulev2 = move cursor -50% -50%, class:blobdrop
# windowrule v2 to avoid idle for fullscreen apps
windowrulev2 = idleinhibit fullscreen, class:^(*)$
@ -78,6 +79,7 @@ windowrulev2 = float, title:^(hyprgui)$
windowrulev2 = float, class:^(io.ente.auth)$
windowrulev2 = float, class:^(org.rncbc.qjackctl)$
windowrulev2 = float, class:^(blobdrop)$
windowrulev2 = float, title:Yazi-STANDALONE
# windowrule v2 - size
windowrulev2 = size 70% 70%, class:^(gnome-system-monitor|org.gnome.SystemMonitor|io.missioncenter.MissionCenter)$
@ -94,10 +96,12 @@ windowrulev2 = size 60% 70%, title:^(ROG Control)$
windowrulev2 = size 60% 70%, title:^(hyprgui)$
windowrulev2 = size 240px 450px, class:^(libresplit)$
windowrulev2 = size 500px 1000px, class:^(io.ente.auth)$
windowrulev2 = size 60% 70%, title:Yazi-STANDALONE
# windowrule v2 - pinning
windowrulev2 = pin,title:^(Picture-in-Picture)$
windowrulev2 = pin,class: ^(io.ente.auth)$
windowrulev2 = pin,class:blobdrop
#windowrulev2 = pin,title:^(Firefox)$

View file

@ -0,0 +1,3 @@
#!/bin/env sh
yay -S --needed yazi p7zip jq poppler fd ripgrep fzf zoxide imagemagick

9
.config/yazi/keymap.toml Normal file
View file

@ -0,0 +1,9 @@
[manager]
prepend_keymap = [
{ on = "<S-l>", desc = "Move to the tab on the left", run = "tab_switch 1 --relative" },
{ on = "<S-h>", desc = "Move to the tab on the right", run = "tab_switch -1 --relative" },
{ on = ["<Space>", 'z'], desc = "Zip the selected files", run = "shell '7z a .zip \"$@\"' --interactive --cursor=5"}
]
append_keymap = [
{ on = ['c', 'v'], desc = "Drag selected files", run = "shell 'blobdrop -b \"$@\"'" },
]

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Yazi File Manager
Comment=File Manager
Exec=ghostty --working-directory="~/" --title="Yazi-STANDALONE" -e yazi
Categories=Notes;DSA;
Icon=/usr/share/icons/Gruvbox-Material-Dark/128x128/apps/system-file-manager.svg