Last active
May 24, 2020 20:28
-
-
Save olmstadfm/7205464fd9a97efc3fde50c94f9c098e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to fullscreen terminal on two monitors and | |
# undecorate window, so you can work in console emacs | |
# more comfortably. | |
# 1. install xdotool: sudo apt install xdotool | |
# | |
# 2. install alacrytty: https://github.com/alacritty/alacritty - you can modify | |
# script to work with any terminal, but allacrytty is way better. | |
# | |
# 3. start alacrytty | |
# | |
# 4. move it manually, so it positioned between displays. left side of | |
# terminal on first screen, right side on the other one. | |
# | |
# 5. run this script | |
WINDOW_ID=$(xdotool search --onlyvisible --class alacritty) | |
# Set final terminal size. First number is width, | |
# second number is height of your desktop. | |
xdotool windowsize $WINDOW_ID 2400 1920 | |
# Move windows to top-left | |
xdotool windowmove $WINDOW_ID 0 0 | |
# Undecorate window | |
xprop -id $WINDOW_ID -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS '0x2, 0x0, 0x0, 0x0, 0x0' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment