omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

The texts in the ABOUT floating display via fastfetch are truncated

Open Chase78712002 opened this issue 11 months ago • 9 comments

System details

Omarchy 3.2.3, Hyprland 0.52.2 (Wayland), ghostty 1.2.3-arch2

What's wrong?

When opening the ABOUT floating terminal window to view system information, multiple text fields appear truncated. Resizing the floating window does not resolve the issue (see attached image).

Steps to Reproduce:

  1. Super + Alt + space to opne the Omarchy Menu
  2. Select About in the menu
  3. Observe truncated text in system info display
  4. Attempt to resize window by pressing Super and move cursor with right mouse key pressed

Expected Behavior:

All system information text should be fully visible and readable within the window.

Actual Behavior:

Text is cut off/truncated and remains truncated even after resizing the window.

Image

Chase78712002 avatar Dec 28 '25 22:12 Chase78712002

Hey, I tried to recreate it on the exact same setup It opens just fine no messy layout. Resizing makes it look messy for a moment, but resizing back fixes it. I also ran it manually in ghostty (ghostty -e bash -c "fastfetch; exec bash") and it looks fine.

The issue might depend on your terminal, font, or theme. Which ones are you using?

jassem-manita avatar Dec 29 '25 02:12 jassem-manita

Hey, I tried to recreate it on the exact same setup It opens just fine no messy layout. Resizing makes it look messy for a moment, but resizing back fixes it. I also ran it manually in ghostty (ghostty -e bash -c "fastfetch; exec bash") and it looks fine.

The issue might depend on your terminal, font, or theme. Which ones are you using?

Thanks for tip. It was indeed due to the font size. I set my ghostty's font size to 15. No more truncated texts after changing the font size to 10. Hmm, so I guess I have to work with font size 10 in my terminal then? it's a bit small for me to read though :(

Chase78712002 avatar Dec 29 '25 02:12 Chase78712002

try forcing a smaller font just for the About window(kitty --override font_size=9 --class org.omarchy.bash -- bash -c "fastfetch; read -n 1 -s") this keeps your normal terminal font as it is and makes About readable Or you could just temporarily reduce the font size when opening About

jassem-manita avatar Dec 29 '25 12:12 jassem-manita

try forcing a smaller font just for the About window(kitty --override font_size=9 --class org.omarchy.bash -- bash -c "fastfetch; read -n 1 -s") this keeps your normal terminal font as it is and makes About readable Or you could just temporarily reduce the font size when opening About

Do I modify the code inside /bin/omarchy-launch-about file?

Chase78712002 avatar Dec 31 '25 07:12 Chase78712002

I checked the launcher scripts. "omarchy-launch-about" doesn’t call a terminal directly it just passes the command: "bash -c 'fastfetch; read -n 1 -s'" the actual terminal is launched inside "omarchy-launch-or-focus-tui" this script wraps the command for "omarchy-launch-or-focus" which handles window focus and launching the terminal. Because of this, i tried editing "...focus-tui" to call terminal directly but it caused two terminals the normal about window and the extra launched by the patch

So changing ...about or ...focus-tui alone cannot safely change the font i reecommend using a wrapper script for ghosty or just temporarily reduce your terminal font :) the script i used :

`#!/bin/bash APP_ID="org.omarchy.$(basename $1)" LAUNCH_COMMAND="omarchy-launch-tui $@"

if [[ "$@" == fastfetch ]]; then exec kitty --override font_size=99 --class org.omarchy.bash -- bash -c "$LAUNCH_COMMAND" else exec omarchy-launch-or-focus "$APP_ID" "$LAUNCH_COMMAND" fi `

jassem-manita avatar Dec 31 '25 13:12 jassem-manita

This is probably caused by the terminal resizing asynchronously. It can cause the screensaver to be off–center as well.

db48x avatar Jan 04 '26 13:01 db48x

@db48x voila the reliable solution for now is to change the font size

jassem-manita avatar Jan 04 '26 21:01 jassem-manita

That was a problem that bothered me from the beginning... And at the end of the day it is connected to the hardcoded pixel width and height for the "floating window" windowrule. If you change the ghostty font size, the floating window size stays the same and then the content of "About" (and other TUIs like Impala) does not fit nicely anymore. My personal life hack for this is as follows:

  1. Create a bash-script for this, e.g., "~/.config/hypr/ghostty-font-windowsize.sh":
#!/usr/bin/env bash

set -e

# Read Ghostty config
config=$(ghostty +show-config 2>/dev/null || true)

if [ -z "$config" ]; then
    echo "ERROR: ghostty +show-config output empty"
fi

# Getting the current font size
size=$(printf "%s" "$config" |
    sed -n 's/^[[:space:]]*font-size[[:space:]]*=[[:space:]]*\([0-9]\+\).*/\1/p')

# Validate if it seems to be correct, otherwise use 9 as a fallback
if ! [[ "$size" =~ ^[0-9]+$ ]]; then
    echo "WARN: extracted size invalid, using fallback 9"
    size=9
elif [[ "$size" -gt 9 ]]; then
    size=$((size + 1))
fi

# Calculate the new window sizes
width=$((875 * size / 9))
width=$(printf "%.0f" "$width")

height=$((600 * size / 9))
height=$(printf "%.0f" "$height")

# Change the hard-coded setting in the omarchy windowrule
file="$HOME/.local/share/omarchy/default/hypr/apps/system.conf"

sed -i -E \
    "s/^windowrule[[:space:]]*=[[:space:]]*size[[:space:]]*[0-9]+[[:space:]]+[0-9]+[[:space:]]*,[[:space:]]*match:tag floating-window$/windowrule = size $width $height, match:tag floating-window/" \
    "$file"

hyprctl reload
  1. Make it executable:
chmod u+x ~/.config/hypr/ghostty-font-windowsize.sh
  1. Add this to "~/.config/hypr/autostart.conf":
# Changing floating-window size depending on ghostty font-size
exec-once = ~/.config/hypr/ghostty-font-windowsize.sh

This is a little hacky, I know, and it changes the setting only on startup (or via running the script manually), so if you edit the ghostty font size manually after boot, you see no immediate change, but it works, at least for me...

Woosah avatar Feb 09 '26 13:02 Woosah

Closing because Quattro replaces the affected Waybar, Mako, SwayOSD, Makima, About, battery, notification, or OSD surface with the native Omarchy shell implementation.

dhh avatar Jul 18 '26 19:07 dhh