GQView - LIRC patch

Deprecation warning

GQView has been unmaintained for a long time now, but a group of enthusiastic users took the latest release of this beautiful piece of software and gave birth to a new project: the Geeqie Image Viewer. Besides a lot of other interesting features, Geeqie has this LIRC patch already integrated in the source. So, probably you just need to go and grab Geeqie or search for it in your favourite distribution repositories.

What is this all about

GQView is a program to browse your image collections. LIRC is a library to control your PC with a remote. This patch adds LIRC support to GQView.

News

[2008-03-25] Peter sent me a new ebuild script for the development version and an update to the one for the stable version.
[2008-03-24] Peter, a Gentoo user, contributed a modified ebuild script to compile GQView with the LIRC patch the Gentoo way. You can find it in the download section.
[2006-12-03] Released patches for stable version 2.0.4 and development versions 2.1.4 and 2.1.5. I just bought a new PC and this one have no serial ports, so I ported the patch but I did not test it. I know lirc has a dummy driver but I had no time to install it yet. If someone could provide feedback it would be appreciated.
[2006-11-04] Released patches for stable version 2.0.3 and development version 2.1.3.
[2006-10-15] Released patches for stable version 2.0.2 and development version 2.1.2.
[2005-06-19] Released patch for development version 2.1.1.
[2005-05-17] Released patch for stable version 2.0.1.
[2005-03-12] Released patch for development version 2.1.0. Added README.lirc to installed files.
[2005-03-05] Released patch for stable version 2.0.0.
[2005-02-26] Added link to Svilen Ivanov's patch for GQView 1.2.2.
[2005-02-19] Released patch for development version 1.5.9.
[2005-02-12] Released patch for development version 1.5.8.
[2005-02-05] Released patch for development version 1.5.7.
[2005-01-08] Released patch for development version 1.5.6. Changed a word in credits.
[2005-01-01] Released patch for development version 1.5.5. Added a missing #ifdef, updated .lircrc excerpt in README.lirc . Oh, I almost forgot... and Happy New Year!
[2004-11-13] Released patch for development version 1.5.4. Moved part of LIRC code from layout.* to layout_image.* and added two new LIRC commands: INFO and EXIT. If these changes break something let me now. Small changes to web site layout.

The patch

Patch for stable branch

Download patch for GQView 2.0.4 : patch-gqview-2.0.4-lirc.gz
Contributed ebuild script for Gentoo users : gqview-2.0.4.ebuild
Signature : patch-gqview-2.0.4-lirc.gz.sig

Patch for development branch

Download patch for GQView 2.1.5 : patch-gqview-2.1.5-lirc.gz
Contributed ebuild script for Gentoo users : gqview-2.1.5.ebuild
Signature : patch-gqview-2.1.5-lirc.gz.sig

Patch for latest GTK 1 release

Svilen Ivanov has published a patch for latest GTK 1 stable version (1.2.2). You can find it on his site.

Older versions

You can find patches for older versions here.

Description

Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver, an (almost) arbitrary remote control and control your Linux box with it! More about it at www.lirc.org. Be sure to read LIRC documentation before going ahead.

Installation

Download the version of GQView matching the version of the patch from gqview.sourceforge.net. The file is called something like gqview-x.y.z.tar.gz . Uncompress the archive and from the directory containing gqview-x.y.z apply the patch with the command:

zcat gqview-lirc-x.y.z.tar.gz|patch -p0

Change to gqview-x.y.z directory and follow normal installation instructions. If you have installed the lirc-package, configure will autodetect it. If LIRC support is enabled and an error occurs GQView will tell you on startup.

Configuration

The application name for GQView is gqview. Here is the list of supported commands:

DOWN [int]Move "camera" down by the specified amount. Default=1
EXITExit GQview
FIRSTJump to first image
INFOShow image information (full screen only)
LASTJump to last image
LEFT [int]Move "camera" left by the specified amount. Default=1
NEXTGo to next image
PAUSEPause/unpause slideshow
PREVGo to previous image
RIGHT [int]Move "camera" right by the specified amount. Default=1
ROTATE_90 Rotate image 90 degrees clockwise.
ROTATE_90_CCRotate image 90 degrees counter-clockwise.
SET_INV_ZOOM [int]Zoom to 1/Nx. Deafult=1x
SET_ZOOM [int]Zoom to Nx. Default=1x
UP [int]Move "camera" up by the specified amount. Default=1
ZOOM_IN [int]Zoom in. Value specifies the amount of zoom.
ZOOM_MAXZoom to fit image
ZOOM_OUT [int]Zoom out. Value specifies the amount of zoom.

Don't forget to enable the repeat flag in .lircrc when it make sense (directional buttons, zoom in and out, ...).

Here's an excerpt from my .lircrc:

begin gqview
  begin
    prog = gqview
    button = vol_up
    config = ZOOM_IN
    repeat = 1
  end
  begin
    prog = gqview
    button = vol_down
    config = ZOOM_OUT
    repeat = 1
  end
  begin
    prog = gqview
    button = down
    config = DOWN 10
    repeat = 1
  end
  begin
    prog = gqview
    button = up
    config = UP 10
    repeat = 1
  end
  begin
    prog = gqview
    button = right
    config = RIGHT 10
    repeat = 1
  end
  begin
    prog = gqview
    button = left
    config = LEFT 10
    repeat = 1
  end
  begin
    prog = gqview
    button = 1
    config = ROTATE_90
    end
  begin
    prog = gqview
    button = 2
    config = ROTATE_90_CC
  end
  begin
    prog = gqview
    button = back
    config = PREV
  end
  begin
    prog = gqview
    button = forw
    config = NEXT
  end
  begin
    prog = gqview
    button = skip_back
    config = FIRST
  end
  begin
    prog = gqview
    button = skip_forw
    config = LAST
  end
  begin
    prog = gqview
    button = pause
    config = PAUSE
  end
  begin
    prog = gqview
    button = surround
    config = SET_ZOOM
  end
end gqview

At the moment GQview uses the standard location for the lirc-config file (~/.lircrc).