我在Manjaro上安装了Qtile,在config.py中,我将它设置为运行并自动启动脚本autostart.sh。然而,当我启动Qtile不运行时,我不会得到任何错误或任何东西。每次启动Qtile时,我都必须手动运行脚本。
这就是我在我的config.py中所拥有的:
from libqtile import hook
import os
import subprocess
@hook.subscribe.startup_once
def autostart():
home = os.path.expanduser('~/.config/qtile/autostart.sh')
subprocess.call([home])这就是我的autostart.sh
#!/bin/bash
xrandr --output HDMI1 --left-of eDP1 &
nitrogen --restore &
picom -f &发布于 2021-11-26 23:04:05
您应该运行:chmod +x autostart.sh
https://unix.stackexchange.com/questions/676913
复制相似问题