aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/WaybarLayout.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2024-08-02 18:37:50 +0900
committerJaKooLit <jimmielovejay@gmail.com>2024-08-02 18:37:50 +0900
commit6e0b067e8288640bcd1a02a892ab59cc001f8cd5 (patch)
treece2a41dc1764a5077f763ecf4bb1c2a67fc9eb68 /config/hypr/scripts/WaybarLayout.sh
parentb50b3031d7bf06547808b76b3455687477bcd0c8 (diff)
Code Clean ups
Keybinds killall replaced with pkill for compatibility with Nixos Refresh.sh, WaybarLayout & Styles.sh code clean up
Diffstat (limited to 'config/hypr/scripts/WaybarLayout.sh')
-rwxr-xr-xconfig/hypr/scripts/WaybarLayout.sh10
1 files changed, 1 insertions, 9 deletions
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" &
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage