13 lines
191 B
Bash
Executable File
13 lines
191 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z $2 ]; then
|
|
c=`nmcli -t -e yes -c no -f name c show | wmenu -i -l 10`
|
|
else
|
|
c="$2"
|
|
fi
|
|
|
|
o=`nmcli c $1 "${c}"`
|
|
|
|
dunstify -a $0 "con $1 ${c}" "${o}"
|
|
killall -USR1 i3status
|