自定义鼠标指针主题 🎨
本指南将教您如何在 Linux 系统中自定义鼠标指针(光标)主题。
前提条件
- Linux 系统
- 基本的终端操作知识
- Root 或 Sudo 权限
安装鼠标指针主题
方法 1:通过包管理器
最简单的安装方法是通过包管理器:
# Ubuntu/Debian 系统
sudo apt install oxygen-cursor-theme
# Fedora 系统
sudo dnf install oxygen-cursor-theme
# Arch Linux 系统
sudo pacman -S oxygen-cursors
方法 2:手动安装
- 下载光标主题(例如从 Pling)
- 解压文件
- 移动到相应目录:
# 单个用户安装
mkdir -p ~/.icons
mv cursor-theme-folder ~/.icons/
# 系统级安装
sudo mv cursor-theme-folder /usr/share/icons/
激活鼠标指针主题
通过系统设置
- 打开系统设置
- 导航到"外观"或"鼠标指针"
- 选择已安装的主题
通过命令行
创建或编辑 ~/.Xresources
文件:
echo "Xcursor.theme: theme-name" >> ~/.Xresources
xrdb ~/.Xresources
通过 index.theme 文件
编辑 ~/.icons/default/index.theme
文件:
[Icon Theme]
Inherits=theme-name