b4fdb934ea7faa03bb7330d011919c5e4b63addf
commit b4fdb934ea7faa03bb7330d011919c5e4b63addf
Author: Simon Watson <spesk@pm.me>
Date: Fri Oct 27 10:15:41 2023 -0400

Adding a few things

diff --git a/bashrc/bashrc-all b/bashrc/bashrc-all
index c51e457..68d7704 100644
--- a/bashrc/bashrc-all
+++ b/bashrc/bashrc-all
@@ -5,6 +5,8 @@ if [ -f ~/.wal_alias ]; then
fi

[ -f ~/.fzf.bash ] && source ~/.fzf.bash
+source /usr/share/fzf/key-bindings.bash
+source /usr/share/fzf/completion.bash

# Cargo config
[ -f ~/.cargo ] && source "$HOME/.cargo/env"
@@ -204,7 +206,7 @@ case $(cat /etc/hostname) in

;;

- swatson-casana)
+ swatson-casana2)

export TERM=xterm-256color # This fixes some vim issues
export PS1="\[\033[36m\]\w\[\033[m\] λ "
@@ -222,12 +224,7 @@ case $(cat /etc/hostname) in
alias ssh-aws="ssh -i ~/.ssh/aws_key"

tmux_init () {
- $TMUX_PATH new -s services -d
- $TMUX_PATH new -s admin -d
- $TMUX_PATH new -s personal -d
- $TMUX_PATH new -s music -d
- $TMUX_PATH new -s lisp-koans -d
- $TMUX_PATH new -s emacs -d
+ /home/swatson/Repos/dotfiles/tmux/tmux_init.sh
}

# Load non tracked aliases for work specific things
diff --git a/rofi/fzf_tmux.sh b/rofi/fzf_tmux.sh
new file mode 100755
index 0000000..e239373
--- /dev/null
+++ b/rofi/fzf_tmux.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+function tmux_sesh_wind() {
+ for sesh in $(tmux list-sessions -F "#S"); do
+ for win in $(tmux list-windows -t $sesh -F "#W"); do
+ echo "$sesh:$win";
+ done;
+ done;
+}
+
+RET=$(tmux_sesh_wind | fzf)
+tmux switch-client -t $RET
diff --git a/rofi/wtmux.sh b/rofi/wtmux.sh
new file mode 100755
index 0000000..93ee5d7
--- /dev/null
+++ b/rofi/wtmux.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+TERMINAL="/usr/bin/st"
+
+function tmux_sesh_wind() {
+ for sesh in $(tmux list-sessions -F "#S"); do
+ for win in $(tmux list-windows -t $sesh -F "#W"); do
+ echo "$sesh:$win";
+ done;
+ done;
+}
+
+RET=$(tmux_sesh_wind | wofi --dmenu -p "tmux window:")
+
+$TERMINAL tmux switch-client -t $RET
diff --git a/tmux/tmux_init.sh b/tmux/tmux_init.sh
new file mode 100755
index 0000000..a1bae3d
--- /dev/null
+++ b/tmux/tmux_init.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# Replace shell aliases with properly configured
+# tmux state init
+
+ # tmux_init () {
+ # $TMUX_PATH new -s services -d
+ # $TMUX_PATH new -s admin -d
+ # $TMUX_PATH new -s personal -d
+ # $TMUX_PATH new -s music -d
+ # $TMUX_PATH new -s lisp-koans -d
+ # $TMUX_PATH new -s emacs -d
+# }
+
+# Long runningish services that are not
+# daemonized
+tmux new -s services -d
+# Pipewire
+tmux new-window -t 'services:1' -n 'pipewire'
+# OpenVPN
+tmux new-window -t 'services:2' -n 'openvpn'
+tmux send-keys -t 'services:openvpn' 'cd /home/swatson/old_home/mnt/disk_tmpfs/Work/aws_vpn/' C-m
+tmux send-keys -t 'services:openvpn' 'sudo openvpn --config aws-admin-vpn-config.ovpn'
+# Gdrive
+tmux new-window -t 'services:3' -n 'gdrive'
+tmux new-window -t 'services:4' -n 'upgrades'
+tmux send-keys -t 'services:upgrades' 'sudo xbps-install -Syu'
+
+# Work windows
+tmux new -s admin -d
+tmux rename-window -t 'admin:0' 'python1'
+tmux new-window -t 'admin:1' -n 'algo-api'
+tmux send-keys -t 'admin:algo-api' 'ssh-aws ubuntu@algo-api'
+tmux new-window -t 'admin:2' -n 'cloudv2-test'
+tmux new-window -t 'admin:3' -n 'cloudv2-dev'
+
+# Personal
+tmux new -s personal -d
+tmux rename-window -t 'personal:0' 'foobar'