dotfiles/graphical/config/eww/scripts/bar/network-updown
2026-03-20 11:47:19 -07:00

11 lines
213 B
Bash
Executable file

#!/bin/bash
type="${1}"
action="${2}"
devices=$(nmcli -g DEVICE device)
for d in ${devices};do
if [ "$(nmcli -g GENERAL.TYPE device show ${d})" = "${type}" ];then
nmcli device "${action}" "${d}"
fi
done