summaryrefslogtreecommitdiff
path: root/startup.lua
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-14 05:17:54 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-14 05:17:54 +0800
commitbc8a5889c4bb52405f2ac73d18a42ab43e93e867 (patch)
tree02eef02c4ce2de03d841e605440e0890f1ec8f9e /startup.lua
parent25c5e0b1704b7d7cc4a37619a508c592f6a794c0 (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 'startup.lua')
-rw-r--r--startup.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/startup.lua b/startup.lua
new file mode 100644
index 0000000..36206d3
--- /dev/null
+++ b/startup.lua
@@ -0,0 +1,38 @@
+-- 自启动程序(对应 startup.conf 中的 exec-once)
+-- 参考 https://wiki.hypr.land/Configuring/Basics/Autostart/
+-- Lua 中对应 exec-once 的写法:在 hyprland.start 事件中执行
+
+hl.on("hyprland.start", function()
+ -- 顶部菜单 / shell
+ -- hl.exec_cmd("polybar -q -c ~/.config/polybar/config.ini -r")
+ -- hl.exec_cmd("waybar")
+ hl.exec_cmd("ashell --config-path /home/catilgrass/.config/ashell/config.toml")
+
+ -- Seatd
+ hl.exec_cmd("seatd -g video")
+
+ -- 总览
+ hl.exec_cmd("hyprpm enable Hyprspace")
+
+ -- 壁纸
+ hl.exec_cmd("hyprpaper")
+
+ -- 剪贴板 (只存文本/图片数据)
+ hl.exec_cmd("wl-paste --type text --watch cliphist store")
+ hl.exec_cmd("wl-paste --type image --watch cliphist store")
+
+ -- Overview
+ -- hl.exec_cmd("hyprctl plugin load ~/.config/hypr/plugins/hyprspace.so")
+
+ -- 验证器
+ hl.exec_cmd("/usr/lib/mate-polkit/polkit-mate-authentication-agent-1")
+
+ -- 通知
+ hl.exec_cmd("/home/catilgrass/Scripts/dunst-daemon.sh")
+
+ -- 截图
+ -- hl.exec_cmd("flameshot")
+
+ -- FCITX5
+ hl.exec_cmd("fcitx5 --replace -d")
+end)