1个不稳定版本

0.1.0 2022年1月23日

#6#tablet

GPL-3.0 许可证

21KB
313 代码行

TABSET

Crates.io Build Clippy Audit

tabset 是一个用于配置绘图板的Linux命令行工具。

该工具基于配置脚本的概念,遵循一个简单而可扩展的配置系统。每个设备都有自己的目录,并在其中存储一些简单的元数据和一组你可以用来设置各种 xsetwacom 选项的shell脚本。

安装

Get Appimage

此crate也可以通过 cargo 安装

cargo install tabset

配置

配置文件存储在 ~/.config/tabset/。这些文件按目录排序。以下是我的个人配置列表

# ewpratten@ewpratten-desktop ~/.config/tabset $ tree
.
└── devices
    └── huion-kamvas-13
        ├── name
        ├── peripherals
        └── profiles
            ├── blender.sh
            ├── default.sh -> blender.sh
            └── disabled.sh

3 directories, 5 files

每个设备的 nameperipherals 文件必须存在。name 目前基本未使用,但应包含设备的友好名称。peripherals 是一个字符串列表,当你在 tabset check <设备> 命令的输出中运行 xsetwacom --list 时,tabset 将在其中搜索。

每个配置文件脚本只包含你想要的配置命令。你可以在这里看到我的blender配置文件 示例配置目录

使用方法

tabset 0.1.0
Evan Pratten <[email protected]>
A Linux drawing tablet configuration tool

USAGE:
    tabset <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    check      Check if a specific tablet is connected. Prints message and returns status code
    help       Prints this message or the help of the given subcommand(s)
    list       List all configured devices and their profiles
    profile    Set a specific tablet to use a specific profile

依赖项

~0.8–11MB
~54K SLoC