-- 默认程序设置(对应 variables.conf) -- 供其它模块使用,例如:local v = require("variables") -- 参考 https://wiki.hypr.land/Configuring/Keywords/ local screenshotFn = "/home/catilgrass/Image/Screenshot/screen_$(date +%Y%m%d_%H%M%S).png" return { terminal = "kitty", -- 终端 fileManager = "nautilus", -- 文件管理器 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 = 'pgrep noctalia > /dev/null && noctalia msg screenshot-region || (grim -t png -c -g "$(slurp)" ' .. screenshotFn .. ' && notify-send "截图保存至' .. screenshotFn .. '" | wl-copy < ' .. screenshotFn .. ')', }