mirror of https://github.com/balkian/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
402 B
Bash
13 lines
402 B
Bash
#!/bin/sh
|
|
|
|
if command -v rofi >/dev/null 2>&1;
|
|
then
|
|
launcher="rofi -dmenu -i -mesg '""$input""'"
|
|
else
|
|
launcher="dmenu -fn "-*-cure-medium-*-*-*-11-*-*-*-*-*-*-*" -nb "#101010" -nf "#5f5f5f" -sb "#191
|
|
fi
|
|
|
|
# find "$input" -maxdepth 1 ! -path "$input" -print | sh -c "$launcher" | xargs $0
|
|
conname=$(nmcli -t -f NAME con | sh -c "$launcher")
|
|
nmcli conn up "$conname" || nmcli conn down $conname
|