summaryrefslogtreecommitdiff
path: root/startup.lua
diff options
context:
space:
mode:
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)