artemsen / swayimg

Image viewer for Wayland
MIT License
379 stars 31 forks source link

Help message is messy #128

Closed JeromeSchmied closed 7 months ago

JeromeSchmied commented 7 months ago

now that I can view the help message, I can see it's quite messed up.

there are many lines, where the keymap is doubled eg:

r: reloadr: reload
q: exitq: exit

sorry for the poor quality, but this is what I get: swayimg_help

artemsen commented 7 months ago

Interesting effect... But I can't reproduce it. Do you use a custom font instead of the default monospace?

JeromeSchmied commented 7 months ago

yes I do

JeromeSchmied commented 7 months ago

should I try other ones too?

artemsen commented 7 months ago

Try to use the default, just comment the whole [font] block with #.

JeromeSchmied commented 7 months ago

still not good, my current config:

# Swayimg configuration file.

# This file contains the default configuration.
# The viewer searches for the config file in the following locations:
# 1. $XDG_CONFIG_HOME/swayimg/config
# 2. $HOME/.config/swayimg/config
# 3. $XDG_CONFIG_DIRS/swayimg/config
# 4. /etc/xdg/swayimg/config

# Any of these options can be overridden using the --config argument
# on the command line, for instance:
# $ swayimg --config="general.scale=real"

################################################################################
# General options                                                              #
################################################################################
[general]

# Initial scale (optimal/fit/width/height/fill/real)
scale = optimal

# Start in full screen mode (yes/no)
fullscreen = no

# Anti-aliasing (yes/no)
antialiasing = no

# Background for transparent images (none/grid/RGB, e.g. #112233)
transparency = grid

# Window position (parent or absolute coordinates, e.g. 100,200)
position = parent
# Window size (parent, image, or absolute size, e.g. 800,600)
size = parent
# Window background mode/color (none/RGB, e.g. #112233)
background = none

# Run slideshow at startup (yes/no)
slideshow = no
# Slideshow image display time (seconds)
slideshow_time = 3

################################################################################
# Image list configuration                                                     #
################################################################################
[list]
# Default order (none/alpha/random)
order = alpha
# Looping list of images (yes/no)
loop = yes
# Read directories recursively (yes/no)
recursive = no
# Open all files in the start directory (yes/no)
all = yes

################################################################################
# Font configuration                                                           #
################################################################################
# [font]
# # Font name
# name = Recursive
# # Font size (in pt)
# size = 14
# # Font color
# color = #cccccc
# # Drop shadow (none/RGB, e.g. #112233)
# shadow = #000000

################################################################################
# Image meta info scheme (format, size, EXIF, etc)                             #
################################################################################
[info]
# Mode on startup (off/brief/full)
mode = full
# Display scheme for the "full" mode: position = content
full.topleft = name,format,filesize,imagesize,exif
full.topright = index
full.bottomleft = scale,frame
full.bottomright = status
# Display scheme for the "brief" mode: position = content
brief.topleft = index
brief.topright = none
brief.bottomleft = none
brief.bottomright = status

################################################################################
# Key binding section: key = action [parameters]                               #
# Key can be specified with modifiers, e.g "Ctrl+Alt+Shift+x"                  #
# Use the `xkbcli` tool to get key name: `xkbcli interactive-wayland`          #
################################################################################
[keys]
Shift+question = help

Home = first_file
End = last_file

h = prev_file
l = next_file

Shift+d = prev_dir
d = next_dir

Shift+o = prev_frame
o = next_frame

Shift+s = slideshow
s = animation
f = fullscreen

Left  = step_left 10
Right = step_right 10
Up    = step_up 10
Down  = step_down 10

Shift+h = step_left 10
Shift+l = step_right 10
Shift+k = step_up 10
Shift+j = step_down 10

k = zoom +10
j = zoom -10

Shift+plus = zoom +10
minus = zoom -10

w = zoom width
Shift+w = zoom height
z = zoom fit
Shift+z = zoom fill
0 = zoom real
BackSpace = zoom optimal

bracketleft = rotate_left
bracketright = rotate_right

m = flip_vertical
Shift+m = flip_horizontal

a = antialiasing
r = reload
i = info
e = exec echo "Image: %"

Escape = exit
q = exit

################################################################################
# Mouse / touchpad configuration, same format as in [keys]                     #
################################################################################
[mouse]
ScrollLeft = step_right 5
ScrollRight = step_left 5
ScrollUp = step_down 5
ScrollDown = step_up 5
Ctrl+ScrollUp = zoom +10
Ctrl+ScrollDown = zoom -10
Shift+ScrollUp = prev_file
Shift+ScrollDown = next_file
Alt+ScrollUp = prev_frame
Alt+ScrollDown = next_frame

# vim: filetype=ini

swayimg_help_default_font

artemsen commented 7 months ago

Hmmm... Really strange. Does it depend on the window size?

artemsen commented 7 months ago

Doesn't matter, I reproduced the bug.

JeromeSchmied commented 7 months ago

and also, if I move around and resize the window a lot(10s, randomly), it crashes, I get this error from fish:

~/Pictures> swayimg
fish: Job 1, 'swayimg' terminated by signal SIGBUS (Misaligned address error)
~/Pictures[135]>
artemsen commented 7 months ago

it crashes

You a good QA =) I will try to reproduce it, but my DE doesn't let me use a mouse for resize, so I can't do it so fast.