santiago ревизій цього gist . До ревизії
Без змін
santiago ревизій цього gist . До ревизії
1 file changed, 27 insertions
amishell.sh(файл створено)
@@ -0,0 +1,27 @@ | |||
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 |
Новіше
Пізніше