I made the colorpanes program to replace panes scripts such as the one you are using and copies like it. Are you interested in replacing the script with colorpanes?
Benefits of colorpanes opposed to panes.sh:
- foreground and background color to have a shadow
- ability to control height and width of colorpanes
- select between horizontal and vertical colorpanes
- ability to remove margin
- ability to add captions
- made in Rust: memory-safe, fast, code that you can actually understand unlike the panes.sh