Skip to content

Incorrect initial scaling in panel kitten under Hyprland on scaled monitor #8496

Description

@josswright

Description
Running kitty with the panel kitten under Hyprland (Wayland) causes the initial scaling of the fonts to be incorrect.

Specifically, on my HiDPI laptop display, with scale: 2.00, the kitty panel appears with the fonts half-sized. If I then change the font size using a hotkey it 'jumps' into the correct scaling. After that, if I reset kitty to its default font size via hotkey, it remains correctly scaled.

Normal kitty usage, without the panel kitten, has no problems whatsoever.

I do not have the same problem on an external non-scaled monitor.

To Reproduce
Open kitty as a panel under Hyprland:
kitty +kitten panel --layer bottom --focus-policy exclusive --edge bottom --lines 6 zsh

Kitty panel will appear as expected, at the bottom of the screen, but fonts will be tiny. (Half-sized.)

Hit ctrl+shift+equal (or appropriate) to increase font size, and the font will be shown as font_size + font_size_delta with correct scaling.

Hit ctrl+shift+backspace (or appropriate) to restore font size, and font will be shown as font_size with correct scaling.

Environment details

kitty 0.40.1 created by Kovid Goyal
Linux lovecraft 6.13.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 17:17:30 +0000 x86_64
S{PRETTY_NAME} 6.13.8-arch1-1 (/dev/tty)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: Wayland (hyprland v0.48.1,) missing: blur icon
OpenGL: '4.6 (Core Profile) Mesa 25.0.2-arch1.2' Detected version: 4.6
Frozen: False
Fonts:
  medium: BerkeleyMono-SemiLight: /usr/share/fonts/collection/berkeley-mono/BerkeleyMono-SemiLight.otf:0
          Features: ()
    bold: BerkeleyMono-SemiBold: /usr/share/fonts/collection/berkeley-mono/BerkeleyMono-SemiBold.otf:0
          Features: ()
  italic: BerkeleyMono-SemiLightOblique: /usr/share/fonts/collection/berkeley-mono/BerkeleyMono-SemiLight-Oblique.otf:0
          Features: ()
      bi: BerkeleyMono-SemiBoldOblique: /usr/share/fonts/collection/berkeley-mono/BerkeleyMono-SemiBold-Oblique.otf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
System color scheme: no_preference. Applied color theme type: none
Loaded config files:
  /home/joss/.config/kitty/kitty.conf

Config options different from defaults:
allow_remote_control       yes
background_opacity         0.95
background_tint            1
bold_font                  family="Berkeley Mono" style="SemiBold"
bold_italic_font           family="Berkeley Mono" style="SemiBold Oblique"
click_interval             0.5
close_on_child_death       True
confirm_os_window_close    (0, False)
copy_on_select             clipboard
cursor_blink_interval      (0.5, kitty.options.utils.EasingFunction(), kitty.options.utils.EasingFunction())
cursor_shape               3
cursor_stop_blinking_after 0
disable_ligatures          2
enable_audio_bell          False
font_family                family="Berkeley Mono" style="SemiLight"
font_size                  10.0
initial_window_height      (200, 'px')
initial_window_width       (320, 'px')
input_delay                1
italic_font                family="Berkeley Mono" style="SemiLight Oblique"
macos_option_as_alt        3
modify_font:
    cell_height 110%
mouse_hide_wait            10.0
remember_window_size       False
scrollback_pager           ['less', '+G', '-R']
select_by_word_characters  :@-./_~?&=%+#
shell_integration          frozenset({'no-cursor', 'no-sudo'})
symbol_map:
	U+0400 - U+04ff → SF Mono
	U+2800 - U+28ff → Fira Code Medium
	U+3040 - U+309f → Sarasa Mono CL
	U+30a0 - U+30ff → Sarasa Mono CL
	U+4e00 - U+9fff → Sarasa Mono CL
	U+e000 - U+e00a → Symbols Nerd Font Mono
	U+e0a0 - U+e0c8 → Symbols Nerd Font Mono
	U+e0ca - U+e0ca → Symbols Nerd Font Mono
	U+e0cc - U+e0d7 → Symbols Nerd Font Mono
	U+e200 - U+e2a9 → Symbols Nerd Font Mono
	U+e300 - U+e3e3 → Symbols Nerd Font Mono
	U+e5fa - U+e6b1 → Symbols Nerd Font Mono
	U+e700 - U+e7c5 → Symbols Nerd Font Mono
	U+ea60 - U+ebeb → Symbols Nerd Font Mono
	U+ed00 - U+efc1 → Symbols Nerd Font Mono
	U+f000 - U+f2e0 → Symbols Nerd Font Mono
	U+f000 - U+f2ff → Symbols Nerd Font Mono
	U+f300 - U+f372 → Symbols Nerd Font Mono
	U+f400 - U+f533 → Symbols Nerd Font Mono
	U+ff00 - U+ffef → Sarasa Mono CL
	U+f0001 - U+f1af0 → Symbols Nerd Font Mono
url_style                  1
window_border_width        (0, 'pt')
window_padding_width       FloatEdges(left=2.0, top=2.0, right=2.0, bottom=2.0)
Changed shortcuts:
	kitty_mod+- →  decrease_font_size
	kitty_mod+= →  increase_font_size
	kitty_mod+backspace →  restore_font_size
	kitty_mod+e →  run_simple_kitten text url_hints
	kitty_mod+u →  input_unicode_character
Colors:
	active_border_color        #717885   
	active_tab_background      #061229   
	active_tab_foreground      #b8bbc2   
	background                 #061229   
	color0                     #061229   
	color1                     #d07346   
	color10                    #2a3448   
	color11                    #4d5666   
	color12                    #9a99a3   
	color13                    #dbdde0   
	color14                    #b08060   
	color2                     #99bf52   
	color3                     #fbd461   
	color4                     #5299bf   
	color5                     #9989cc   
	color6                     #72b9bf   
	color7                     #b8bbc2   
	color8                     #717885   
	color9                     #f0a000   
	cursor                     #b8bbc2   
	foreground                 #b8bbc2   
	inactive_border_color      #2a3448   
	inactive_tab_background    #2a3448   
	inactive_tab_foreground    #9a99a3   
	selection_background       #b8bbc2   
	selection_foreground       #061229   
	tab_bar_background         #2a3448   
	url_color                  #9a99a3   

Important environment variables seen by the kitty process:
	PATH                                /usr/local/sbin:/usr/local/bin:/usr/bin:/home/joss/bin://home/joss/.local/bin:/opt/google-cloud-sdk/bin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/joss/bin:/home/joss/.local/bin:/opt/resolve/bin
	LANG                                en_GB.UTF-8
	VISUAL                              /usr/bin/vim
	EDITOR                              /usr/bin/vim
	SHELL                               /usr/bin/zsh
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-1
	USER                                joss
	XCURSOR_SIZE                        24
	XDG_BACKEND                         wayland
	XDG_CONFIG_HOME                     /home/joss/.config
	XDG_SEAT                            seat0
	XDG_SESSION_TYPE                    wayland
	XDG_CURRENT_DESKTOP                 Hyprland
	XDG_SESSION_CLASS                   user
	LC_MESSAGES                         
	XDG_VTNR                            1
	XDG_SESSION_ID                      9
	XDG_RUNTIME_DIR                     /run/user/1000

Additional context
Reproducible when adding --config NONE to command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions