feat(linux): use pcmanfm as file browser

This commit is contained in:
winston 2023-06-11 05:17:07 +02:00
parent 99d0a0c005
commit 9ec72adb27
Signed by: winston
GPG key ID: 3786770EDBC2B481
4 changed files with 8 additions and 14 deletions

View file

@ -53,7 +53,7 @@
modFocus = "${mod}+Ctrl";
hyper = "Mod4+Mod1+Shift+Ctrl";
thunar = lib.getExe pkgs.xfce.thunar;
pcmanfm = lib.getExe pkgs.pcmanfm;
screenshot =
if wayland
then "${lib.getExe pkgs.sway-contrib.grimshot} copy area"
@ -70,7 +70,7 @@
"${mod}+Shift+q" = "kill";
# Start Applications
"${mod}+Shift+Return" = "exec ${terminal}";
"${mod}+e" = "exec --no-startup-id ${thunar}";
"${mod}+e" = "exec --no-startup-id ${pcmanfm}";
"${hyper}+p" = "exec --no-startup-id ${screenshot}";
# change focus

View file

@ -34,15 +34,15 @@ in {
fd
ffmpeg
file
gh
gocryptfs
imagemagick
just
mdcat
mosh
ranger
ripgrep
git-secret
gh
gocryptfs
mosh
sops
]
++ lib.optionals isLinux [
_1password-gui

View file

@ -46,7 +46,7 @@ in {
dataHome = "${homeDirectory}/.local/share";
mimeApps = {
enable = isLinux;
defaultApplications."inode/directory" = "thunar.desktop";
defaultApplications."inode/directory" = "pcmanfm.desktop";
};
};
}

View file

@ -5,6 +5,7 @@
unzip
zip
gnome.file-roller
pcmanfm
# thumbnails
webp-pixbuf-loader
@ -13,13 +14,6 @@
programs = {
dconf.enable = true;
noisetorch.enable = true;
thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
};
programs.sway = {