diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-14 08:49:11 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-14 08:49:11 +0800 |
| commit | 96b802d74d5268b1fbacd41ebfc2ea2bed947ff3 (patch) | |
| tree | 90ecab0794139fe9e85d5e0657f02bb1e5459860 /scripts | |
| parent | f3347980f311bfeb650c679cf4f048d5b1db608f (diff) | |
Replace ashell with noctalia for startup, add fallback logic to use
noctalia when available, otherwise fall back to wofi-based tools for
launcher, wallpaper picking, and screenshots.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/open_launcher.sh | 0 | ||||
| -rwxr-xr-x | scripts/switch_wallpaper.sh | 8 |
2 files changed, 7 insertions, 1 deletions
diff --git a/scripts/open_launcher.sh b/scripts/open_launcher.sh new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/scripts/open_launcher.sh diff --git a/scripts/switch_wallpaper.sh b/scripts/switch_wallpaper.sh index 90842d0..a499d45 100755 --- a/scripts/switch_wallpaper.sh +++ b/scripts/switch_wallpaper.sh @@ -1,11 +1,17 @@ #!/bin/bash -# 壁纸切换:wofi 选择 -> 写入 current_wallpaper -> 重载 swaybg +# 壁纸切换:noctalia 优先,否则回退到 wofi 选择 -> 写入 current_wallpaper -> 重载 swaybg WALLPAPER_DIR="/home/catilgrass/图片/Wallpapers" CURRENT_FILE="/home/catilgrass/.config/hypr/current_wallpaper" THUMB_DIR="/tmp/wallpaper_thumbs" +# 如果 noctalia 正在运行,直接调用其消息接口 +if pgrep -x noctalia > /dev/null 2>&1; then + noctalia msg panel-open wallpaper + exit $? +fi + # 检查壁纸目录 if [ ! -d "$WALLPAPER_DIR" ]; then echo "错误: 壁纸目录不存在: $WALLPAPER_DIR" |
