项目作者: otsaloma

项目描述 :
App launcher for Linux
高级语言: Python
项目地址: git://github.com/otsaloma/catapult.git
创建时间: 2021-02-06T19:56:14Z
项目社区:https://github.com/otsaloma/catapult

开源协议:GNU General Public License v3.0

下载


Catapult Launcher

Plugins
Themes

Catapult is an app launcher for Linux. It allows you to easily launch
apps, open files and do basic calculations with a keyboard-driven user
interface. Custom plugins and themes can be loaded dynamically.

Catapult is Free Software released under the GNU General Public License
(GPL), see the file COPYING for details. Small parts of the
code have been adapted from Ulauncher, likewise GPL. These are
indicated file-wise in the license headers of individual files.

Installing

Packages

Source

Catapult requires the following.

Dependency Version
Python ≥ 3.8
PyGObject
GLib
GTK ≥ 4.0
Pango
libqalculate

On Debian/Ubuntu you can install these with the following command.

  1. sudo apt install gettext \
  2. gir1.2-glib-2.0 \
  3. gir1.2-gtk-4.0 \
  4. gir1.2-pango-1.0 \
  5. libglib2.0-bin \
  6. python3 \
  7. python3-dev \
  8. python3-gi \
  9. qalc

Then, to install Catapult, run commands

  1. make PREFIX=/usr/local build
  2. sudo make PREFIX=/usr/local install

Documentation

Keybinding to Activate Catapult

Catapult cannot do a global activation keybinding for you, instead you
need to do it yourself in your desktop/distro settings. Catapult is a
single-instance app, so executing catapult will start a new instance
if not yet running or else activate the existing instance. So, that is
the command you can bind to your key of choice.

Window Position on Screen

Catapult cannot position its own window on your screen, which means that
it will be positioned wherever your window manager defaults to or
considers appropriate. You can configure your window manager to center
all new windows by default, which should center the Catapult window too
(at least horizontally, vertically the window height changes along with
the search results).

  • GNOME: gsettings set org.gnome.mutter center-new-windows true

Starting Automatically

If you did a keybinding as above running command catapult, you
shouldn’t need to pre-start Catapult in the background, it will simply
start the first time you need it. If, however, you find the initial
startup slow (maybe indexing a lot of files), you can use tools provided
by your desktop/distro to set Catapult to start automatically already
when you log in to your desktop. To start in the background, use command
catapult --hide.

Customizing the Theme

You can override parts of the theme by editing
~/.config/catapult/user.css, a file which is created the first time
you start Catapult. You can edit the file while Catapult is running and
use :reload-theme in Catapult to apply the changes.

For example, to use the GNOME default font (Cantarell) for everything,
you can use

  1. .catapult-input-entry {
  2. font-family: "Cantarell", sans-serif;
  3. }
  4. .catapult-search-result-title {
  5. font-family: "Cantarell", sans-serif;
  6. }
  7. .catapult-search-result-description {
  8. font-family: "Cantarell", sans-serif;
  9. }

Or, to use Ubuntu orange as the selection color, try

  1. @define-color selected-bg-color #e95420;

Developers