aboutsummaryrefslogtreecommitdiff
path: root/.scripts/open_terminal
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-31 21:20:40 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-31 21:20:40 +0530
commite5f1bbba2be64cff04cc0bf7d2224c8a50a1c6dc (patch)
tree0cbcdaa78a731542776ff113711d9dc6288eedb7 /.scripts/open_terminal
parentf7bce96b0b363161c0fbedc77c369ad81027a3d2 (diff)
setting alacritty scaling to 1.5 so it looks similar on both monitors
Diffstat (limited to '.scripts/open_terminal')
-rwxr-xr-x.scripts/open_terminal8
1 files changed, 4 insertions, 4 deletions
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