From bc8a5889c4bb52405f2ac73d18a42ab43e93e867 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 14 Aug 2026 05:17:54 +0800 Subject: feat: add Lua config modules for Hyprland Split the monolithic Hyprland config into modular Lua files covering appearance, input, keybindings, monitors, startup, window rules, and workspace settings. --- variables.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 variables.lua (limited to 'variables.lua') diff --git a/variables.lua b/variables.lua new file mode 100644 index 0000000..6d326ab --- /dev/null +++ b/variables.lua @@ -0,0 +1,16 @@ +-- 默认程序设置(对应 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 = "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, +} -- cgit