From 88181a130370ec3d78b7bb6ea96080c639eaae24 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 28 Dec 2023 18:04:32 +0900 Subject: [PATCH] updated --- config/hypr/configs/Execs.conf | 6 ++++-- config/hypr/scripts/SwayNC.sh | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 config/hypr/scripts/SwayNC.sh 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