diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index ac6e63a..5e2a435 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -22,11 +22,13 @@ exec-once = $scriptsDir/Polkit.sh # starup apps exec-once = waybar & -exec-once = swaync & exec-once = nm-applet --indicator & -#exec-once = blueman-applet & +exec-once = blueman-applet & #exec-once = rog-control-center & +# notification +exec-once = $scriptsDir/SwayNC.sh + #clipboard manager exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store diff --git a/config/hypr/scripts/SwayNC.sh b/config/hypr/scripts/SwayNC.sh new file mode 100644 index 0000000..2dd4316 --- /dev/null +++ b/config/hypr/scripts/SwayNC.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Killall running notification agents +_ps=(mako dunst swaync) +for _prs in "${_ps[@]}"; do + if pidof "${_prs}" >/dev/null; then + pkill "${_prs}" + fi +done + +# relaunch sway +sleep 0.5 +swaync \ No newline at end of file