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";
};
}
@@ -0,0 +1,114 @@
# Catppuccin Mocha for Hyprland
# Colors (match your variables.conf or override here)
$base = #1e1e2e
$inactive = rgba(595959aa)
$mantle = #181825
$crust = #11111b
$surface0 = #313244
$surface1 = #45475a
$surface2 = #585b70
$overlay0 = #6c7086
$overlay1 = #7f849c
$overlay2 = #9399b2
$subtext0 = #a6adc8
$subtext1 = #bac2de
$text = #cdd6f4
$lavender = #b4befe
$blue = #89b4fa
$sapphire = #74c7ec
$sky = #89dceb
$teal = #94e2d5
$green = #a6e3a1
$yellow = #f9e2af
$peach = #fab387
$maroon = #eba0ac
$red = #f38ba8
$mauve = #cba6f7
$pink = #f5c2e7
$flamingo = #f2cdcd
$rosewater = #f5e0dc
# General theming
general {
col.active_border = $blue $green 45deg
col.inactive_border = $surface1 80%
col.urgent_border = $red
col.float_border_active = $blue
col.float_border_inactive = $surface1
col.focused_title = $text
col.unfocused_title = $subtext0
col.backdrop = $base
col.backdrop_title = $overlay0
col.backdrop_border = $surface1
col.backdrop_float_border = $surface1
col.backdrop_float_border_active = $blue
col.backdrop_float_title = $overlay0
col.backdrop_float_title_active = $text
col.backdrop_float_urgent = $red
col.backdrop_float_urgent_title = $text
col.backdrop_float_urgent_border = $red
col.backdrop_group_active = $surface1
col.backdrop_group_active_border = $blue
col.backdrop_group_active_title = $text
col.backdrop_group_inactive = $surface1
col.backdrop_group_inactive_border = $surface1
col.backdrop_group_inactive_title = $overlay0
col.backdrop_group_urgent = $red
col.backdrop_group_urgent_border = $red
col.backdrop_group_urgent_title = $text
}
# Window decorations
decoration {
rounding = 6
blur = yes
blur_size = 3
blur_passes = 2
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(0, 0, 0, 0.8)
col.shadow_active = rgba(0, 0, 0, 0.5)
col.shadow_inactive = rgba(0, 0, 0, 0.3)
}
# Input fields (e.g., Hyprctl menus)
input_field {
col.background = $surface0
col.border = $blue
col.text = $text
col.placeholder = $overlay1
}
# Hyprbar (if used)
hyprbar {
col.background = $surface0 90%
col.text = $text
col.icon = $text
col.icon_unoccupied = $overlay1
col.urgent = $red
col.urgent_text = $text
col.active_workspace = $blue
col.inactive_workspace = $overlay0
col.occupied_workspace = $subtext0
}
# Hyprlock (if used)
hyprlock {
col.background = $base
col.input_field = $surface0
col.text = $text
col.time_text = $blue
col.date_text = $green
col.wrong_password = $red
col.wrong_password_bg = $surface0
}
# Hypridle (if used)
hypridle {
col.lock = $base
col.lock_input_field = $surface0
col.lock_text = $text
col.lock_time_text = $blue
col.lock_date_text = $green
}
@@ -6,8 +6,6 @@ brave
chromium
# utils
thunar
qvfs
wget
kdePackages.kdeconnect-kde
_1password-gui