feat: 上传我的配置

This commit is contained in:
2026-02-06 17:17:48 +08:00
parent 5ae578a012
commit ac517ad717
126 changed files with 15159 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# 检查蓝牙的 rfkill 状态
# 'rfkill list bluetooth' 会输出蓝牙设备的信息
# 'grep -q "Soft blocked: yes"' 在输出中安静地 (-q) 查找 "Soft blocked: yes" 字符串
if rfkill list bluetooth | grep -q "Soft blocked: yes"; then
# 如果找到了 "Soft blocked: yes" (说明蓝牙被软屏蔽了)
# 则执行 unblock 命令来解锁
rfkill unblock bluetooth
# (可选) 发送一个通知,提供操作反馈
else
# 如果没有找到 "Soft blocked: yes" (说明蓝牙是开启的)
# 则执行 block 命令来屏蔽
rfkill block bluetooth
# (可选) 发送通知
fi