From 570fc79fa9152dc411fb748a467b845c865311f9 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 11 Oct 2021 18:44:50 +0200 Subject: [PATCH] Create hpc tmuxp session --- scripts/.local/share/scripts/tmuxp-session | 8 +++++--- tmux/.tmuxp/hpc.yaml | 13 +++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 tmux/.tmuxp/hpc.yaml diff --git a/scripts/.local/share/scripts/tmuxp-session b/scripts/.local/share/scripts/tmuxp-session index 574708e..a60c49d 100755 --- a/scripts/.local/share/scripts/tmuxp-session +++ b/scripts/.local/share/scripts/tmuxp-session @@ -5,6 +5,7 @@ select_action() { "zion" "unit" "aegis" + "hpc" ) action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose a session") execute_action "$action" @@ -16,9 +17,10 @@ launch_session() { execute_action() { case "$1" in - "zion") launch_session "zion" ;; - "unit") launch_session "unit" ;; - "aegis") launch_session "aegis" ;; + "zion") launch_session "zion" ;; + "unit") launch_session "unit" ;; + "aegis") launch_session "aegis" ;; + "hpc") launch_session "hpc" ;; esac } diff --git a/tmux/.tmuxp/hpc.yaml b/tmux/.tmuxp/hpc.yaml new file mode 100644 index 0000000..5e2efd2 --- /dev/null +++ b/tmux/.tmuxp/hpc.yaml @@ -0,0 +1,13 @@ +session_name: hpc +suppress_history: false + +windows: +- window_name: canvas + layout: even-vertical + panes: + - ssh hpc + - ssh hpc + +- window_name: monitor + panes: + - ssh -t hpc "htop"