From bbc8f3283837b45fd0f41eb7e08bb0f00345f572 Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Tue, 23 May 2023 18:21:53 +0200 Subject: [PATCH] alt+enter in zathura opens ranger in cwd --- .config/zathura/zathurarc | 26 ++++---------------------- .local/bin/ranger_at_file | 2 ++ 2 files changed, 6 insertions(+), 22 deletions(-) create mode 100755 .local/bin/ranger_at_file diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index b3fb197..ef9c9e9 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -1,3 +1,4 @@ +set sandbox none set statusbar-h-padding 0 set statusbar-v-padding 0 set page-padding 1 @@ -11,25 +12,6 @@ map K zoom in map J zoom out map i recolor map p print - -set default-bg "#000000" -set default-fg "#ffffff" -set statusbar-bg "#000000" -set statusbar-fg ""#ffffff" -set inputbar-bg "#000000" -set inputbar-fg "#ffffff" -set notification-bg "#000000" -set notification-fg "#a6c0d0" -set notification-error-bg "#000000" -set notification-error-fg "#ffffff" -set notification-warning-bg "#000000" -set notification-warning-fg "#a6c0d0" -set highlight-color "#2C4E6A" -set highlight-active-color "#4C5A6C" -set completion-bg "#2C4E6A" -set completion-fg "#4C5A6C" -set completion-highlight-bg "#2C4E6A" -set completion-highlight-fg "#4C5A6C" -set recolor-lightcolor "#000000" -set recolor-darkcolor "#a6c0d0" -set adjust-open "width" +map g goto top +map exec zathura_backward_search.sh +map exec ranger_at_file $FILE diff --git a/.local/bin/ranger_at_file b/.local/bin/ranger_at_file new file mode 100755 index 0000000..52c8801 --- /dev/null +++ b/.local/bin/ranger_at_file @@ -0,0 +1,2 @@ +#!/bin/sh +$TERMINAL "$FILE" "${1%/*}"