Guake / Guake/guake

GNU screen issue when multiple tabs are created from script and Guake starts hidden

Open
#886 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.7k
Forks
604
PR merge metrics
No merged PRs in 30d

Description

So I have a script in autostart which creates 6 tabs in Guake and launches few diagnostic programs in 4 of them (`htop`, `vnstat`, `netstat` and `i7z`). Because `vnstat` and `i7z`’s output can be fit in less than half of one tab, instead of running them in separate tabs I tried to run `screen` with custom screenrc file that would split terminal into 2 panes and execute each command in its own pane. It worked – well, sort of.

All behaves as expected when mentioned script is executed when Guake window is visible. When it is not, output of `vnstat` and `i7z` inside `screen` appears few lines below, almost in the center:

![guake-screen-offset](https://cloud.githubusercontent.com/assets/23283594/21745375/ad108020-d52a-11e6-8559-f1f59f801ceb.jpg)

I use Guake 0.8.5 which comes with Ubuntu 16.10, but behaviour is similar in 0.8.8 (just checked). Do you think it can be an issue with Guake or rather with `screen`?

Current Guake script:
```
#!/bin/bash

sleep 5

guake -e "screen htop -d 10" guake -r "-"
guake -n guake -e "screen -c ~/Dropbox/HOSTNAME-utils/screenrc-i7z+vnstat" guake -r "-"
guake -n guake -e "netstat -pvc --inet" guake -r "-"
# Open additional tabs
guake -n guake -r "-"
guake -n guake -r "-"
guake -n guake -r "-"
# Set focus on the tab with "sudo i7z" to enter password
guake -s "1"

exit 0
```
Custom screenrc:
```
split -v
screen vnstat -l -ru -i wlan0
title "vnstat -l -ru -i wlan0"
focus
screen sudo i7z
title "sudo i7z"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.