Apps
Library and CLI tool for querying and launching applications that have a corresponding .desktop
file.
Usage
You can browse the Apps reference.
CLI
sh
astal-apps --help
Library
js
import Apps from "gi://AstalApps"
const apps = new Apps.Apps({
nameMultiplier: 2,
entryMultiplier: 0,
executableMultiplier: 2,
})
for (const app of apps.fuzzy_query("spotify")) {
print(app.name)
}
py
from gi.repository import AstalApps as Apps
apps = Apps.Apps(
name_multiplier=2,
entry_multiplier=0,
executable_multiplier=2,
)
for app in apps.fuzzy_query("obsidian"):
print(app.get_name())
lua
local Apps = require("lgi").require("AstalApps")
local apps = Apps.Apps({
name_multiplier = 2,
entry_multiplier = 0,
executable_multiplier = 2,
})
for _, app in ipairs(apps:fuzzy_query("lutris")) do
print(app.name)
end
vala
var apps = new AstalApps.Apps() {
name_multiplier = 2,
entry_multiplier = 0,
executable_multiplier = 2,
};
foreach (var app in apps.fuzzy_query("firefox")) {
print(app.name);
}
Installation
- install dependencies
sh
sudo pacman -Syu meson vala json-glib gobject-introspection
sh
sudo dnf install meson vala valadoc json-glib-devel gobject-introspection-devel
sh
sudo apt install meson valac libjson-glib-dev gobject-introspection
- clone repo
sh
git clone https://github.com/aylur/astal.git
cd astal/lib/apps
- install
sh
meson setup --prefix /usr build
meson install -C build