diff --git a/files/etc/NetworkManager/dispatcher.d/connectivity-change.d/sb.sh b/files/etc/NetworkManager/dispatcher.d/connectivity-change.d/sb.sh deleted file mode 100755 index 19ecd6e..0000000 --- a/files/etc/NetworkManager/dispatcher.d/connectivity-change.d/sb.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -[ "$NM_DISPATCHER_ACTION" = "connectivity-change" ] && { - pkill -RTMIN+2 dwmblocks - pkill -RTMIN+3 dwmblocks -} diff --git a/files/etc/NetworkManager/dispatcher.d/sb.sh b/files/etc/NetworkManager/dispatcher.d/sb.sh new file mode 100755 index 0000000..49a94f0 --- /dev/null +++ b/files/etc/NetworkManager/dispatcher.d/sb.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +case "$2" in + up | down) + pkill -RTMIN+2 dwmblocks + pkill -RTMIN+3 dwmblocks + ;; +esac