Thunar: Difference between revisions

imported>Artturin
add thunar page
 
DrVoid (talk | contribs)
m Plugins: Added a few examples of compatible archive managers.
 
(11 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 ==


=== NixOS ===
Thunar will automatically be installed by [[Xfce#Enabling | enabling Xfce]].
 
If you want to install Thunar standalone, add to your <code>configuration.nix</code>:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
environment.systemPackages = with pkgs; [ xfce.thunar xfce.xfconf xfce.tumbler xfce.exo ]
programs.thunar.enable = true;
</syntaxhighlight>
</syntaxhighlight>


xfconf is needed to save settings
== 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">
programs.xfconf.enable = true;
</syntaxhighlight>


tumbler is needed for thumbnails
=== Plugins ===


exo is needed for <code>open terminal here</code> to function
You can add plugins by including them in <code>programs.thunar.plugins</code> to your <code>configuration.nix</code>. For example:


=== Home Manager ===
<syntaxhighlight lang="nix">
programs.thunar.plugins = with pkgs.xfce; [
  thunar-archive-plugin # Requires an Archive manager like file-roller, ark, etc
  thunar-volman
];
</syntaxhighlight>
 
=== Other functionalities ===
 
You can extend Thunar's functionalities by adding to your <code>configuration.nix</code>:
 
<syntaxhighlight lang="nix">
services.gvfs.enable = true; # Mount, trash, and other functionalities
services.tumbler.enable = true; # Thumbnail support for images
</syntaxhighlight>


Same as above but replace <code>environment.systemPackages</code> with <code>home.packages</code>
{{Tip|You must logout and login again, after enabling gvfs, for the plugin to be active in Thunar}}


=== Non-NixOS ===
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).
[https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management declarative package management on non-nixos]


== See also ==
* [[PCManFM]]


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