summaryrefslogtreecommitdiffstats
path: root/.config/ranger
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-08 16:50:33 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-08 16:50:33 -0400
commitf93cd463a17ce73adeb1f56a57f211690a6c13b1 (patch)
tree2c84b7197ccc2f6c7862653993c276c660946256 /.config/ranger
parentf68f3119c1da3c6229c0c26e41b60f20ce7bc84a (diff)
parentbcbfd066cf90cd5aa83225d468680473b8f66ad6 (diff)
downloadeibhear-f93cd463a17ce73adeb1f56a57f211690a6c13b1.tar.gz
eibhear-f93cd463a17ce73adeb1f56a57f211690a6c13b1.tar.zst
eibhear-f93cd463a17ce73adeb1f56a57f211690a6c13b1.zip
Merge branch 'xdgify' of https://github.com/dennisleexyz/dotfiles into dennisleexyz-xdgify
Diffstat (limited to '.config/ranger')
-rwxr-xr-x.config/ranger/commands.py2
-rw-r--r--.config/ranger/luke_ranger_readme.md6
-rw-r--r--.config/ranger/rc.conf4
3 files changed, 6 insertions, 6 deletions
diff --git a/.config/ranger/commands.py b/.config/ranger/commands.py
index 71fd2a2..5b1acd2 100755
--- a/.config/ranger/commands.py
+++ b/.config/ranger/commands.py
@@ -60,7 +60,7 @@ class my_edit(Command):
# https://github.com/ranger/ranger/wiki/Integrating-File-Search-with-fzf
-# Now, simply bind this function to a key, by adding this to your ~/.config/ranger/rc.conf: map <C-f> fzf_select
+# Now, simply bind this function to a key, by adding this to your $XDG_CONFIG_HOME/ranger/rc.conf: map <C-f> fzf_select
class fzf_select(Command):
"""
:fzf_select
diff --git a/.config/ranger/luke_ranger_readme.md b/.config/ranger/luke_ranger_readme.md
index 51c5dd1..f6ee93f 100644
--- a/.config/ranger/luke_ranger_readme.md
+++ b/.config/ranger/luke_ranger_readme.md
@@ -32,10 +32,10 @@ These "verbs" take "nouns" or "arguments," like these:
+ d -- "~/Documents"
+ D -- "~/Downloads"
-+ cf -- "~/.config"
++ cf -- "$XDG_CONFIG_HOME"
+ And many others, including those you add to `~/.bmdirs`.
-Press any "verb" followed by any "argument" to perform a folder operation. "gd" will cd to ~/Documents, for example. "mD" will move the selected file(s) to ~/Downloads. "tcf" will create a new tab in ~/.config, etc. etc.
+Press any "verb" followed by any "argument" to perform a folder operation. "gd" will cd to ~/Documents, for example. "mD" will move the selected file(s) to ~/Downloads. "tcf" will create a new tab in $XDG_CONFIG_HOME, etc. etc.
## Many little additions!
@@ -60,7 +60,7 @@ Press any "verb" followed by any "argument" to perform a folder operation. "gd"
+ Txs -- copy slideshow/beamer template to new file
+ Txh -- copy handout template to new file
+ Image commands:
- + bg -- (for i3 users) makes an image your background (assuming i3 is looking at ~/.config/wall.png for your background)
+ + bg -- (for i3 users) makes an image your background (assuming i3 is looking at $XDG_CONFIG_HOME/wall.png for your background)
+ bw -- runs Pywal on the selected image, making it your background and generating a color scheme based off of it.
+ C -- rotates an image (requires imagemagick)
+ F -- flips an image (requires imagemagick)
diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf
index 89b4b8c..ff0d506 100644
--- a/.config/ranger/rc.conf
+++ b/.config/ranger/rc.conf
@@ -5,7 +5,7 @@ set column_ratios 1,3,4
set hidden_filter ^\.|\.(?:pyc|vrb|pyo|lof|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)$|^lost\+found$|^__(py)?cache__$
set show_hidden false
set confirm_on_delete multiple
-set preview_script ~/.config/ranger/scope.sh
+set preview_script $XDG_CONFIG_HOME/ranger/scope.sh
set use_preview_script true
set automatically_count_files true
set open_all_images true
@@ -505,4 +505,4 @@ map Tn eval fm.open_console('shell eyeD3 -n "" ' + fm.thisfile.relative_path, po
#Downloading
map ytv console shell youtube-dl -ic%space
map yta console shell youtube-dl -xic%space
-source ~/.config/ranger/shortcuts.conf
+source $XDG_CONFIG_HOME/ranger/shortcuts.conf