-
|
I used to do this exec-once = pidof waybar; if [ $? -eq 1 ]; then waybar & disown; fi
exec-once = [workspace 10 silent] sleep 10 && obs --startreplaybuffer &I changed it to this and tried some different variations but I can't get my obs to start on workspace 10 anymore. hl.on("hyprland.start", function ()
hl.exec_cmd("pidof waybar; if [ $? -eq 1 ]; then waybar & disown; fi")
hl.exec_cmd("sleep 10 && obs --startreplaybuffer &", { workspace = "10 silent" })
end)Is there something I'm missing? Also is there some lua docs somewhere? Something that lists out all functions in one page and what parameters they take in in one place instead of the way it's split in the wiki. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
1 - why are you doing {
"workspace": {
"library": [
"/usr/share/hypr/stubs"
]
},
"diagnostics": {
"globals": [
"hl"
]
}
} |
Beta Was this translation helpful? Give feedback.
1 - why are you doing
pidof waybaron hyprland start? if for debug - debug build uses hyprlandd.lua. also you dont need to use& disown2 - no need in
&and it actually causes it to not launch properly3 - /usr/share/hypr/stubs
.luarc.json:
{ "workspace": { "library": [ "/usr/share/hypr/stubs" ] }, "diagnostics": { "globals": [ "hl" ] } }