tmux_init.sh 1.2 KB

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