Thunar: Difference between revisions

imported>SuperSamus
Revamped the article
DrVoid (talk | contribs)
m Plugins: Added a few examples of compatible archive managers.
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Thunar is a GTK file manager originally made for [[Xfce]].
[https://docs.xfce.org/xfce/thunar/start Thunar] is a GTK file manager originally made for [[Xfce]].


== Installation ==
== Installation ==


=== With Xfce ===
Thunar will automatically be installed by [[Xfce#Enabling | enabling Xfce]].


If you [https://nixos.wiki/wiki/Xfce#Enabling enabled Xfce], Thunar should already be installed.
If you want to install Thunar standalone, add to your <code>configuration.nix</code>:


You can add plugins with <code>services.xserver.desktopManager.xfce.thunarPlugins</code> in your <code>/etc/nixos/configuration.nix</code>, for example:
<syntaxhighlight lang="nix">
programs.thunar.enable = true;
</syntaxhighlight>
 
== Configuration ==


If xfce is not used as desktop and therefore <code>xfconf</code> is not enabled, preference changes are discarded.
In that case enable the <code>xfconf</code> program manually to be able to save preferences:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.xserver.desktopManager.xfce.thunarPlugins = with pkgs; [ xfce.thunar-volman xfce.thunar-archive-plugin ];
programs.xfconf.enable = true;
</syntaxhighlight>
</syntaxhighlight>


=== Standalone ===
=== Plugins ===


If instead you want to install Thunar standalone, add to your <code>/etc/nixos/configuration.nix</code>:
You can add plugins by including them in <code>programs.thunar.plugins</code> to your <code>configuration.nix</code>. For example:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
environment.systemPackages = with pkgs; [
programs.thunar.plugins = with pkgs.xfce; [
   xfce.thunar
   thunar-archive-plugin # Requires an Archive manager like file-roller, ark, etc
  # Optionals
   thunar-volman
   xfce.xfconf # Needed to save the preferences
  xfce.exo # Used by default for `open terminal here`, but can be changed
];
];
services.gvfs.enable = true; # Mount, trash, and other functionalities
services.tumbler.enable = true; # Thumbnail support for images
</syntaxhighlight>
</syntaxhighlight>


You can add plugins by [https://nixos.org/manual/nixpkgs/stable/#chap-overrides overriding] <code>thunarPlugins</code>. For example, replace <code>xfce.thunar</code> from above with:
=== Other functionalities ===
 
You can extend Thunar's functionalities by adding to your <code>configuration.nix</code>:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
(xfce.thunar.override { thunarPlugins = with pkgs; [ xfce.thunar-volman xfce.thunar-archive-plugin ]; })
services.gvfs.enable = true; # Mount, trash, and other functionalities
services.tumbler.enable = true; # Thumbnail support for images
</syntaxhighlight>
</syntaxhighlight>


=== Thumbnails ===
{{Tip|You must logout and login again, after enabling gvfs, for the plugin to be active in Thunar}}


You can extend tumbler's functionality to other file formats by adding more packages to <code>environment.systemPackages</code>. See [https://wiki.archlinux.org/title/File_manager_functionality#Thumbnail_previews here] for a list (the names may not match 1:1).
You can extend Tumbler's support to other file formats by adding more packages to <code>environment.systemPackages</code>. See [https://wiki.archlinux.org/title/File_manager_functionality#Thumbnail_previews here] for a list (the names may not match 1:1).


== See also ==
== See also ==
Line 42: Line 47:


[[Category:Applications]]
[[Category:Applications]]
[[Category:File Manager]]