gutu
v0.1.0
gutu管理您的桌面啟動應用程序。尤其是在獨立窗口管理器上,它可用於統一您處理所需的過程的方式(例如,通知守護程序,鑰匙扣處理程序等)
Gutu在AUR上可用。
從github.com/alexcoder04/gutu/releases/latest下載二進製文件,然後將其複製到$PATH中的目錄。
git clone " https://github.com/alexcoder04/gutu.git "
cd gutu
go build . # build the binary
go install . # install the executable to your $GOPATH 在您的窗口管理器 /桌面環境啟動中自動啟動gutu:執行gutu 。有關配置服務,請參見下文。
每個服務文件都進入$XDG_CONFIG_HOME/gutu中的單獨文件。這些文件可以具有.service , .yml和.yaml擴展。
# your name for the service
Name : compositor
Command : picom
Args : ["--experimental-backends"]
# restart if fails, at most 3 times
KeepAlive : true
RetryNumber : 3
# start only on Xorg
When : x11
# kill picom instances that are still running
KillOld : true有關更多示例,請參見contrib 。
Name # Name of service
Command # Command to run
Args # Arguments for the command (["-c", "arg1", "arg2"])
Interval # Re-run command periodically in this interval (in seconds, 0=never)
KeepAlive # Restart the command if it exits (true/false)
RetryNumber # How often try to restart the command (if KeepAlive=true)
When # "wayland" / "x11" / "always" / "never"
Delay # Number of seconds to wait before starting
KillOld # Kill running "Command" processes