From dcf9a533098b3bc6369053c0bde1dfb1455de81f Mon Sep 17 00:00:00 2001 From: Mortdecai Date: Thu, 26 Mar 2026 18:36:49 -0400 Subject: [PATCH] feat: mobile-optimized kitty config, Xpra HTML5 tuning, higher DPI - Kitty font 16pt, hide decorations, bottom tab bar, touch-friendly - Xpra DPI 144, min-quality 80 for crisp text - HTML5 client: floating menu enabled, swap keys for touch - Natural scrolling for mobile devices --- config/kitty.conf | 50 +++++++++++++++++++++++++--------- config/xpra-html5-settings.txt | 17 ++++++++++++ systemd/kitty-web.service | 6 +++- 3 files changed, 59 insertions(+), 14 deletions(-) create mode 100644 config/xpra-html5-settings.txt diff --git a/config/kitty.conf b/config/kitty.conf index ee016db..af4738a 100644 --- a/config/kitty.conf +++ b/config/kitty.conf @@ -1,13 +1,15 @@ -# Sethian Terminal Theme +# Sethian Terminal Theme - optimized for web/mobile via Xpra + +# Large font for mobile readability font_family JetBrains Mono -font_size 11.0 +font_size 16.0 bold_font auto italic_font auto -# Sethian colors - dark with orange accents +# Sethian colors foreground #e0e0e0 background #0a0a0a -background_opacity 0.95 +background_opacity 1.0 cursor #D35400 cursor_shape beam @@ -15,12 +17,32 @@ cursor_shape beam selection_foreground #0a0a0a selection_background #D35400 -# Tab bar +# Tab bar - bottom, minimal, touch-friendly +tab_bar_edge bottom +tab_bar_style powerline +tab_bar_min_tabs 1 active_tab_foreground #0a0a0a active_tab_background #D35400 inactive_tab_foreground #999999 inactive_tab_background #1a1a1a -tab_bar_style powerline +tab_title_max_length 20 + +# Window layout - no wasted space +window_padding_width 2 +hide_window_decorations yes +placement_strategy top-left + +# Scrollback +scrollback_lines 10000 + +# Bell +enable_audio_bell no +visual_bell_duration 0.1 +visual_bell_color #D35400 + +# URL handling +url_color #D35400 +url_style curly # Normal colors color0 #1a1a1a @@ -42,11 +64,13 @@ color13 #ad7fa8 color14 #34e2e2 color15 #eeeeec -# Window -window_padding_width 4 -confirm_os_window_close 0 -enable_audio_bell no +# Keyboard shortcuts for tab management +map ctrl+shift+t new_tab +map ctrl+shift+w close_tab +map ctrl+shift+right next_tab +map ctrl+shift+left previous_tab -# URL handling -url_color #D35400 -url_style curly +# Performance +repaint_delay 16 +input_delay 2 +sync_to_monitor no diff --git a/config/xpra-html5-settings.txt b/config/xpra-html5-settings.txt new file mode 100644 index 0000000..faa9212 --- /dev/null +++ b/config/xpra-html5-settings.txt @@ -0,0 +1,17 @@ +# kitty-web mobile-optimized Xpra HTML5 settings + +# Block telemetry +blocked-hosts = xpra.org,www.xpra.org + +# Quality - prefer sharpness for text +min-quality = 80 +min-speed = 80 + +# Swap scroll direction for touch devices (natural scrolling) +swap_keys = true + +# Floating menu enabled by default (has keyboard toggle, fullscreen, etc.) +floating_menu = true + +# Encoding - prefer tight/PNG for crisp text rendering +encoding = auto diff --git a/systemd/kitty-web.service b/systemd/kitty-web.service index 0365fe4..6bb7617 100644 --- a/systemd/kitty-web.service +++ b/systemd/kitty-web.service @@ -19,9 +19,13 @@ ExecStart=/usr/bin/xpra start \ --no-printing \ --sharing=yes \ --readonly=no \ + --dpi=144 \ + --desktop-scaling=auto \ + --encoding=auto \ + --min-quality=80 \ --no-daemon -ExecStop=/usr/bin/xpra stop :0 +ExecStop=/usr/bin/xpra stop Restart=on-failure RestartSec=5