After some experiments, it turns out, that notifications for X
properties for the embedded window (i.e. tab) are not very often, but
they usually send with "packs", so for example, there could be several
different atoms send in short period of time, i.e.:
_XEMBED_INFO
WM_NORMAL_HINTS
WM_NORMAL_HINTS
WM_NAME
_NET_WM_NAME
WM_ICON_NAME
_NET_WM_ICON_NAME
Some of the atoms represents title change, size of window, size of the
font and so on. Allow those changes to be applied.
Sometimes, it happens that closing terminal with mouse/keyboard
confirmation dialog appears (no matter if it was graphical or the one
build on top of urxvt overlay).
The culprit was with lines origin from `ps` command, which wasn't
correctly split, but, what is more important, wasn't properly trimmed.
This commit fixing the issue by removing whitespace from both ends of
the string and splitting using space character rather, than regexp, and
second, be sure to chop off all the whitespace characters before
splitting line and after splitting process name and its arguments.
In my derivation I arbitrary choose ctrl+shift+n as a shortcut for
creating new shell tab. There was a bug, when user created some other
class (for example for midnight commander and root) and with such
configuration it will unable to create default shell tabs.
This change introduces standard shortcut from original tabbed extension
(shift+down) as a default one for creating shell tabs. All the shell
classes can be configured and used as before.
Shift+down shortcut can be disabled, and now, "new style" - ctrl+shift+n
shortcut would be used for that purpose, unless user provide its own
class definition for that shortcut, than user responsibility is to make
appropriate shortcut for default shell.
Added modeline with proper vim settings for urxvt perl lib. For some
reason, author of the urxvt choose 3 space indent for extension perl
files. I'd like to keep those for an ease of merging upstream changes.
There was is bug regarding sessions implementation, where there is no
way to run particular program using -e switch for urxvt in command line.
So, having urxvt.session set to something in .Xdefaults, there was no
way to run some program, i.e.
$ urxvt -e htop
This patch fixing this issue.
To quickly switch to the desired tab, there is a shortcut ctrl-0 to
ctrl-9, where ctrl-0 will switch to tab 10, ctrl-1 to tab 1 and so on.
There is a range in the code, which detect which tab to pick up to jump.
Range was to wide, this commit is fixing that.
Currently, there was a command used:
ps x|grep " urxvt "|grep -v grep|wc -l
which was checking if there is only one instance of urxvt during start,
so that it will be possible to initialize session. The `grep -v grep`
is in excess. This patch is fixing that.