From ad194bb96d39ac24d5929fe090800f8d6e1e5df8 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sat, 22 Mar 2025 17:25:17 +0100 Subject: [PATCH] Thunar bookmarks Former-commit-id: e6244ea98db8f06fc9a8143897f76489f26455f9 --- home/programs/thunar/default.nix | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/home/programs/thunar/default.nix b/home/programs/thunar/default.nix index a890e40..cb9ce92 100644 --- a/home/programs/thunar/default.nix +++ b/home/programs/thunar/default.nix @@ -1,12 +1,26 @@ # Thunar is a file explorer -{ pkgs, ... }: { +{ pkgs, config, ... }: +let user = config.var.username; +in { # ctrl + m to toggle the menubar - home.packages = with pkgs.xfce; [ - thunar - xfconf - tumbler - thunar-archive-plugin - thunar-volman + home.packages = with pkgs; [ + xfce.thunar + xfce.xfconf + xfce.tumbler + xfce.thunar-archive-plugin + xfce.thunar-volman + xfce.thunar-media-tags-plugin + p7zip + unar + ]; + + # bookmarks for the side pane + gtk.gtk3.bookmarks = [ + "file:///home/${user}/Downloads Downloads" + "file:///home/${user}/Pictures Pictures" + "file:///home/${user}/nextcloud Nextcloud" + "file:///home/${user}/.config/nixos NixOS" + "file:///home/${user}/dev Development" ]; home.file.".config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml".text = ''