mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-30 05:14:22 +02:00
polybar: no need to keep the shell waiting, systemd can do it
This commit is contained in:
parent
1db91fb0eb
commit
764dc010b6
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ PRIMARY=${PRIMARY:-${MONITORS%% *}}
|
||||||
|
|
||||||
case $(echo $MONITORS | wc -w) in
|
case $(echo $MONITORS | wc -w) in
|
||||||
1)
|
1)
|
||||||
MONITOR=$PRIMARY exec polybar --reload alone
|
MONITOR=$PRIMARY polybar --reload alone &
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
MONITOR=$PRIMARY polybar --reload primary &
|
MONITOR=$PRIMARY polybar --reload primary &
|
||||||
|
@ -19,4 +19,3 @@ case $(echo $MONITORS | wc -w) in
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
wait
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ Description=Status bar for i3
|
||||||
PartOf=graphical-session.target
|
PartOf=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=forking
|
||||||
ExecStart=%h/.config/i3/bin/polybar
|
ExecStart=%h/.config/i3/bin/polybar
|
||||||
ExecStop=%h/.local/bin/polybar-msg cmd quit
|
ExecStop=%h/.local/bin/polybar-msg cmd quit
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue