1
0
forked from ports/contrib

tabbed: initial commit

This commit is contained in:
Maximilian Dietrich 2013-08-19 20:26:13 +02:00
parent 4b24a163cd
commit 2517e7a875
5 changed files with 77 additions and 0 deletions

6
tabbed/.footprint Normal file
View File

@ -0,0 +1,6 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/tabbed
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/tabbed.1.gz

2
tabbed/.md5sum Normal file
View File

@ -0,0 +1,2 @@
cea7b04d4f67d917c68673cd0e63ae32 config.h
cd9cfd696db745637486ec3b9bbe4b75 tabbed-0.5.tar.gz

19
tabbed/Pkgfile Normal file
View File

@ -0,0 +1,19 @@
# Description: Simple generic tabbed fronted to xembed aware applications
# URL: http://tools.suckless.org/tabbed/
# Maintainer: Maximilian Dietrich, dxm at openmailbox dot org
# Depends on: xorg-libx11
name=tabbed
version=0.5
release=1
source=(http://dl.suckless.org/tools/$name-$version.tar.gz config.h)
build () {
cd "$name-$version"
cp $SRC/config.h .
make
make DESTDIR=$PKG \
PREFIX=/usr \
MANPREFIX=/usr/man \
install
}

1
tabbed/README Normal file
View File

@ -0,0 +1 @@
Edit config.h and rebuild the package to configure tabbed.

49
tabbed/config.h Normal file
View File

@ -0,0 +1,49 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-*-medium-*-*-*-14-*-*-*-*-*-*-*";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#cccccc";
static const char selbgcolor[] = "#555555";
static const char selfgcolor[] = "#ffffff";
static const char before[] = "<";
static const char after[] = ">";
static const int tabwidth = 200;
static const Bool foreground = True;
/*
* Where to place a new tab when it is opened. When npisrelative is True,
* then the current position is changed + newposition. If npisrelative
* is False, then newposition is an absolute position.
*/
static int newposition = 0;
static Bool npisrelative = False;
#define MODKEY ControlMask
static Key keys[] = { \
/* modifier key function argument */
{ MODKEY|ShiftMask, XK_Return, focusonce, { 0 } },
{ MODKEY|ShiftMask, XK_Return, spawn, { 0 } },
{ MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } },
{ MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } },
{ MODKEY|ShiftMask, XK_j, movetab, { .i = -1 } },
{ MODKEY|ShiftMask, XK_k, movetab, { .i = +1 } },
{ MODKEY, XK_Tab, rotate, { .i = 0 } },
{ MODKEY, XK_1, move, { .i = 0 } },
{ MODKEY, XK_2, move, { .i = 1 } },
{ MODKEY, XK_3, move, { .i = 2 } },
{ MODKEY, XK_4, move, { .i = 3 } },
{ MODKEY, XK_5, move, { .i = 4 } },
{ MODKEY, XK_6, move, { .i = 5 } },
{ MODKEY, XK_7, move, { .i = 6 } },
{ MODKEY, XK_8, move, { .i = 7 } },
{ MODKEY, XK_9, move, { .i = 8 } },
{ MODKEY, XK_0, move, { .i = 9 } },
{ MODKEY, XK_q, killclient, { 0 } },
{ 0, XK_F11, fullscreen, { 0 } },
};