diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-09-07 21:04:59 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-09-07 21:33:22 +0530 |
commit | 57df1763fba019574ca4d9ed9aba24c005abe84b (patch) | |
tree | 4ab2a8359e301c86e35eeea1df7d0c660c165901 /home/common | |
parent | 1895ad075c98ab01627d033c985fc4954a525dad (diff) |
Diffstat (limited to 'home/common')
-rw-r--r-- | home/common/home.nix | 2 | ||||
-rw-r--r-- | home/common/modules/mimeapps.nix | 2 | ||||
-rw-r--r-- | home/common/modules/nnn.nix | 7 | ||||
-rw-r--r-- | home/common/modules/tmux.nix | 3 | ||||
-rw-r--r-- | home/common/modules/yazi.nix | 18 |
5 files changed, 23 insertions, 9 deletions
diff --git a/home/common/home.nix b/home/common/home.nix index 51e10b3..299fcb1 100644 --- a/home/common/home.nix +++ b/home/common/home.nix @@ -13,7 +13,7 @@ in ./modules/ssh.nix ./modules/dev.nix ./modules/neovim - ./modules/nnn.nix + ./modules/yazi.nix ../../global/common ]; diff --git a/home/common/modules/mimeapps.nix b/home/common/modules/mimeapps.nix index 8c128cf..fe32319 100644 --- a/home/common/modules/mimeapps.nix +++ b/home/common/modules/mimeapps.nix @@ -27,7 +27,7 @@ "text/x-python" = "nvim.desktop"; # misc - "inode/directory" = "nnn.desktop"; + "inode/directory" = "yazi.desktop"; }; }; } diff --git a/home/common/modules/nnn.nix b/home/common/modules/nnn.nix deleted file mode 100644 index fd2046f..0000000 --- a/home/common/modules/nnn.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ pkgs, ... }: -{ - programs.nnn = { - enable = true; - package = pkgs.nnn.override { withNerdIcons = true; }; - }; -} diff --git a/home/common/modules/tmux.nix b/home/common/modules/tmux.nix index db7b5d5..9febca8 100644 --- a/home/common/modules/tmux.nix +++ b/home/common/modules/tmux.nix @@ -19,6 +19,9 @@ setw -g pane-base-index 1 set -g history-limit 10000 + # kill the current pane + bind -n C-x kill-pane + # vim set -g mode-keys vi bind -T copy-mode-vi v send -X begin-selection diff --git a/home/common/modules/yazi.nix b/home/common/modules/yazi.nix new file mode 100644 index 0000000..2dd84d5 --- /dev/null +++ b/home/common/modules/yazi.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + home.packages = [ pkgs.p7zip ]; + + programs.yazi = { + enable = true; + enableBashIntegration = true; + + settings.mgr = { + ratio = [ + 0 + 1 + 1 + ]; + linemode = "size"; + }; + }; +} |