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