diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7d8b595 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +neo-layout-viewer (1.0.0-SNAPSHOT-1) unstable; urgency=medium + + * Initial debian package + + -- Marco Herrn Tue, 18 Dec 2018 16:48:01 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..54e2126 --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: neo-layout-viewer +Section: x11 +Priority: optional +Maintainer: Marco Herrn +Build-Depends: debhelper (>= 11), + valac, + libgee-0.8-dev, + libgtk-3-dev, + libx11-dev, + libunique-3.0-dev, + libappindicator3-dev +Standards-Version: 4.2.1 +Homepage: https://github.com/YggdrasiI/NeoLayoutViewer +Vcs-Browser: https://github.com/YggdrasiI/NeoLayoutViewer +Vcs-Git: https://github.com/YggdrasiI/NeoLayoutViewer.git + +Package: neo-layout-viewer +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Keyboard layout viewer for Neo 2 + NeoLayoutViewer provides an easy way to display the NEO 2 keyboard layout + on screen. + . + The application window is an image of one of the six levels of the Neo 2 + keyboard layout. If one of the Mod-keys (Shift, …) is pressed or released + the display switches to the corresponding level. + . + The application window can be hidden and moved via keyboard shortcuts. All + settings can be modified via config file. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..725424c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: neo-layout-viewer +Source: https://github.com/YggdrasiI/NeoLayoutViewer + +Files: * +Copyright: 2011-2018 Olaf Schulz + 2013 rixx +License: LGPL-3.0+ + +Files: debian/* +Copyright: 2018 Marco Herrn +License: LGPL-3.0+ + +License: LGPL-3.0+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-3". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..0b6e0f3 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +AUTHORS +README.md diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..bb0e314 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/neo_layout_viewer.1 diff --git a/debian/neo_layout_viewer.1 b/debian/neo_layout_viewer.1 new file mode 100644 index 0000000..1c365d8 --- /dev/null +++ b/debian/neo_layout_viewer.1 @@ -0,0 +1,98 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" (C) Copyright 2018 Marco Herrn , +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH Neo-layout-viewer 1 "December 19 2018" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +neo-layout-viewer \- keyboard layout viewer for Neo 2 +.SH SYNOPSIS +.B neo-layout-viewer +.SH DESCRIPTION +This manual page documents briefly the +.B neo-layout-viewer +commands. +.B NeoLayoutViewer +provides an easy way to display the +.B NEO 2 +keyboard layout on screen. +.PP +The application window is an image of one of the six levels of the +.B Neo 2 +keyboard layout. If one of the Mod-keys (Shift, …) is pressed or released +the display switches to the corresponding level. +.PP +The application window can be hidden and moved via keyboard shortcuts. All +settings can be modified via config file. +.PP +.SH OPTIONS +.B neo-layout-viewer +doesn't support any command line options. +.SH KEYBINDINGS +NeoLayoutViewer supports two keyboard shortcuts: +.TP +.B q +Hide/Show the application window +.TP +.B n +Move the application window around. This cycles the position of the +application window between 8 different positions (each screen corner +and centered on the screen edges.). +The used positions can be reduced, see below. +.PP +Both shortcuts can be adapted by modifying the +.B config file +(see below). +.SH CONFIGURATION +The single configuration file is located in +~/.config/neo_layout_viewer.conf. This file is created on the first start +of the application. +.PP +The config entries in the generated file are commented to identify the +meaning of those options. The most important ones are: +.TP +.B width +The exact width of the application window. To avoid unexpected behavior on +on other resolutions, the width argument is ignored if it exceeds the range + [screen_width * min_width, screen_width * min_width] +.TP +.B max_width, min_width +This relative values limits the application window size. +As example, max_with = 0.5 restricts the size on 50% of the screen width. +The height can't be restricted directly. +.TP +.B display_function_keys +Whether to display the function key row +.TP +.B display_numpad +Whether to display the numpad block +.TP +.B show_shortcut +The keyboard shortcut to hide/display the application window +.TP +.B move_shortcut +The keyboard shortcut to move the window around. To remove the shortcut +just leave it empty. +.SH SEE ALSO +.TP +.I http://neo-layout.org/ +The official homepage of the Neo 2 keyboard layout at +.\" .BR bar (1), +.\" .BR baz (1). +.\" .br +.\" The programs are documented fully by +.\" .IR "The Rise and Fall of a Fooish Bar" , +.\" available via the Info system. diff --git a/debian/patches/install.diff b/debian/patches/install.diff new file mode 100644 index 0000000..8fae7aa --- /dev/null +++ b/debian/patches/install.diff @@ -0,0 +1,12 @@ +Debianize Makefile +--- a/Makefile ++++ b/Makefile +@@ -14,7 +14,7 @@ + BINDIR = bin + + # Path prefix for 'make install' +-PREFIX = /usr/local ++PREFIX = $(DESTDIR)/usr + APPNAME = NeoLayoutViewer + + GIT_COMMIT_VERSION=$(shell git log --oneline --max-count=1 | head --bytes=7) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..f61ada8 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +install.diff diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e1c367c --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)