百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

cli

> 编程语言
开源

Caelestia dotfiles 的主要控制脚本

47.4K stars0 点赞4 次浏览
访问官网GitHub

工具介绍

Caelestia dotfiles 的主要控制脚本

caelestia-cli

The main control script for the Caelestia dotfiles.

External dependencies

  • libnotify - sending notifications
  • swappy - screenshot editor
  • grim - taking screenshots
  • dart-sass - discord theming
  • wl-clipboard - copying to clipboard
  • slurp - selecting an area
  • gpu-screen-recorder - screen recording
  • glib2 - closing notifications
  • cliphist - clipboard history
  • fuzzel - clipboard history/emoji picker

Installation

Arch linux

The CLI is available from the AUR as caelestia-cli. You can install it with an AUR helper like yay or manually downloading the PKGBUILD and running makepkg -si.

A package following the latest commit also exists as caelestia-cli-git. This is bleeding edge and likely to be unstable/have bugs. Regular users are recommended to use the stable package (caelestia-cli).

Nix

You can run the CLI directly via nix run:

bash
nix run github:caelestia-dots/cli

Or add it to your system configuration:

nix
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    caelestia-cli = {
      url = "github:caelestia-dots/cli";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
}

The package is available as caelestia-cli.packages..default, which can be added to your environment.systemPackages, users.users..packages, home.packages if using home-manager, or a devshell. The CLI can then be used via the caelestia command.

[!TIP] The default package does not have the shell enabled by default, which is required for full functionality. To enable the shell, use the with-shell package. This is the recommended installation method, as the CLI exposes the shell via the shell subcommand, meaning there is no need for the shell package to be exposed.

For home-manager, you can also use the Caelestia's home manager module (explained in configuring) that installs and configures the shell and the CLI.

Manual installation

Install all dependencies, then install python-build, python-installer, python-hatch and python-hatch-vcs.

e.g. via an AUR helper (yay)

bash
yay -S libnotify swappy grim dart-sass wl-clipboard slurp gpu-screen-recorder glib2 cliphist fuzzel python-build python-installer python-hatch python-hatch-vcs

Now, clone the repo, cd into it, build the wheel via python -m build --wheel and install it via python -m installer dist/*.whl. Then, to install the fish completions, copy the completions/caelestia.fish file to /usr/share/fish/vendor_completions.d/caelestia.fish.

bash
git clone https://github.com/caelestia-dots/cli.git
cd cli
python -m build --wheel
sudo python -m installer dist/*.whl
sudo cp completions/caelestia.fish /usr/share/fish/vendor_completions.d/caelestia.fish

Additional steps

Auto folder colour theming

For automatic Papirus folder icon colour syncing, you must have papirus-folders installed, and papirus-folders must to be able to run with sudo without a password prompt.

You can allow this by creating a sudoers file:

bash
echo "$USER ALL=(ALL) NOPASSWD: $(which papirus-folders)" | sudo tee /etc/sudoers.d/papirus-folders
sudo chmod 440 /etc/sudoers.d/papirus-folders

Chromium-based browser theming

For live Chromium-based browser theming, the CLI must be allowed to create certain directories in /etc and write to them via sudo without a password prompt.

You can allow this by creating a sudoers file:

fish
# Fish shell
for dir in /etc/chromium/policies/managed /etc/brave/policies/managed /etc/opt/chrome/policies/managed
    echo "$USER ALL=(ALL) NOPASSWD: $(which mkdir) -p $dir" | sudo tee -a /etc/sudoers.d/caelestia-chromium
    echo "$USER ALL=(ALL) NOPASSWD: $(which tee) $dir/caelestia.json" | sudo tee -a /etc/sudoers.d/caelestia-chromium
end
sudo chmod 440 /etc/sudoers.d/caelestia-chromium
bash
# Bash/other shells
for dir in /etc/chromium/policies/managed /etc/brave/policies/managed /etc/opt/chrome/policies/managed; do
    echo "$USER ALL=(ALL) NOPASSWD: $(which mkdir) -p $dir" | sudo tee -a /etc/sudoers.d/caelestia-chromium
    echo "$USER ALL=(ALL) NOPASSWD: $(which tee) $dir/caelestia.json" | sudo tee -a /etc/sudoers.d/caelestia-chromium
done
sudo chmod 440 /etc/sudoers.d/caelestia-chromium

Usage

All subcommands/options can be explored via the help flag.

…

User templates

Custom user templates can be defined in ~/.config/caelestia/templates/.

Template syntax

{{ . }}

  • `` is a theme color role derived from the Material You color system (e.g. primary, secondary, background)
  • `` is the output format: hex, rgb, hsl, or a single channel (red, green, blue, hue, saturation, lightness)

Examples

  • {{ primary.hex }} outputs 3f4ba2
  • {{ primary.rgb }} outputs rgb(193, 132, 207)
  • {{ primary.red }} outputs 193
  • {{ primary.hsl }} outputs hsl(268,41%,66%)
  • {{ primary.hue }} outputs 268

Output files are written to ~/.local/state/caelestia/theme/. You can symlink them to your desired locations.

Configuring

All configuration options are in ~/.config/caelestia/cli.json.

Example configuration

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythoncaelestiadotfileshyprlandlinux

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年12月3日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言