From 1ef72f084f1aedcbd8c0d22cd0789b66bdaf0800 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 22 Jul 2023 19:43:21 +0300 Subject: [PATCH] add waybar launch script --- config/waybar/launch-waybar.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 config/waybar/launch-waybar.sh diff --git a/config/waybar/launch-waybar.sh b/config/waybar/launch-waybar.sh new file mode 100755 index 00000000..a7ac524d --- /dev/null +++ b/config/waybar/launch-waybar.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +CONFIG_FILES="/home/sako/.config/waybar/config /home/sako/.config/waybar/style.css" + +trap "killall waybar" EXIT + +while true; do + waybar & + inotifywait -e create,modify $CONFIG_FILES + killall waybar +done