From 8eb09a4fdf513b7a2ae4b61cf9731dc36c936e35 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 12 Jul 2023 08:19:03 +0200 Subject: [PATCH] extend check --- usr/lib/archboot/update/update.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/usr/lib/archboot/update/update.sh b/usr/lib/archboot/update/update.sh index df3f9c6ac..ce666d823 100644 --- a/usr/lib/archboot/update/update.sh +++ b/usr/lib/archboot/update/update.sh @@ -741,12 +741,14 @@ EOF echo 'NoDisplay=true' >> /usr/share/applications/"${i}".desktop done echo "Configuring waybar..." - # hide sway-bar - grep -q waybar /etc/sway/config || sed -i '/position top/a mode invisible' /etc/sway/config - # diable not usable plugins - echo exec waybar >> /etc/sway/config - sed -i -e 's#, "custom/media"##g' /etc/xdg/waybar/config - sed -i -e 's#"mpd", "idle_inhibitor", "pulseaudio",##g' /etc/xdg/waybar/config + if ! grep -q waybar /etc/sway/config; then + # hide sway-bar + sed -i '/position top/a mode invisible' /etc/sway/config + # diable not usable plugins + echo "exec waybar" >> /etc/sway/config + sed -i -e 's#, "custom/media"##g' /etc/xdg/waybar/config + sed -i -e 's#"mpd", "idle_inhibitor", "pulseaudio",##g' /etc/xdg/waybar/config + fi echo "Configuring dialog..." cat < /etc/dialogrc border_color = (BLACK,WHITE,ON)