在 CentOS 里,cmatrix 本身没有亮度调节选项,它本质上是字符界面的“黑客帝国”效果,亮度其实是字符颜色/对比度的问题。下面给你几种实用可调的方法,从简单到进阶。
cmatrix 支持颜色方案,不同颜色看起来“亮度”不同。
cmatrix -C cyan
cmatrix -C green
cmatrix -C white
cmatrix -C blue
green(默认,偏暗)white(最亮)cyanyellowredblue✅ 如果你觉得太暗,建议直接用:
cmatrix -C white
cmatrix -u 2
或
cmatrix -u 1
-u:刷新速度(数字越小越快、越密集)cmatrix -b
-b 可切换粗体状态(不同版本效果不同)cmatrix 的亮度 = 终端亮度
在终端设置里:
setfont latarcyrheb-sun32
你可以直接改源码或 alias:
alias cmatrix='cmatrix -C white -u 2'
写入 ~/.bashrc:
echo "alias cmatrix='cmatrix -C white -u 2'" >> ~/.bashrc
source ~/.bashrc
⚠️ 注意:
xbacklight -set 80
或
brightnessctl set 80%
cmatrix -C white -u 2
如果你愿意,可以告诉我:
我可以给你最合适的一套配置。