dotfiles

My PC Dotfiles & Website
commit 3e07880ac23c6a37353b74116b2d694b3b167c9b
parent 5c59300b32d51fccdefb5b768e8513e688581bed
Author: maydayv7 <maydayv7@gmail.com>
Date:   Wed,  4 Dec 2024 15:31:10 +0530

feat(Hyprland): Use `nautilus` instead of `thunar`

Diffstat:

Mmodules/gui/desktop/hyprland/apps/default.nix | 46+++++++++++++++++++++++++++-------------------
Mmodules/gui/desktop/hyprland/default.nix | 14++++++++++++--
Musers/default.nix | 1+
Musers/v7/default.nix | 2+-
4 files changed, 41 insertions(+), 22 deletions(-)

diff --git a/modules/gui/desktop/hyprland/apps/default.nix b/modules/gui/desktop/hyprland/apps/default.nix @@ -16,16 +16,10 @@ in { xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk]; # File Manager - services.tumbler.enable = true; - programs = { - xfconf.enable = true; - thunar = { - enable = true; - plugins = with pkgs.xfce; [ - thunar-archive-plugin - thunar-volman - ]; - }; + services.gnome.sushi.enable = true; + programs.nautilus-open-any-terminal = { + enable = true; + terminal = "kitty"; }; environment.systemPackages = with pkgs; [ @@ -42,6 +36,7 @@ in { custom.kebihelp lollypop mission-center + nautilus nwg-displays nwg-drawer overskride @@ -92,9 +87,9 @@ in { ".config/mpv" ".config/nwg-displays" ".config/shotwell" - ".config/Thunar" ".local/share/clipboard" ".local/share/lollypop" + ".local/share/nautilus" ".local/share/shotwell" ".cache/shotwell" ]; @@ -105,7 +100,7 @@ in { # Default Applications xdg.mimeApps.defaultApplications = util.build.mime files.xdg.mime { audio = ["org.gnome.Lollypop.desktop"]; - directory = ["thunar.desktop"]; + directory = ["org.gnome.Nautilus.desktop"]; image = ["org.gnome.Shotwell-Viewer.desktop"]; magnet = ["transmission-gtk.desktop"]; markdown = ["geany.desktop"]; @@ -140,7 +135,7 @@ in { "$mod SHIFT, A, exec, hyprutils toggle panel" "$mod SHIFT, C, exec, ${runOnce "hyprpicker"} -arf hex" "$mod, D, exec, pypr toggle displays" - "$mod, F, exec, thunar" + "$mod, F, exec, nautilus" "$mod, N, exec, dunstctl history-pop" "$mod, T, exec, kitty" "$mod SHIFT, T, exec, pypr toggle term" @@ -286,6 +281,25 @@ in { tray = true; }; + # File Manager + dconf.settings = { + "org/gtk/gtk4/settings/file-chooser".sort-directories-first = true; + "org/gnome/nautilus/icon-view" = { + captions = ["size" "date_modified" "none"]; + default-zoom-level = "medium"; + }; + + "org/gnome/nautilus/preferences" = { + click-policy = "single"; + default-folder-viewer = "icon-view"; + fts-enabled = true; + search-filter-time-type = "last_modified"; + search-view = "list-view"; + show-create-link = true; + show-delete-permanently = true; + }; + }; + # Configuration Files home.file = { @@ -333,12 +347,6 @@ in { TerminalEmulator=kitty TerminalEmulatorDismissed=true ''; - - # File Manager - ".config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml" = { - text = xfce.settings.thunar; - force = true; - }; } ## 3rd Party Apps Configuration // { diff --git a/modules/gui/desktop/hyprland/default.nix b/modules/gui/desktop/hyprland/default.nix @@ -44,8 +44,18 @@ in { }; services = { - # Auostart - xserver.desktopManager.runXdgAutostartIfNone = true; + # Session + displayManager.defaultSession = "Desktop"; + xserver = { + desktopManager.runXdgAutostartIfNone = true; + displayManager.session = [ + { + name = "Desktop"; + manage = "desktop"; + start = "uwsm start -S -F Hyprland &> /dev/null"; + } + ]; + }; # Greeter greetd.settings.default_session.command = with programs; diff --git a/users/default.nix b/users/default.nix @@ -49,6 +49,7 @@ in { ".config/gtk-3.0/bookmarks".text = mkBefore '' file://${dir}/Downloads Downloads file://${dir}/Pictures Pictures + file://${dir}/Documents Documents ''; }; diff --git a/users/v7/default.nix b/users/v7/default.nix @@ -31,7 +31,7 @@ # GTK+ Bookmarks ".config/gtk-3.0/bookmarks".text = lib.mkBefore '' - file://${config.home.homeDirectory}/Documents/TBD TBD + file://${config.home.homeDirectory}/Projects Projects ''; }; };