1 #!/bin/bash
2
3 # Replace shell aliases with properly configured
4 # tmux state init
5
6 # tmux_init () {
7 # $TMUX_PATH new -s services -d
8 # $TMUX_PATH new -s admin -d
9 # $TMUX_PATH new -s personal -d
10 # $TMUX_PATH new -s music -d
11 # $TMUX_PATH new -s lisp-koans -d
12 # $TMUX_PATH new -s emacs -d
13 # }
14
15 # Long runningish services that are not
16 # daemonized
17 tmux new -s services -d
18 # Pipewire
19 tmux new-window -t 'services:1' -n 'pipewire'
20 # OpenVPN
21 tmux new-window -t 'services:2' -n 'openvpn'
22 tmux send-keys -t 'services:openvpn' 'cd /home/swatson/old_home/mnt/disk_tmpfs/Work/aws_vpn/' C-m
23 tmux send-keys -t 'services:openvpn' 'sudo openvpn --config aws-admin-vpn-config.ovpn'
24 # Gdrive
25 tmux new-window -t 'services:3' -n 'gdrive'
26 tmux new-window -t 'services:4' -n 'upgrades'
27 tmux send-keys -t 'services:upgrades' 'sudo xbps-install -Syu'
28
29 # Work windows
30 tmux new -s admin -d
31 tmux rename-window -t 'admin:0' 'python1'
32 tmux new-window -t 'admin:1' -n 'algo-api'
33 tmux send-keys -t 'admin:algo-api' 'ssh-aws ubuntu@algo-api'
34 tmux new-window -t 'admin:2' -n 'cloudv2-test'
35 tmux new-window -t 'admin:3' -n 'cloudv2-dev'
36
37 # Personal
38 tmux new -s personal -d
39 tmux rename-window -t 'personal:0' 'foobar'