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 /variables.lua | |
| 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 'variables.lua')
| -rw-r--r-- | variables.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/variables.lua b/variables.lua index 6d326ab..5c6917a 100644 --- a/variables.lua +++ b/variables.lua @@ -7,10 +7,10 @@ local screenshotFn = "/home/catilgrass/Image/Screenshot/screen_$(date +%Y%m%d_%H return { terminal = "kitty", -- 终端 fileManager = "nautilus", -- 文件管理器 - menu = "wofi --allow-images --hide-scroll --dmenu --show drun --width 400", -- 应用程序菜单 + menu = 'pgrep noctalia > /dev/null && noctalia msg panel-open launcher || wofi --allow-images --hide-scroll --dmenu --show drun --width 400', -- 应用程序菜单 -- menu = "rofi -show drun -show-icons", systemMonitor = "kitty htop", -- 系统监视器 clipboardManager = 'cliphist list | wofi --dmenu --width 350 --pre-display-cmd "echo \'%s\' | cut -f 2" | cliphist decode | wl-copy', -- 截图工具 - screenshot = 'grim -t png -c -g "$(slurp)" ' .. screenshotFn .. ' && notify-send "截图保存至' .. screenshotFn .. '" | wl-copy < ' .. screenshotFn, + screenshot = 'pgrep noctalia > /dev/null && noctalia msg screenshot-region || (grim -t png -c -g "$(slurp)" ' .. screenshotFn .. ' && notify-send "截图保存至' .. screenshotFn .. '" | wl-copy < ' .. screenshotFn .. ')', } |
