diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf new file mode 100644 index 0000000..4574f89 --- /dev/null +++ b/.config/ranger/rc.conf @@ -0,0 +1,26 @@ +set preview_images false +set preview_images_method w3m +set w3m_delay 0.5 + +set preview_script ~/.config/ranger/scope.sh +set use_preview_script true + +set open_all_images false + +set draw_borders true +set column_ratios 1,1 + +set automatically_count_files false +set vcs_aware false +set draw_progress_bar_in_status_bar true +set update_title false +set flushinput true + +set autoupdate_cumulative_size false +set show_cursor false +set show_selection_in_titlebar false +set idle_delay 500 +set show_cursor false +set sort_directories_first true +set confirm_on_delete never +set mouse_enabled false diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf new file mode 100644 index 0000000..709e98a --- /dev/null +++ b/.config/ranger/rifle.conf @@ -0,0 +1,193 @@ +# vim: ft=cfg +# +# This is the configuration file of "rifle", ranger's file executor/opener. +# Each line consists of conditions and a command. For each line the conditions +# are checked and if they are met, the respective command is run. +# +# Syntax: +# , , ... = command +# +# The command can contain these environment variables: +# $1-$9 | The n-th selected file +# $@ | All selected files +# +# If you use the special command "ask", rifle will ask you what program to run. +# +# Prefixing a condition with "!" will negate its result. +# These conditions are currently supported: +# match | The regexp matches $1 +# ext | The regexp matches the extension of $1 +# mime | The regexp matches the mime type of $1 +# name | The regexp matches the basename of $1 +# path | The regexp matches the absolute path of $1 +# has | The program is installed (i.e. located in $PATH) +# env | The environment variable "variable" is non-empty +# file | $1 is a file +# directory | $1 is a directory +# number | change the number of this command to n +# terminal | stdin, stderr and stdout are connected to a terminal +# X | $DISPLAY is not empty (i.e. Xorg runs) +# +# There are also pseudo-conditions which have a "side effect": +# flag | Change how the program is run. See below. +# label