all repos — zenUtils @ 571d2b0d95ccc03a2c63a27a2e3b3222979ed752

misc utilities for computing zen

nmtuiWin.sh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# nmtuiWin:
# wrapper around alacritty and nmtui to provide easy access to network config
# alaritty config file is provided to hardcode colors for the ncurses interface
# (c) 2020 Derek Stevens <drkste@zoho.com>
# MIT License -- do whatever you want

if [ $(pgrep nmtui) -gt 0 ]; then
  exec alacritty -d 80 30 --position 9999 0 -t "Network Configuration" \
    --config-file ~/src/zenUtils/nmtui_alacritty.yml -e nmtui &
else
  killall nmtui
fi