#!/bin/bash # ╔-----------------------------------------------------------------------╗ # ║ ║ # ║ This file is part of the Shelix IDE. ║ # ║ Copyright (C) 2024 NVRM webdev23 https://github.com/webdev23 ║ # ║ ║ # ║ This program is free software: you can redistribute it and/or modify ║ # ║ it under the terms of the GNU General Public License as published by ║ # ║ the Free Software Foundation, either version 3 of the License, or ║ # ║ (at your option) any later version. ║ # ║ ║ # ║ This program is distributed in the hope that it will be useful, ║ # ║ but WITHOUT ANY WARRANTY; without even the implied warranty of ║ # ║ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ║ # ║ GNU General Public License for more details. ║ # ║ ║ # ║ You should have received a copy of the GNU General Public License ║ # ║ along with this program. If not, see . ║ # ╚-----------------------------------------------------------------------╝ # echo $TMUX_PANE | notify # Check if ran from inside a popup # Allow to target pane directly if [ -z "$TMUX_PANE" ]; then tmux split-window -vb tmux popup -C fi MARKED=$(tmux display -p -t '~' '#D') if [ -z "$MARKED" ]; then tmux display-message 'Mark a pane first with m/M' # notify 'Require a mark, mark/unmark a pane with \ m/M' else tmux split-window -t '~' -vb fi