Author Topic: Customizing tmux panes  (Read 3889 times)

Offline LupTV

  • Junior Indexer
  • **
  • Posts: 7
  • Helpful: +1/-0
Customizing tmux panes
« on: 2015-01-18, 02:02:21 PM »
I have tried a few times to have a custom tmux session running.

I wanted to remove panes/features that I don't use.  Basically, I do not want these anymore:
"nzb-import has been disabled/terminated by Import "
"updateTVandTheaters has been disabled/terminated by Update TV/Theater"
"postprocessing_non_amazon has been disabled/terminated by No Movies/TV/Anime to process"
"postprocessing_amazon has been disabled/terminated by Postprocess Amazon"

I've created my own start_local.php file, and I have tried various edits.  I've commented out the IRCScraper, and that worked fine.  So I repeated that process for things like nzb-import, postprocessing_amazon, etc.  However, I always end up with unexpected results, a bunch of "pane is missing" alerts, and other various PHP errors.

Here is my simplified start_local.php file snippet:
Code: [Select]
$tmuxconfig = $DIR . "update/nix/tmux/tmux.conf";
exec("cd ${DIR}/update/nix/tmux; tmux -f $tmuxconfig new-session -d -s $tmux_session -n Monitor 'printf \"\033]2;\"Monitor\"\033\"'");
exec("tmux selectp -t $tmux_session:0.0; tmux splitw -t $tmux_session:0 -h -p 67 'printf \"\033]2;update_releases\033\"'");

exec("tmux new-window -t $tmux_session -n utils 'printf \"\033]2;fixReleaseNames\033\"'");
exec("tmux splitw -t $tmux_session:1 -v -p 50 'printf \"\033]2;postprocessing_additional\033\"'");
exec("tmux selectp -t $tmux_session:1.0; tmux splitw -t $tmux_session:1 -h -p 50 'printf \"\033]2;removeCrapReleases\033\"'");
exec("tmux selectp -t $tmux_session:1.2; tmux splitw -t $tmux_session:1 -h -p 50 'printf \"\033]2;decryptHashes\033\"'");

start_apps($tmux_session);
attach($DIR, $tmux_session);

Here are the errors:
Quote
update_releases has been disabled/terminated by Import

PHP Notice:  Undefined offset: 2 in /srv/www/nZEDb/nzedb/controllers/TmuxRun.php o│
n line 537                                                                               │
PHP Notice:  Undefined offset: 2 in /srv/www/nZEDb/nzedb/controllers/TmuxRun.php o│
n line 224                                                                               │
window not found: nZEDb:2                                                                │
PHP Notice:  Undefined offset: 1 in /srv/nZEDb/nzedb/controllers/TmuxRun.php o│
n line 285                                                                               │
window not found: nZEDb:2                                                                │
                           
postprocessing_additional has been disabled/terminated by Update TV/Theater

Any suggestions?

Offline Bart39

  • Overlord
  • ******
  • Posts: 171
  • Helpful: +19/-0
Re: Customizing tmux panes
« Reply #1 on: 2015-01-18, 05:59:48 PM »
you will have to modify TmuxRun.php as you have removed some of the panes that it is looking to fill

Offline LupTV

  • Junior Indexer
  • **
  • Posts: 7
  • Helpful: +1/-0
Re: Customizing tmux panes
« Reply #2 on: 2015-01-19, 01:53:34 AM »
Made a backup, and tried various edits.  Still can't seem to get it just right.

I've commented out every reference to words liker import, amazon, irc, etc.  Unfortunately, the issues (while getting better) are still there.  Also, after the edits, the update_binaries and update_releases does not run.