~maksym


#224 wofi does not respect width and height on sway with scaled view 7 months ago

Comment by ~maksym on ~scoopta/wofi

Nope. Laptop with a single screen. It fails only on fractional scaling like 1.5 or 2.25, but it's ok on integers like 1 or 2.

Here is additional config files: (wofi config does not affect, but it here just in case)

.config/wofi/config

key_expand=space
layer=overlay
image_size=64

.config/wofi/style.css

#window {
    font: 24pt monospace;
}

#outer-box {
    margin: 2pt 2pt 2pt 2pt;
    padding: 4pt 4pt 4pt 4pt;
    border: 2px solid black;
}

#img {
    margin-right: 12pt;
}

swaymsg -t get_outputs

Output eDP-1 'LG Display 0x06F9 Unknown' (focused)
  Current mode: 1920x1200 @ 60.001 Hz
  Power: on
  Position: 0,0
  Scale factor: 1.500000
  Scale filter: linear
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 1
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    1920x1200 @ 60.001 Hz
    1920x1200 @ 47.999 Hz
    1920x1080 @ 60.001 Hz
    1600x1200 @ 60.001 Hz
    1680x1050 @ 60.001 Hz
    1280x1024 @ 60.001 Hz
    1440x900 @ 60.001 Hz
    1280x800 @ 60.001 Hz
    1280x720 @ 60.001 Hz
    1024x768 @ 60.001 Hz
    800x600 @ 60.001 Hz
    640x480 @ 60.001 Hz

.config/kanshi/config

profile {
    output eDP-1 position 0,0
}

profile {
    output "Dell Inc. DELL U2723QE FSDZZN3" mode 1920x1080 position 0,0
    output eDP-1 position 1920,390
}

part of .config/sway/config

    seat seat0 {
        # Hide mouse cursor after a period of inactivity
        hide_cursor 3000
        # Cursor size
        xcursor_theme default 48
    }
   output {
        * bg ~/Pictures/pic.jpg fill
        eDP-1 scale 1.5
        LVDS-1 scale 1.35
    }

#224 wofi does not respect width and height on sway with scaled view 7 months ago

Ticket created by ~maksym on ~scoopta/wofi

wofi --version v1.4.1

STEPS TO REPRODUCE:

  1. Make scaled output in sway config: output * scale 1.5
  2. Run wofi: wofi --show "drun" --location="bottom_left" --width="100%" --height="100%" --allow-images

ACTUAL RESULTS:

wofi is not full screen despite 100% width and height

#95 Config does not correspond to sway-output as claimed 1 year, 2 months ago

Comment by ~maksym on ~emersion/kanshi

Sorry, it was little bit confusing. Every other directive is identical to sway-output except this one. Of course, I tried to set position as 0 0 then read manual. Anyway, thank for your great work for supporting wayland.

#95 Config does not correspond to sway-output as claimed 1 year, 2 months ago

Ticket created by ~maksym on ~emersion/kanshi

Extract from description:

Each output profile is delimited by brackets. It contains several output directives (whose syntax is similar to sway-output(5)). A profile will be enabled if all of the listed outputs are connected.

sway-output config syntax:

output <name> position|pos <X> <Y>

kanshi syntax:

output <name> position 0,0

There is no comma in position coordinates in sway-output configuration.

Expected behavior: there shouldn't be a comma in position specification