Added themed Thunar

This commit is contained in:
2026-03-14 12:37:00 +00:00
parent ba61474ff1
commit 8a2c0bbe0f
3 changed files with 142 additions and 31 deletions
+28 -29
View File
@@ -1536,43 +1536,42 @@ This is top file of this level which contains just an import statement for all r
** =generated/system/applications/file_management/thunar.nix=
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
#+BEGIN_SRC nix :tangle generated/system/applications/file_management/thunar.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
# Enable Thunar and its plugins
xdg.configFile."thunar/uca.xml".text = '' # Optional: User-defined actions config
<actions>
</actions>
''; # (Customize as needed)
home-manager.users.${config.home.username} = {
# Symlink Papirus icon theme
xdg.configFile."local/share/icons/Papirus".source = "/assets/system/theming/icons/papirus";
xdg.configFile."local/share/icons/Papirus-Dark".source = "/assets/system/theming/icons/papirus-dark"; # If you have the dark variant
# Set Papirus as the default icon theme
gtk.enable = true;
gtk.gtk3.iconTheme.name = "Papirus";
gtk.gtk4.iconTheme.name = "Papirus";
# Thunar and its plugins (as before)
home.packages = with pkgs; [
thunar
thunar-volman
thunar-archive-plugin
thunar-media-tags-plugin
tumbler
ffmpegthumbnailer
gvfs
gvfs-mtp
gvfs-afc
gvfs-goa
gvfs-google
gvfs-smb
gvfs-nfs
xdg-utils
];
xdg.mimeApps = {
defaultApplications = {
"inode/directory" = "Thunar.desktop";
};
};
home.packages = with pkgs; [
thunar
thunar-volman # Automatic volume management (e.g., USB drives)
thunar-media-tags-plugin # Media tags support (e.g., for audio files)
thunar-archive-plugin # Archive (zip/tar/etc.) support
thunar-shares-plugin # SMB/NFS share browsing
tumbler # Thumbnail generation service
ffmpegthumbnailer # Video thumbnails
gst-libav # Additional media thumbnail support
gvfs # Virtual filesystem support (e.g., trash, FTP, SMB)
gvfs-mtp # MTP device support (e.g., Android phones)
gvfs-afc # AFC support (e.g., iOS devices)
gvfs-smb # SMB/CIFS network shares
gvfs-nfs # NFS network shares
xdg-utils # Open files with default applications
];
# Optional: GTK theme integration (e.g., Catppuccin Mocha)
gtk.enable = true;
gtk.gtk3.theme.name = "Adwaita-dark"; # Or "Catppuccin-Mocha-Dark"
gtk.gtk3.iconTheme.name = "Adwaita";
};
}