dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit bbe4e1ad88c1bc8ab70878adaf1a24e4a4bb5fb4
parent 165b071a87c63f8d5290d4f249ebbd8069c150f2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 18 Jul 2019 10:12:51 +0200

Change scholarref binding in zathura to C-r and fix scholarref notification

Diffstat:
M.config/zathura/zathurarc | 2+-
M.local/bin/scholarref | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc @@ -11,5 +11,5 @@ set completion-highlight-fg "#aaaaaa" map <C-o> feedkeys ":exec zathura '$FILE'<Return>" map <C-i> feedkeys ":exec getdoi --clip '$FILE'<Return>" -map <C-b> feedkeys ":exec scholarref --add '$FILE'<Return>" +map <C-r> feedkeys ":exec scholarref --add '$FILE'<Return>" map <C-y> feedkeys ":exec bash -c 'echo -n "$FILE" | xclip'<Return>" diff --git a/.local/bin/scholarref b/.local/bin/scholarref @@ -23,7 +23,7 @@ if [ "$addref" = 1 ]; then getdoi "$@" | getref -n >> "$BIB" key="$(grep '@.*{' "$BIB" | tail -n 1 | sed 's/.*{//;s/,$//')" echo "Citation $key added to $BIB" - notify-send "${0##/*}" "Citation $key added" + notify-send "${0##/*} Citation $key added" else getdoi "$@" | getref -n fi