shellex
is supposed to be a dmenu-style launcher with a lot more features and
a lot simpler design. It launches a shell (currently zsh
) and shows it in a
small terminal, wrapping every command with a little bit of extra magic
(redirecting stdout, stderr, disowning and closing the shell) to get more
typical launcher-behaviour.
This gives you a simple launcher with tab-completion and other shell-features, configurable in shell.
See this video for a short demonstration and comparison to another app starter:
I tried to do this a few years back, then using C and implementing the
terminal-operations myself. This turned out to be a very bad idea, it made the
design overly complex and the state I left it in had regular segfaults and was far
from working. After not much seem to happen in that direction, I decided to
start again, this time using urxvt
to do the terminal-part, which turned out to
be really easy.
While this had the label “early prototype”, it has worked in daily use quite reasonably. A few possible improvements were never apparently important enough to invest serious amounts of time and work into them. Still, contributions are welcome.
shellex
has three parts:
urxvt
with some extra
parametersWorking:
Planned, but not implemented:
There are packages in
If you are on one of these distributions, we encourage you to install shellex
via your package manager.
Else, or if you want to help developing, just do
$ git clone git://github.com/Merovius/shellex.git
$ cd shellex
$ make
$ make install
for installing in $(HOME)/.local
$ git clone git://github.com/Merovius/shellex.git
$ cd shellex
$ PREFIX=$HOME/.local make
$ PREFIX=$HOME/.local make install
After installing shellex
you probably want to bind it to a shortcut - most
likely Alt+F2. How to do this depends on your desktop environment and/or window
manager.
If you're running xbindkeys,
the entry for your ~/.xbindkeysrc
file might look like:
"shellex"
alt + c:68
i3 shortcuts can be modified as described in the official documentation.
bindsym Mod1+F2 exec shellex
shellex
is a very young project, it would highly profit from your help. The
following is a not comprehensive list of highly appreciated ways to contribute:
shellex
in self-contained, side-effect free config-snippets and
add them - if you consider them useful to more then just yourself - in a
pull-request to the conf-dir.Users are invited to publish their customizations. Either as a contribution (see above) if these are changes that are a sensible default for all users, or in their own small packages which contain only the customizations. Especially, when the customization will be useful for many, but not all users.
Existing customization projects are:
Configuration of shellex
has two parts: The first one are X-resources.
Additionally to the urxvt-class, instances run by shellex will also look for
the shellex-class. This makes it possible to customize the appearance of
shellex without interfering with your usual terminals.
There are also two additional resources defined by shellex:
Resource | Values | Default | Description |
---|---|---|---|
shellex.pos | pointer|focus | focus | If pointer, shellex shows the window on the window, the mousepointer is on, else it uses the output, where most of the currently focused window is (falling back to the pointer-method, if the root-window is focused). |
shellex.edge | bottom|top | top | On what screenedge to show shellex |
On start, shellex
assembles a list of snippet basenames by looking at all of
the paths listed below. For each snippet basename, shellex
loads the first
file it finds when looking through the paths in order:
$XDG_CONFIG_HOME/.shellex
. Typically unset, defaulting to $HOME/.config/shellex
.$HOME/.shellex
/etc/shellex
(shellex defaults, symlinks to /usr/shellex/conf/
)To customize shellex, you can do the following things in
$XDG_CONFIG_HOME/.shellex
or $HOME/.shellex/
:
/dev/null
of the same same/usr/shellex/snippet
To avoid naming-conflicts in the future, you should add a common suffix to all your own snippets. Snippets are run in ascending order. By choosing a number which sorts between/after the existing snippet(s) you can ensure it runs at the desired time. E.g. if your snippet beeps on errors, name it 15-errorbeep so that it sorts before 20-nobeep.
All command-line parameters given to shellex
are passed directly to urxvt
,
so if you want to change colors or font, you can do it through the appropriate
urxvt
-parameters (or by using resources, for persistent configuration). For
example, to get a dark grey background with a slightly yellow font you might
start shellex with
$ shellex -bg grey15 -fg linen