Last active 1747056117

Launch and remove border on Amiga-like shell on Pi4-T

amishell.sh Raw
1#!/bin/bash
2
3cd /home/pi/scripts/
4/bin/lxterminal -e 'tmux' &
5sleep 8
6source ./windowfix.sh
7
8window_name="tmux"
9
10#resizing like this fails on cool retro term but we use geometry above
11new_width=1040
12new_height=1800
13new_x=20
14new_y=80
15
16window_id=$(wait_find_window_id "$window_name")
17echo "Window '$window_name' found with ID: $window_id"
18
19echo "Fixing $window_id"
20#fix_window "$window_id"
21
22
23echo "resizing $window_id to $new_x , $new_y $new_width x $new_height "
24resize_window "$window_id" "$new_x" "$new_y" "$new_width" "$new_height"
25sleep 4
26#On pi this one works
27./toggle-decorations $window_id
28