Click Edit→Profiles→Scrolling. Then increase the value under limit scrollback to: or untick it to allow scrolling through unlimited lines.
From comment by Kevin: Be careful with unchecking that option. If a program goes crazy and spews lots of data onto your terminal, you could have memory issues.
Short answer:
xrandr --output DVI-I-1 --brightness 0
where DVI-I-1
is your screen's name.
The other way around:
xrandr --output DVI-I-1 --brightness 1
to set to normal brightness again.
To get the screen's name
Simply run the command:
xrandr
In the output, you will find the screen's name, in the line, including connected
Small script to either darken the screen or set it back to normal
The script can be used to set (all) connected screen(s) to black and vice versa. The script finds your screens automatically.
#!/usr/bin/env python3
import subprocess
import sys
arg = sys.argv[1]
screens = [l.split()[0] for l in subprocess.check_output("xrandr").decode("utf-8").splitlines()
if " connected" in l]
val = "0" if arg == "black" else "1"
for s in screens:
subprocess.Popen(["xrandr", "--output", s, "--brightness", val])
To run
- Copy the script into an empty file, save it as
set_black.py
Run it either with:
python3 /path/to/set_black.py black
to darken the screen, or
python3 /path/to/set_black.py normal
to set brightness to normal again.
While the answer above should run fine on all Ubuntu distro's locally, the question turns out to be on ssh/remote (the information was edited into the question).
In case of a remote situation, we'd need to set the $DISPLAY
variable correctly. If the display variable is e.g. :0
, we'd need to run the script with:
DISPLAY=:0 python3 /path/to/script.py black
The variable is not necessarily :0
though. This post on U&L seems an excellent one set the DISPLAY
variable on the remote machine.
Best Answer
For the specific case of window arrangements, there's a screen command to save them to a file:
layout dump
. Fromman screen
:So, once you make the arrangement manually, press Ctrla:, then type
layout dump /path/to/some/file
. The layout will be saved to/path/to/some/file
and you can then restore it in a new session with: