您尚未登录。

#1 2020-03-22 23:21:56

beginner
会员
注册时间: 2019-10-07
帖子: 256

polybar无法开机自启

ls -la $HOME/.config/polybar/launch.sh
-rwxr-xr-x 1 beginner users 345 Mar 21 12:15 .config/polybar/launch.sh
--------------------------------------------------------------------------------------------------------
cat $HOME/.config/polybar/launch.sh:
#!/usr/bin/env bash

#Terminnate already running bar instances
killall -q polybar
# If all your bars have ipc enabled, you can also use
# polybar-msg cmd quit

# Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
polybar bar1 >>/tmp/polybar1.log 2>&1 &
polybar bar2 >>/tmp/polybar2.log 2>&1 &

echo "Bars launched..."
--------------------------------------------------------------------------------------------------------
tail .config/i3/config

        bindsym $mod+r mode "default"
}

bindsym $mod+r mode "resize"
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
#        status_command i3status
#}

还需要什么?

最近编辑记录 beginner (2020-03-23 00:11:32)

离线

#2 2020-03-23 07:31:26

千玄子
会员
所在地: 中国上海
注册时间: 2019-05-28
帖子: 84
个人网站

Re: polybar无法开机自启

polybar 配置的 monitor 那行有改过吗?需要对应填写 polybar -m 的值


探索未知使人迷醉

离线

#3 2020-03-23 11:19:47

beginner
会员
注册时间: 2019-10-07
帖子: 256

Re: polybar无法开机自启

千玄子 说:

polybar 配置的 monitor 那行有改过吗?需要对应填写 polybar -m 的值

抱歉,是哪个文件?哪一行

离线

页脚