diff options
| -rw-r--r-- | config/hypr/configs/Keybinds.conf | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/Refresh.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarLayout.sh | 10 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarStyles.sh | 9 |
4 files changed, 3 insertions, 20 deletions
diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 30486de2..b53c6e8c 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -38,7 +38,7 @@ bind = $mainMod SHIFT, W, exec, $UserScripts/WallpaperEffects.sh # Wallpaper Eff bind = CTRL ALT, W, exec, $UserScripts/WallpaperRandom.sh # Random wallpapers # Waybar / Bar related -bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar +bind = $mainMod, B, exec, pkill -SIGUSR1 waybar # Toggle hide/show waybar bind = $mainMod CTRL, B, exec, $scriptsDir/WaybarStyles.sh # Waybar Styles Menu bind = $mainMod ALT, B, exec, $scriptsDir/WaybarLayout.sh # Waybar Layout Menu diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 42e70896..f7a3ec08 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -26,7 +26,7 @@ done ags -q sleep 0.3 -# Relaunch waybar +#Restart waybar waybar & # relaunch swaync 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" & } diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index 2e994780..95a348ba 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -26,15 +26,6 @@ menu() { # Apply selected style apply_style() { ln -sf "$waybar_styles/$1.css" "$waybar_style" - restart_waybar_if_needed -} - -# Restart Waybar if it's running -restart_waybar_if_needed() { - if pgrep -x "waybar" >/dev/null; then - pkill waybar - sleep 0.1 # Delay for Waybar to completely terminate - fi "${SCRIPTSDIR}/Refresh.sh" & } |
