mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-29 21:04:21 +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
|
||||
1)
|
||||
MONITOR=$PRIMARY exec polybar --reload alone
|
||||
MONITOR=$PRIMARY polybar --reload alone &
|
||||
;;
|
||||
*)
|
||||
MONITOR=$PRIMARY polybar --reload primary &
|
||||
|
@ -19,4 +19,3 @@ case $(echo $MONITORS | wc -w) in
|
|||
done
|
||||
;;
|
||||
esac
|
||||
wait
|
||||
|
|
|
@ -3,6 +3,7 @@ Description=Status bar for i3
|
|||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=%h/.config/i3/bin/polybar
|
||||
ExecStop=%h/.local/bin/polybar-msg cmd quit
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue