diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-08-16 18:27:43 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:41:34 -0700 |
| commit | fc268ed5e73b5087afb30f83a918d0d112e15898 (patch) | |
| tree | 562153fa729396b874d63428f7ed83757d541c25 /config/hypr/scripts/ToggleWaybarTime.sh | |
| parent | 12c6f2952ed366ab43f3a7c3bd8fc59a18407b93 (diff) | |
Adj waybar to prevent dup starts w/waybar.service
Some distros have waybar as service. Startup checks for that
Signed-off-by: Don Williams <don.e.williams@gmail.com>
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/Refresh.sh
modified: config/hypr/scripts/ToggleWaybarTime.sh
modified: config/hypr/scripts/WaybarLayout.sh
Diffstat (limited to 'config/hypr/scripts/ToggleWaybarTime.sh')
| -rwxr-xr-x | config/hypr/scripts/ToggleWaybarTime.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/scripts/ToggleWaybarTime.sh b/config/hypr/scripts/ToggleWaybarTime.sh index ac58ec20..09ae9433 100755 --- a/config/hypr/scripts/ToggleWaybarTime.sh +++ b/config/hypr/scripts/ToggleWaybarTime.sh @@ -149,8 +149,8 @@ restart_waybar() { systemctl --user stop waybar.service >/dev/null 2>&1 || true fi - pkill -x waybar >/dev/null 2>&1 || true - pkill -x '.waybar-wrapped' >/dev/null 2>&1 || true + pkill -INT -x waybar >/dev/null 2>&1 || true + pkill -INT -x '.waybar-wrapped' >/dev/null 2>&1 || true sleep 0.2 if pgrep -x waybar >/dev/null 2>&1 || pgrep -x '.waybar-wrapped' >/dev/null 2>&1; then pkill -9 -x waybar >/dev/null 2>&1 || true |
