summaryrefslogtreecommitdiff
path: root/variables.lua
diff options
context:
space:
mode:
Diffstat (limited to 'variables.lua')
-rw-r--r--variables.lua4
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 .. ')',
}