aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-10-14 15:58:23 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-10-14 15:58:23 +0530
commitfb3588d05b94ebac857c8c892519fee03b773ae4 (patch)
tree00d8a284b6e4be03c0259e3d66e385e420bec075
parent560ae527f96160496816207f27e4a0299416d21b (diff)
removed alacritty scaling from open_terminal and moved it to alacritty's own config
-rw-r--r--.config/alacritty/env.toml2
-rwxr-xr-x.scripts/open_terminal6
2 files changed, 6 insertions, 2 deletions
diff --git a/.config/alacritty/env.toml b/.config/alacritty/env.toml
new file mode 100644
index 0000000..d0d8c1a
--- /dev/null
+++ b/.config/alacritty/env.toml
@@ -0,0 +1,2 @@
+[env]
+WINIT_X11_SCALE_FACTOR = "1.3"
diff --git a/.scripts/open_terminal b/.scripts/open_terminal
index a2ef1b8..b928758 100755
--- a/.scripts/open_terminal
+++ b/.scripts/open_terminal
@@ -8,13 +8,15 @@ then
PID=$(xprop -id $ACTIVE_WINDOW | grep _NET_WM_PID | grep -oP "\d+")
if [[ "$PID" == "" ]]
then
- WINIT_X11_SCALE_FACTOR=1.3 alacritty
+ # WINIT_X11_SCALE_FACTOR=1.3 alacritty
+ alacritty
fi
# Get first child of terminal
CHILD_PID=$(pgrep -P $PID)
if [[ "$PID" == "" ]]
then
- WINIT_X11_SCALE_FACTOR=1.3 alacritty
+ # WINIT_X11_SCALE_FACTOR=1.3 alacritty
+ alacritty
fi
# Get current directory of child. The first child should be the shell.
pushd "/proc/${CHILD_PID}/cwd"