~kris/suckless

tabbed

ref: a327374a23abf7f75a8a149c4f333cc49d17b07e tabbed/tabbed.c -rw-r--r-- 28.8 KiB
6dc3978e — Caleb Malchik 9 years ago
Fix movetab and focusurgent when there's no client

Accessing those would crash with a floating point exception.
00c41432 — Christoph Lohmann 9 years ago
One killclient() is enough.
95b46cd3 — Justin Keogh 10 years ago
add -k to close tabbed foreground client on WMDelete

Hello, this is useful when you want to use the same key binding that closes windows to close tabs. I got tired of loosing my tabbed/surf session when I hit my WM's close key. "Last tab" behavior still respects -c/-f.

Cheers
-J

From 829e95855f0fe78a368788a5e72231bd6456a8cf Mon Sep 17 00:00:00 2001
From: jakeogh <github.com@v6y.net>
Date: Mon, 21 Mar 2016 01:36:28 +0000
Subject: [PATCH] add -k to close foreground tabbed client on WM_DELETE_WINDOW

Signed-off-by: Christoph Lohmann <20h@r-36.net>
3c79bcb4 — Lucas Gabriel Vuotto 10 years ago
Added xft support

Based on xft tabbed patch from the wiki.

Signed-off-by: Lucas Gabriel Vuotto <l.vuotto92@gmail.com>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
8920c1ba — Quentin Rameau 10 years ago
Add configuration option for title truncation string

Permit to use arbitrary string instead of "..." (ie "$") when truncating
client title.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
eb0ff621 — Quentin Rameau 10 years ago
Remove h flag, put usage() in the default case

Signed-off-by: Christoph Lohmann <20h@r-36.net>
10585524 — Quentin Rameau 10 years ago
Arrange diagnostic messages

Fix error messages to use argv0 instead of fixed “tabbed”.
Break usage message into multiple lines.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
735bed58 — Quentin Rameau 10 years ago
Style cleanup

Signed-off-by: Christoph Lohmann <20h@r-36.net>
df8261e8 — Christoph Lohmann 10 years ago
Bumping up the year.

Thanks for the bug report, FRIGN!
7f6085d4 — Christoph Lohmann 10 years ago
Bump year.
9d4b71ec — Jonas Rabenstein 11 years ago
autofocus urgent tabs

When tabbed becomes urgent because one of it tabs becomes urgent, it
may be desireable to automatically focus that tab. As a notification may
be lost, if another notification comes in before you focused tabbed, the
switch is only done, if tabbed is not urgent already.
Moreover, it may be anoying, if you just type into one tab, another tab
gets urgent -therfore focused- and you type into the other tab, you may
switch between autofocus and nofocus using Ctrl-Shift-u.
Maybe it would also be usefull, if there would be an commandline
parameter to toggle that option, but as -u is already used for
urgent-tab-color, i did not implement that.

Signed-off-by: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
5d0c5be1 — Jonas Rabenstein 11 years ago
focus urgent tabs

With a lot of open tabs its quite annoying to toggle through all tabs
until reaching the next one with an urgent hint set. Also with using
Ctrl-[0..9] to get to the first 10 tabs, in some cases this may have
disadvantages:
1. with more than 10 tabs, you can not use that quickselection
2. with a small tabbed window, you do not see every tab in the
   statusbar and therefore do not know which tab got urgent

Therefore I created a function, which iterates over all currently
managed tabs, focus the first urgent tab found or stays at the current
tab, if there is no urgent-tab. By default, that function is mapped to
Ctrl-u.

Signed-off-by: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
0728caee — Markus Teich 11 years ago
fix bug in unmanage: check if lastsel is initialized

Signed-off-by: Christoph Lohmann <20h@r-36.net>
74115f68 — Markus Teich 11 years ago
revise drawbar and related mechanisms.

This also fixes a bug, where the last tab was hidden and no "after" text was
displayed.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
829980f2 — Markus Teich 11 years ago
movetab(): Move selected tab instead of switching

Before this patch, movetab() just switched positions of the selected tab with
the new position. This resulted in unexpected behaviour when „moving“ a tab over
one end of the list.

Now tabs are moved correctly by the specified amount of indizes.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
5c560f37 — Okan Demirmen 12 years ago
tabbed: UnmapNotify patch

Hi,

Simple patch for tabbed that prevents tabbed from killing a client that it
should no longer be managing due to an UnmapNotify event.

Add support for UnmapNotify; allows a window to map and unmap without
needing it to be destroyed.

Thanks,
Okan

Signed-off-by: Christoph Lohmann <20h@r-36.net>
b4fed5a1 — Peter Hofmann 12 years ago
Clear urgency hint on sel == c

 - Run "tabbed xterm -into".
 - Open a new tab using Ctrl+Shift+Enter, switch to it using Ctrl+Tab.
 - Run "sleep 2; printf '\a'".
 - Quickly change back to the first tab (c = 0) and wait for the second
   one (c = 1) to get the urgency hint.
 - Close the first tab using Ctrl+Q or Ctrl+D. This sets sel = 0 and c =
   0, so focus() won't touch the urgency hint.
 - Now, the urgency hint on the second tab has not been cleared. Open a
   new tab to verify it.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
9d1d6d94 — noname 12 years ago
Replace emallocz with ecalloc.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
c778de59 — Markus Teich 12 years ago
add urgent color cmdline options

Signed-off-by: Christoph Lohmann <20h@r-36.net>
5dd3d19e — Markus Teich 12 years ago
support urgency wm hints

Signed-off-by: Christoph Lohmann <20h@r-36.net>
Next