Hyprland: switch primary file manager to nautilus

This commit is contained in:
Filippo Berto 2024-01-06 11:17:50 +01:00
parent b05dd037c4
commit 5ddf725c47
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
3 changed files with 4 additions and 10 deletions

View file

@ -2,10 +2,10 @@
imports = [
./kitty.nix
./nautilus.nix
./nemo.nix
./terminator.nix
./wl_update_background.nix
./yazi.nix
];
home.packages = builtins.attrValues { inherit (pkgs) blueman brillo gamescope grim networkmanagerapplet pamixer playerctl slurp swaylock swww way-lockscreen waybar wl-clipboard wl-clipedit wlogout wofi wofi-emoji xdg-desktop-portal-gtk; };
@ -15,14 +15,6 @@
xdg.configFile."hypr/hyprland.conf".text =
let
strPalette = pkgs.lib.nix-rice.palette.toRgbaShortHex pkgs.rice.colorPalette;
ya = pkgs.writeShellScript "ya" ''
tmp="$(mktemp -t "yazi-cwd.XXXXX")"
yazi --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
fi
rm -f -- "$tmp"
'';
in
''
########################################################################################
@ -168,7 +160,7 @@
bind = SUPER, W, killactive,
bind = SUPER, M, exec, way-lockscreen
bind = SUPER_ALT_L, Q, exit,
bind = SUPER, E, exec, kitty -e bash ${ya}
bind = SUPER, E, exec, nautilus
bind = SUPER_SHIFT, E, exec, nemo
bind = SUPER, V, togglefloating,
bind = SUPER_SHIFT, SPACE, exec, wofi --show run --allow-images -D key_expand=Tab -M=fuzzy -i