From 6e0b067e8288640bcd1a02a892ab59cc001f8cd5 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 2 Aug 2024 18:37:50 +0900 Subject: Code Clean ups Keybinds killall replaced with pkill for compatibility with Nixos Refresh.sh, WaybarLayout & Styles.sh code clean up --- config/hypr/scripts/WaybarLayout.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'config/hypr/scripts/WaybarLayout.sh') diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh index 03029889..36cbeb10 100755 --- a/config/hypr/scripts/WaybarLayout.sh +++ b/config/hypr/scripts/WaybarLayout.sh @@ -24,15 +24,7 @@ menu() { # Apply selected configuration apply_config() { ln -sf "$waybar_layouts/$1" "$waybar_config" - restart_waybar_if_needed -} - -# Restart Waybar -restart_waybar_if_needed() { - if pgrep -x "waybar" >/dev/null; then - pkill waybar - sleep 0.1 # Delay for Waybar to completely terminate - fi + #restart_waybar_if_needed "${SCRIPTSDIR}/Refresh.sh" & } -- cgit v1.2.3