Linux screen resize window
(none)
Resize the current region. The space will be removed from or added to the surrounding regions depending on the order of the splits. The available options for resizing are ‘ -h ’(horizontal), ‘ -v ’(vertical), ‘ -b ’(both), ‘ -l ’(local to layer), and ‘ -p ’(perpendicular). Horizontal resizes will add or remove width to a region, vertical will add or remove height, and both will add or remove size from both dimensions. Local and perpendicular are similar to horizontal and vertical, but they take in account of how a region was split. If a region’s last split was horizontal, a local resize will work like a vertical resize. If a region’s last split was vertical, a local resize will work like a horizontal resize. Perpendicular resizes work in opposite of local resizes. If no option is specified, local is the default.
The amount of lines to add or remove can be expressed a couple of different ways. By specifying a number n by itself will resize the region by that absolute amount. You can specify a relative amount by prefixing a plus ‘ + ’ or minus ‘ — ’ to the amount, such as adding +n lines or removing -n lines. Resizing can also be expressed as an absolute or relative percentage by postfixing a percent sign ‘ % ’. Using zero ‘ 0 ’ is a synonym for min and using an underscore ‘ _ ’ is a synonym for max .
Some examples are:
Without any arguments, screen will prompt for how you would like to resize the current region.
See focusminsize if you want to restrict the minimun size a region can have.
Источник
xrandr: Linux Resize / Set The Screen Size Quickly Via Command Line Options
G enerally, I need to switch my Gnome screen size to 800×600 to watch TV via TV-Tunner card as my card supports max 800×600 resolution. For rest of my work I prefer to use 1024×768 pixels. You can create a shortcuts on the desktop to resize screen quickly:
Right click on desktop > Select Create Launcher
Setup Launcher properties as follows
Setup Name to 1024×763
Setup Generic name to Resize
Setup Command to xrandr -s 0
Click on the “Close” button to save the changes.
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
The xrandr command is used to set the screen size, orientation and/or reflection. It can also set the screen size. The xrandr -s 0 command will setup screen size to 1024×763 pixels. You can get list of supported screen size along with number using xrandr command:
$ xrandr -q
Sample outputs:
The SZ number can be passed to xrandr -s to setup desire screen size in pixels. Create one more Launcher for 800×600 screen size. And you are done just click on ICONS to setup desired screen size. This will save lots of time 😀 Here is my desktop image along with these and others shortcuts:
xrandr — primitive command line interface to RandR extension
Источник