~smlavine/scripts

ref: 5af0022d2df522079823605c7340e26ab9847202 scripts/src/lcg -rwxr-xr-x 587 bytes
5af0022dSebastian LaVine dotfiles -> scripts 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Copyright (c) 2021 Sebastian LaVine <mail@smlavine.com>
# Licensed under the MIT license. See MIT.txt for details.
#
# File:        lcg
# Description: Launches several instances of catgirl running under tabbed,
#              to facilitate connections to several IRC servers.
# Arguments:   catgirl config files to use.

catgirl_configs="${CATGIRL_DIR:-$XDG_CONFIG_HOME/catgirl/dev}"

[ "$#" -gt 0 ] && servers="$*" \
	|| servers="$(find "$catgirl_configs" -type f)"

window="$(tabbed -d)"

echo "$window"

for file in $servers; do
	st -w "$window" -e catgirl "$file" &
done