Skip to content

Commit

Permalink
feat(ranger): updated configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Jun 23, 2024
1 parent c56b28a commit 5d98e52
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
37 changes: 24 additions & 13 deletions modules/desktop/submodules/ranger.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{ pkgs, lib, dotfiles, ... }:
{ pkgs, lib, ... }:
with lib;
with lib.my; {
config = {
home-manager.users.wittano = {
home = {
packages = with pkgs; [ ranger ];

# It's required cause ranger doesn't allow non-writeable config (27.12.2023)
activation.copyRangerConfig = hm.dag.entryAfter [ "writeBoundary" ] ''
${pkgs.coreutils}/bin/cp -r ${dotfiles.ranger.source} /home/wittano/.config
${pkgs.coreutils}/bin/chmod -R 755 /home/wittano/.config/ranger
'';
home-manager.users.wittano.programs = {
fish.shellAliases.ra = "ranger";
ranger = {
enable = true;
extraPackages = with pkgs; [ ueberzug ];
settings = {
"show_hidden" = true;
"draw_borders" = "both";
"draw_progress_bar_in_status_bar" = true;
"display_size_in_status_bar" = true;
"display_free_space_in_status_bar" = true;
"line_numbers" = "relative";
"size_in_bytes" = true;
"mouse_enabled" = false;
"preview_files" = true;
"preview_images" = true;
"preview_images_method" = "ueberzug";
"relative_current_zero" = false;
"save_console_history" = false;
"tilde_in_titlebar" = true;
"update_title" = true;
"update_tmux_title" = true;
};
};

programs.fish.shellAliases.ra = "ranger";
};
};
}
1 change: 1 addition & 0 deletions modules/desktop/wm/bspwm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ desktop.mkDesktopModule {
"bluetooth"
"dunst"
"rofi"
"ranger"
"polybar"
];
installAutostartFile = false;
Expand Down
1 change: 1 addition & 0 deletions modules/desktop/wm/qtile.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ desktop.mkDesktopModule {
"dunst"
"picom"
"tmux"
"ranger"
"kitty"
"rofi"
];
Expand Down
1 change: 1 addition & 0 deletions modules/desktop/wm/xmonad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ desktop.mkDesktopModule {
"tmux"
"bluetooth"
"kitty"
"ranger"
"rofi"
];
mutableSources = {
Expand Down

0 comments on commit 5d98e52

Please sign in to comment.