Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving genzathurarc functionality into zathura script #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions genzathurarc

This file was deleted.

2 changes: 0 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ BINPATH=$HOME/.local/bin
mkdir -p "$BINPATH"

# make the scripts executable
chmod u+x ./genzathurarc
chmod u+x ./zathura

# link the scripts to the PATH
ln -s "$(pwd)/genzathurarc" "$BINPATH/genzathurarc"
ln -s "$(pwd)/zathura" "$BINPATH/zathura"

cat <<EOM
Expand Down
42 changes: 42 additions & 0 deletions zathura
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
#!/bin/sh
genzathurarc () {
#!/bin/sh

# Generates zathura configuration file

. $HOME/.cache/wal/colors.sh

cat <<CONF
set recolor "true"

set completion-bg "$background"
set completion-fg "$foreground"
set completion-group-bg "$background"
set completion-group-fg "$color2"
set completion-highlight-bg "$foreground"
set completion-highlight-fg "$background"

set recolor-lightcolor "$background"
set recolor-darkcolor "$foreground"
set default-bg "$background"

set inputbar-bg "$background"
set inputbar-fg "$foreground"
set notification-bg "$background"
set notification-fg "$foreground"
set notification-error-bg "$color1"
set notification-error-fg "$foreground"
set notification-warning-bg "$color1"
set notification-warning-fg "$foreground"
set statusbar-bg "$background"
set statusbar-fg "$foreground"
set index-bg "$background"
set index-fg "$foreground"
set index-active-bg "$foreground"
set index-active-fg "$background"
set render-loading-bg "$background"
set render-loading-fg "$foreground"

set window-title-home-tilde true
set statusbar-basename true
set selection-clipboard clipboard
CONF
}
# build a temporary config directory
zathura_tmp=$(mktemp -d)
# build the zathura directory
Expand Down