-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a --split-horizontal-height=XX and --split-vertical-width=XX #1931
Comments
I made a quick&dirty script to do what i want, but xdotool is slow as F#! :/ I still hope these options will be implemented in an upcoming release.. btw the xdotool keys are my own shortcut keys, you have to implement your own shortcut keys to resize the terminal. Maybe usable for anyone with the same problem..? `#!/bin/sh This script opens a new tab, splits it in three, resizes each terminal and starts a program in each terminal.The values of the sleep timers depends on the speed of your system. Untill there is an option to set the sizeof the new split, this is a slow&dirty solution. Feel free to (ab)use it as you like!###################################################################################################################### Open new tab and terminalguake -new-tab=/home/admin -e 'echo "Terminal0: 0" >/tmp/guake_terminal.tmp; c0=$(tty); echo "Console0: Open second terminal find out number and ttyguake --split-horizontal -e 't1=$(guake --selected-terminal); echo "Terminal1: Open third terminal find out number and ttyguake --split-horizontal -e 't2=$(guake --selected-terminal); echo "Terminal2: sleep .1 Put terminal and tty into variablesterminal0=$(cat /tmp/guake_terminal.tmp | grep "Terminal0" | awk -F "Terminal0: " '{print $2}') Select first terminal and resizeguake --select-terminal=$terminal0 -e 'while [ "$lines0" -gt 5 ]; do xdotool keydown -delay 0 ctrl+shift+super Up keyup ctrl+shift+super Up; lines0=$((lines0-1)); tput clear; printf "$lines0"; done' Select second terminal and resizeguake --select-terminal=$terminal1 -e 'while [ "$lines1" -lt 65 ]; do xdotool keydown -delay 0 ctrl+shift+super Down keyup ctrl+shift+super Down; lines1=$((lines1+1)); tput clear; printf "$lines1"; done' |
Could possibly just make width/height optional parameters to the existing split commands. Cut back on the amount to learn a little bit. |
I would be very pleased with any option to set height and width with a cli command! |
And maybe an idea to choose if you want number of lines/columns or a percent of the screen? |
Eh probably just throw an error when you try to make a split larger than the window. |
? |
Resolved by #2208 |
A suggestion
Add a --split-horizontal-height=XX (XX= lines) for max height of new terminal
Add a --split-vertical-width=XX (XX= cols) for max width of new terminal
I use a script to open a new tab that opens 2 horizontal splits (3 terminals).
First one is just 1 line and shows clock, cpu, mem etc info every second.
Second one runs midnight commander in it with output to third terminal (exec 1>/dev/pts/xx).
Third one is the output of the second terminal.
But i have to drag the size of the terminals manually every time i open an new tab, because the first split is halve of the screen while terminal 1 output is just a one liner.
I couldn't find anything on the net to set this on the cli.
Screenshots:
.
The text was updated successfully, but these errors were encountered: