From c35e47da07d58b7b927629651a79b966c8dc98bf Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 8 Apr 2023 18:46:46 +0530 Subject: [PATCH] replace elementary files with nautilus --- home/persistence.nix | 2 ++ home/programs/files.nix | 8 +++++++- home/wm/hyprland/default.nix | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/home/persistence.nix b/home/persistence.nix index 3c44a0f..f2258b1 100644 --- a/home/persistence.nix +++ b/home/persistence.nix @@ -26,6 +26,8 @@ "Others" "Pictures" "Projects" + "Public" + "Templates" "Videos" ]; diff --git a/home/programs/files.nix b/home/programs/files.nix index d62f9a9..345b01d 100644 --- a/home/programs/files.nix +++ b/home/programs/files.nix @@ -1,8 +1,14 @@ { pkgs, ... }: { - home.packages = [ pkgs.pantheon.elementary-files ]; + home.packages = [ pkgs.gnome.nautilus ]; dconf.settings = { "io/elementary/files/preferences" = { singleclick-select = true; }; + "org/gtk/gtk4/settings/file-chooser" = { + sort-directories-first = true; + }; + "org/gnome/nautilus/preferences" = { + click-policy = "double"; + }; }; } diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index e605334..9fd1408 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -102,9 +102,9 @@ in windowrulev2 = center,class:^(eog)$ windowrulev2 = dimaround,class:^(eog)$ - windowrulev2 = float,class:^(io.elementary.files)$ - windowrulev2 = center,class:^(io.elementary.files)$ - windowrulev2 = size 60% 50%,class:^(io.elementary.files)$ + windowrulev2 = float,class:^(org.gnome.Nautilus)$ + windowrulev2 = center,class:^(org.gnome.Nautilus)$ + windowrulev2 = size 60% 60%,class:^(org.gnome.Nautilus)$ windowrulev2 = float,class:^(gnome-system-monitor)$ windowrulev2 = center,class:^(gnome-system-monitor)$