Commit a5a5e1fa authored by Sebastian Ramacher's avatar Sebastian Ramacher

Imported Upstream version 0.0.7

Copyright (c) 2009 ML, JY -
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
# See LICENSE file for license and copyright information
# zathura - user interface
PROJECT = zathura
SOURCE = zathura.c
all: options ${PROJECT}
@echo ${PROJECT} build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LIBS = ${LIBS}"
@echo "DFLAGS = ${DFLAGS}"
@echo "CC = ${CC}"
%.o: %.c
@echo CC $<
@${CC} -c ${CFLAGS} -o $@ $< %.c
@echo CC $<
@${CC} -c ${CFLAGS} ${DFLAGS} -o $@ $<
${OBJECTS}: config.h
${DOBJECTS}: config.h
@cp config.def.h $@
@echo CC -o $@
@${CC} -s ${LDFLAGS} -o $@ ${OBJECTS} ${LIBS}
@rm -rf ${PROJECT} ${OBJECTS} ${PROJECT}-${VERSION}.tar.gz \
@echo CC -o ${PROJECT}-debug
@${CC} ${LDFLAGS} -o ${PROJECT}-debug ${DOBJECTS} ${LIBS}
debug: ${PROJECT}-debug
valgrind: debug
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes \
gdb: debug
cgdb ${PROJECT}-debug
dist: clean
@mkdir -p ${PROJECT}-${VERSION}
@cp -R LICENSE Makefile config.def.h README \
@tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION}
@gzip ${PROJECT}-${VERSION}.tar
@rm -rf ${PROJECT}-${VERSION}
install: all
@echo installing executeable file
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f ${PROJECT} ${DESTDIR}${PREFIX}/bin
@chmod 755 ${PROJECT} ${DESTDIR}${PREFIX}/bin/${PROJECT}
@echo installing manual page
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
@echo removing executeable file
@echo removing manual page
@rm -f ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
zathura - pdf viewer
zathura is a pdf viewer based on the poppler pdf rendering library
poppler-glib (0.12.3)
cairo (1.8.8)
gtk2 (2.18.6)
glib2 (2.22.4)
You can modify some parts of zathura by editing the config.h file
Customise config.h according to your wishes and run the following
command to build and install zathura:
make install
To delete zathura from your system, just type:
make uninstall
Use zathura
Just run:
zathura <file>
This diff is collapsed.
# See LICENSE file for license and copyright information
# zathura make config
VERSION = 0.0.7
# paths
PREFIX ?= /usr
MANPREFIX ?= ${PREFIX}/share/man
# libs
GTK_INC = $(shell pkg-config --cflags gtk+-2.0 poppler-glib)
GTK_LIB = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 poppler-glib)
INCS = -I. -I/usr/include ${GTK_INC}
LIBS = -lc ${GTK_LIB} -lpthread
# flags
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
# debug
# compiler
CC ?= gcc
zathura \- a PDF viewer
.B zathura
.RB [-e\ xid]
.RB [file]
.RB [password]
zathura is a highly customizable and functional PDF viewer based on the poppler
rendering library and the gtk+ toolkit. The idea behind zathura is an
application that provides a minimalistic and space saving interface as well as
an easy usage that mainly focuses on keyboard interaction.
.B -e xid
Reparents to window specified by xid.
.SS Shortcuts
.B J
Go to next page
.B K
Go to previous page
.B h
Scroll to the left
.B k
Scroll upwards
.B j
Scroll downwards
.B ^f
Scroll page down
.B ^b
Scroll page up
.B ^d
Scroll half a page down
.B ^u
Scroll half a page up
.B l
Scroll to the right
.B /
Search forwards
.B ?
Search backwards
.B n
Search last keyword forwards
.B N
Search last keyword backwards
.B Tab
Toggle index
.B o
Open a file
.B a
Zoom to fit
.B s
Zoom to width
.B f
Follow a link on the page
.B m
Mark current position and save it in register specified by a character
.B '
Go to saved position specified by the ensuing character
.B r
Rotate the page
.B R
Reload the document
.B O
Change goto mode (L: search labels, D: default, O: manual offset)
.B ^i
Invert the colors of the page
.B i
Change to insert mode
.B v
Change to visual mode
.B :
Focus inputbar
.B Backspace
Delete last character in the buffer
.B F5
Toggle fullscreen mode
.B ^n
Toggle statusbar visibility
.B ^m
Toggle inputbar visibility
.B Esc | ^c
.B ^q
Quit the program
.SS Index commands
.B k
Navigate to one element above the current position
.B j
Navigate to one element below the current position
.B h
Collapse current element
.B l
Expand current element
.B Space | Return
Select current element
.SS Buffered commands
.B gg
Go to the first page
Go to the last page
.B [0-9]+G
Go to the specified page
.B zI
Zoom in
.B zO
Zoom out
.B z0
Zoom to the original size
.B [0-9]+Z
Zoom to the given level
.B [0-9]+%
Move to the given position
.SS Commands
.B bmark
Bookmark current page
.B blist
List and open bookmark
.B close
Close current file
.B coffset
Set page offset
.B delbmark
Delete given bookmark
.B export
Export images or attached files
.B info
Show information about the document
.B map
Map shortcut functions (map <key> <function> <argument> <mode>)
.B open
Open a file
.B print
Print the document
.B rotate
Rotate the page
.B set
Set an option (set <id> <value>)
.B quit
Quit the program
.B write
Save the document
.SS Inputbar shortcuts
.B Up
Move up in the command history
.B Down
Move down in the command history
.B Tab | Shift + Tab
Tab completion
.B ^w
Delete last word
The complete configuration including the appearance and shortcuts of the program
are defined in a separate file named config.h. In this file you are able to
change and adjust all the settings of zathura according to your wishes.
In addition you can create a zathurarc file (default path: ~/.zathura/zathurarc)
to overwrite settings and keybindings by using the set and map function. For
more information please check the faq on the website:
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment