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

View file

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

View file

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

View file

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