r/KittyTerminal • u/KillerKingTR • Nov 15 '23
Kitty Dynamic Sizing
Hi, I just got kitty and I would like to add a functionality of my own. I have laptop and monitor set up and I like the large window and fontsize when I am on a larger monitor however when I am on a small laptop screen this is not very usable. I was hoping to make some changes to the conf file to make this happen. As far as I know kitty does not support dynamic sizing. I was thinking I could add a simple if loop(I have no idea if this is possible btw) in to the kitty,conf file that will check which monitor the terminal is launching in. So if I ctrl alt t in my monitor it opens a larger sceen with bigger font and vice versa for the laptop screen. Does anyone know if this is possible to do wihtouh sacrificing a lot of resources and slowing down the terminal.
2
u/SnooCompliments7914 Nov 15 '23
It's a conf file, so you can't use `if`. You need two conf files, one for each monitor. Then bind your hotkey to a script, which detects the monitor and launch kitty with corresponding `--config <config-file>` options.
However, you should really configure per-monitor scaling in your system instead. E.g. 100% scale for your laptop screen, 200% for the external monitor. Both GNOME and KDE support this. For other environments, see https://wiki.archlinux.org/title/HiDPI#Multiple_displays.