"Fullscreen" isn't a bash concept at all, it's down to your terminal emulator window and X.
However if you're scripting, you can tell X to add a fullscreen hint to a client. I most applications this will work. I've tested with Terminator and I've no reason to suspect it won't work with Gnome Terminal:
# set fullscreen on startup
wmctrl -r :ACTIVE: -b add,fullscreen
# ... do your stuff ...
# and before you quit
wmctrl -r :ACTIVE: -b remove,fullscreen
With regard to keeping this at a minimum footprint, the only way I've found to do this is to launch another terminal. Unfortunately lxterminal
doesn't have a fullscreen launch option so you could either hack through the OpenBox settings (beurgh) or just fall back to xterm
:
xterm -fullscreen -hold -e ./anotherscript.sh
Yeah, I'm suggesting launching another terminal. If you're shipping this with a launcher of sorts, you can avoid needing a secondary script.
xterm
doesn't adhere to standard fonts or anything like that though you can configure almost everything through command line arguments (see man xterm
for a riveting read).
It's possible this is a compiz/nvidia bug.
I noticed very similar "screen flashing" that seemed tied to screen redraws, e.g. chunks of the screen would redraw strangely as the cursor blinked, or if I turned off the blinking cursor, would just fail to redraw at the right time.
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1314367/ describes the following workaround:
To fix it, you get CompizConfig Settings Manager (ccsm) and you go
down to "Workarounds" in the "Utility" Category and check the box that
says "Force full screen redraws (buffer swap) on repaint".
...which seems to have worked for me. At least for now.
Best Answer
now
bash scriptNOTE: Updated April 28, 2018 for Ubuntu 18.04 LTS
The heavy lifting is the splash component that shows this:
Yes it really is -14 in Edmonton and feels like -23. A good time to spend the long-weekend inside playing the newly arrived Tomb Raider 2013! Maybe brush up on that Resume to move to Vancouver or Montreal...
Here is the code:
Save the `~/.bashrc" file changes.
To display the Ubuntu information you need
screenfetch
:There are similar display packages to
screenfetch
so shop around!If you want the same command prompt with "─────────" dividing line between commands, change these lines:
Note the length of the separator line coincides with width of
screenfetch
output. In this case it is 92 characters wide andgnome-terminal
preferences are set accordingly.