diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-14 05:17:54 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-14 05:17:54 +0800 |
| commit | bc8a5889c4bb52405f2ac73d18a42ab43e93e867 (patch) | |
| tree | 02eef02c4ce2de03d841e605440e0890f1ec8f9e /variables.lua | |
| parent | 25c5e0b1704b7d7cc4a37619a508c592f6a794c0 (diff) | |
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.
Diffstat (limited to 'variables.lua')
| -rw-r--r-- | variables.lua | 16 |
1 files changed, 16 insertions, 0 deletions
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, +} |
