From e5f1bbba2be64cff04cc0bf7d2224c8a50a1c6dc Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 31 Aug 2022 21:20:40 +0530 Subject: setting alacritty scaling to 1.5 so it looks similar on both monitors --- .scripts/open_terminal | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.scripts/open_terminal') diff --git a/.scripts/open_terminal b/.scripts/open_terminal index 62ac7cc..c816a13 100755 --- a/.scripts/open_terminal +++ b/.scripts/open_terminal @@ -8,20 +8,20 @@ then PID=$(xprop -id $ACTIVE_WINDOW | grep _NET_WM_PID | grep -oP "\d+") if [[ "$PID" == "" ]] then - alacritty + WINIT_X11_SCALE_FACTOR=1.5 alacritty fi # Get first child of terminal CHILD_PID=$(pgrep -P $PID) if [[ "$PID" == "" ]] then - alacritty + WINIT_X11_SCALE_FACTOR=1.5 alacritty fi # Get current directory of child. The first child should be the shell. pushd "/proc/${CHILD_PID}/cwd" SHELL_CWD=$(pwd -P) popd # Start alacritty with the working directory - alacritty --working-directory $SHELL_CWD + WINIT_X11_SCALE_FACTOR=1.5 alacritty --working-directory $SHELL_CWD else - alacritty + WINIT_X11_SCALE_FACTOR=1.5 alacritty fi -- cgit v1.2.3