You are not logged in.
Can I somehow get rid of this flickering every time I change the page?
Zathura is really nice.
edit: nvm, it's because the page needs some time to load, and the defaultbg_color is 'black' so it looks like it's flickering. Cheers!
Last edited by archman-cro (2011-02-25 16:18:09)
Offline
Is it possible to place a statusbar on top of the screen or is it hardcoded?
Would be awesome to have an image viewer like that, with the same look.
Last edited by archman-cro (2011-02-28 13:03:33)
Offline
Nicely done.
Offline
I'm going to bump my question, asked two weeks ago HERE. Could anyone share where the custom printing commands are listed? My previous post contains a link to another post where instructions are given for a complex printing task (printing odd pages only or something). In my searching, I can't find any reference to the acceptable options to pass with the :print command.
Are they the same as pdftk options? Something else I just don't know? Thanks for any suggestions. If the options are from some other library, perhaps the man page could say something like, "For print options, see x."
Thanks
Offline
Hello,
Are they the same as pdftk options? Something else I just don't know? Thanks for any suggestions. If the options are from some other library, perhaps the man page could say something like, "For print options, see x."
zathura uses the lp command for printing the files. You should find the information needed with "man lp". I know that zathura as well as jumanji lacks a bit of documentation which I want to change with the new release in the future.
Best regards
pwmt.org : programs with movie titles
Offline
@neldoreth: perfect. I wondered if there was some other command being used, but couldn't find it in the zathura man pages. Thanks for the response -- great work on all your programs!
Offline
Hi neldoreth
I have two small patches, they worke for me, but I am not an expert
The first is useful, for scripting. You can get open pdfs with something like xprop | grep _URI. The second is just for people with small screens.
I don't know where to put the atom_uri variable. You may have to clean this.
Maybe it would be cool to have an option for a tiny status bar, but I'm fine with patching.
regards
atom uri:
--- src/zathura/zathura.c 2011-02-28 23:30:15.566667385 +0100
+++ src/zathuraatomuri/zathura.c 2011-03-04 22:47:19.550000406 +0100
@@ -16,6 +16,8 @@
#include <glib/gstdio.h>
#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
+#include <X11/Xatom.h>
#include <gdk/gdkkeysyms.h>
/* macros */
@@ -49,6 +51,8 @@
#define INDEX (1 << 2)
#define NORMAL (1 << 3)
+static Atom atom_uri = NULL;
+
/* typedefs */
struct CElement
{
@@ -696,6 +700,9 @@
Zathura.StdinSupport.file = NULL;
+ atom_uri = XInternAtom(GDK_DISPLAY(),"_URI",False);
+
+
/* window */
if(Zathura.UI.embed)
Zathura.UI.window = gtk_plug_new(Zathura.UI.embed);
@@ -1420,6 +1427,7 @@
/* set window title */
gtk_window_set_title(GTK_WINDOW(Zathura.UI.window), basename(file));
+
/* show document */
set_page(start_page);
update_status();
@@ -1491,6 +1499,9 @@
g_free(Zathura.StdinSupport.file);
Zathura.StdinSupport.file = file;
+ XSync(GDK_DISPLAY(), False);
+ XChangeProperty(GDK_DISPLAY(), GDK_WINDOW_XID(Zathura.UI.window->window), atom_uri, XA_STRING, 8, PropModeReplace, (unsigned char *)file,strlen(file) + 1);
+
return open_file(Zathura.StdinSupport.file, password);
}
tiny status bar:
--- zathura/zathura.c 2011-02-09 18:26:34.996666668 +0100
+++ zathuracust/zathura.c 2011-02-10 18:30:56.750002083 +0100
@@ -676,7 +676,7 @@
Zathura.Global.recolor = 0;
Zathura.Global.goto_mode = GOTO_MODE;
Zathura.Global.show_index = FALSE;
- Zathura.Global.show_inputbar = TRUE;
+ Zathura.Global.show_inputbar = FALSE;
Zathura.Global.show_statusbar = TRUE;
Zathura.State.pages = g_strdup("");
@@ -756,9 +756,9 @@
gtk_misc_set_alignment(GTK_MISC(Zathura.Global.status_state), 1.0, 0.0);
gtk_misc_set_alignment(GTK_MISC(Zathura.Global.status_buffer), 1.0, 0.0);
- gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_text), 2.0, 4.0);
- gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_state), 2.0, 4.0);
- gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_buffer), 2.0, 4.0);
+ gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_text), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_state), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_buffer), 0.0, 0.0);
gtk_label_set_use_markup(Zathura.Global.status_text, TRUE);
gtk_label_set_use_markup(Zathura.Global.status_state, TRUE);
@@ -771,7 +771,7 @@
gtk_container_add(GTK_CONTAINER(Zathura.UI.statusbar), GTK_WIDGET(Zathura.UI.statusbar_entries));
/* inputbar */
- gtk_entry_set_inner_border(Zathura.UI.inputbar, NULL);
+ gtk_entry_set_inner_border(Zathura.UI.inputbar, gtk_border_new());
gtk_entry_set_has_frame( Zathura.UI.inputbar, FALSE);
gtk_editable_set_editable( GTK_EDITABLE(Zathura.UI.inputbar), TRUE);
@@ -1990,7 +1990,10 @@
}
if(!Zathura.Global.show_inputbar)
+ {
gtk_widget_hide(GTK_WIDGET(Zathura.UI.inputbar));
+ gtk_widget_show(GTK_WIDGET(Zathura.UI.statusbar));
+ }
/* Set back to normal mode */
change_mode(NORMAL);
@@ -2077,6 +2080,7 @@
{
if(!(GTK_WIDGET_VISIBLE(GTK_WIDGET(Zathura.UI.inputbar))))
gtk_widget_show(GTK_WIDGET(Zathura.UI.inputbar));
+ gtk_widget_hide(GTK_WIDGET(Zathura.UI.statusbar));
if(argument->data)
{
Last edited by wirr (2011-03-05 12:52:24)
Offline
Would it be hard to implement showing two A4 (LTR, whatever) pages side-by-side? Switching to one page mode if A3 (or double-width LTR) would be a bonus. Basically, the idea is to fill 16:10 screen.
While the concept behind zathura is nice, it is quite useless right now for reading datasheets, manuals, books, and >50% of other documents.
Last edited by 1uid65534 (2011-03-08 08:18:46)
Offline
Hello,
The website has been updated: http://pwmt.org
I have two small patches
Thank you, I will check them out.
Would it be hard to implement showing two A4 (LTR, whatever) pages side-by-side? Switching to one page mode if A3 (or double-width LTR) would be a bonus. Basically, the idea is to fill 16:10 screen.
While the concept behind zathura is nice, it is quite useless right now for reading datasheets, manuals, books, and >50% of other documents.
Can you please fill in a feature request.
Best regards
Last edited by neldoreth (2011-03-10 21:16:15)
pwmt.org : programs with movie titles
Offline
Hello,
The website has been updated: http://pwmt.org
The new website looks very nice.
Can you please fill in a feature request.
I have just filled a feature request for that. For me it is the only feature which I miss in zathura.
Everything else is just perfect. Especially, the speed and and robustness.
Thanks for such a great app.
Regards,
Ignas
Offline
Hello,
this is a really nice application. Great work!
The only thing which annoyed me a little bit is this: When opening an encrypted pdf I have to put the cursor into the password input line. It would be very handy if it would be there automatically and I could immediatly start typing in the password. It's just a minor issue but maybe easy to implement!?
Anyways, keep it up!
Regards
Offline
I just added a feature request for a :help command in the program itself. I have to open 'man zathura' in a terminal to look for particular commands. A 1/4 screen (or more) popup with the commands might be nice. Or whatever -- I'm sure there are several ways to implement it -- perhaps a full shift to the man page from within zathura just like the flash to file properties screen. Then press Esc. when done to return to the document?
Just some ideas.
Offline
Closed. Follow discussion here :
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline