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