summaryrefslogtreecommitdiff
path: root/pcr-testing
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-09-29 18:13:48 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2018-09-30 04:27:49 -0400
commit4e8a56f5ba2fb21332825f6f00cc84725a9268b2 (patch)
treed5968f6f1c6c23812c849c826d24794e65fb2556 /pcr-testing
parent46a0a5207bbf98134d7069dcd383313ad4e3eb73 (diff)
downloadabslibre-4e8a56f5ba2fb21332825f6f00cc84725a9268b2.tar.gz
abslibre-4e8a56f5ba2fb21332825f6f00cc84725a9268b2.tar.bz2
abslibre-4e8a56f5ba2fb21332825f6f00cc84725a9268b2.zip
add 'yeahconsole'
Diffstat (limited to 'pcr-testing')
-rw-r--r--pcr-testing/yeahconsole/PKGBUILD47
-rw-r--r--pcr-testing/yeahconsole/restart_hidden.patch51
-rw-r--r--pcr-testing/yeahconsole/yeahconsole.desktop9
3 files changed, 107 insertions, 0 deletions
diff --git a/pcr-testing/yeahconsole/PKGBUILD b/pcr-testing/yeahconsole/PKGBUILD
new file mode 100644
index 000000000..4bdee86ed
--- /dev/null
+++ b/pcr-testing/yeahconsole/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: bill-auger <bill-auger@programmer.net>
+# Contributor: DonVla <donvla@users.sourceforge.net>
+
+
+pkgname=yeahconsole
+pkgver=0.3.4
+pkgrel=2
+pkgdesc="Simple, lightweight, game-like drop-down terminal, embedding xterm or urxvt"
+arch=(i686 x86_64 armv7h)
+url=http://phrat.de/yeahtools.html
+license=('GPL')
+groups=('yeahtools')
+depends=('libx11' 'xterm')
+optdepends=('rxvt-unicode')
+_release=${pkgname}-${pkgver}
+source=(http://phrat.de/${_release}.tar.gz
+ restart_hidden.patch)
+sha256sums=('fcf3481f78a263a70f1cb5163630fc22e78bb0915013eb05689c6f4aeb0583ef'
+ 'd5dfe9143f7e81ad7ca4f9e7ca58d589193c6ece51c3d7ec39da64511497f855')
+
+
+prepare()
+{
+ cd "${srcdir}/${_release}"
+
+ # patch per: http://github.com/rduplain/yeahconsole/commit/22488002357cda40ddcc67df695f64f5b06a44a6 :
+ # yeahconsole restarts on exit when yeahconsole*restart:1 in .Xdefaults
+ # yeahconsole restarts hidden/rolled-up when yeahconsole*restartHidden:1 in .Xdefaults
+ # attention is given to avoid focus stealing on restartHidden
+ patch < "${srcdir}/restart_hidden.patch"
+}
+
+build()
+{
+ cd "${srcdir}/${_release}"
+
+ make || return 1
+}
+
+package()
+{
+ cd "${srcdir}/${_release}"
+
+ install -D -m 0755 "${srcdir}/${_release}/yeahconsole" "${pkgdir}/usr/bin/yeahconsole"
+ install -D -m 0644 "${srcdir}/${_release}README" "${pkgdir}/usr/share/yeahtools/yeahconsole.README"
+ install -D -m 0644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
diff --git a/pcr-testing/yeahconsole/restart_hidden.patch b/pcr-testing/yeahconsole/restart_hidden.patch
new file mode 100644
index 000000000..982ae52a2
--- /dev/null
+++ b/pcr-testing/yeahconsole/restart_hidden.patch
@@ -0,0 +1,51 @@
+--- yeahconsole.c.orig 2006-03-11 19:26:00.000000000 +0100
++++ yeahconsole.c 2009-09-19 11:43:07.000000000 +0200
+@@ -48,7 +48,7 @@
+ int revert_to;
+ int screen;
+ int opt_x, opt_width, opt_height, opt_delay, opt_bw, opt_step,
+- height, opt_restart;
++ height, opt_restart, opt_restart_hidden;
+ char *opt_color;
+ char *opt_term;
+ KeySym opt_key;
+@@ -72,7 +72,8 @@
+ XEvent event;
+ int hidden = 1;
+ int fullscreen = 0;
+- int i, old_height;
++ int i;
++ int old_height = 0;
+ Window last_focused, current_focused;
+
+ /* strip the path from argv[0] if there is one */
+@@ -190,10 +191,18 @@
+ case UnmapNotify:
+ if (event.xunmap.window == termwin) {
+ if (opt_restart) {
++ if (opt_restart_hidden) {
++ roll(UP);
++ hidden = 1;
++ }
+ init_xterm(0);
+ XSync(dpy, False);
+- XSetInputFocus(dpy, termwin, RevertToPointerRoot,
+- CurrentTime);
++ if (opt_restart_hidden && last_focused)
++ XSetInputFocus(dpy, last_focused,
++ RevertToPointerRoot, CurrentTime);
++ else
++ XSetInputFocus(dpy, termwin, RevertToPointerRoot,
++ CurrentTime);
+ } else {
+ if (last_focused)
+ XSetInputFocus(dpy, last_focused,
+@@ -264,6 +273,8 @@
+ opt_step = opt ? atoi(opt) : 1;
+ opt = XGetDefault(dpy, progname, "restart");
+ opt_restart = opt ? atoi(opt) : 0;
++ opt = XGetDefault(dpy, progname, "restartHidden");
++ opt_restart_hidden = opt ? atoi(opt) : 0;
+ opt = XGetDefault(dpy, progname, "term");
+ opt_term = opt ? opt : "xterm";
+ opt = XGetDefault(dpy, progname, "toggleKey");
diff --git a/pcr-testing/yeahconsole/yeahconsole.desktop b/pcr-testing/yeahconsole/yeahconsole.desktop
new file mode 100644
index 000000000..3e9d9726d
--- /dev/null
+++ b/pcr-testing/yeahconsole/yeahconsole.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=yeahconsole
+GenericName=Terminal Emulator
+Comment=Simple, lightweight, game-like drop-down terminal, embedding xterm or urxvt
+Categories=System;TerminalEmulator;
+Icon=utilities-terminal
+Type=Application
+Exec=yeahconsole
+Terminal=false