Skip to content

randrctl encloses some values in quotation marks, but not all #32

@drws

Description

@drws

This is a sample randrctl show output:

name: current
outputs:
  VGA1:
    crtc: 0
    mode: 1920x1200
    panning: '0x0'
    pos: '0x0'
    rate: '59.95'
    rotate: normal
    scale: 1x1
primary: VGA1

Currently, the quotation marks are shown more or less randomly. I'd expect they followed some kind of order, such as:

  • every parameter value is quoted (currently 4 missing in this case)
  • only pure numerical values (ints and floats) aren't quoted (currently 4 missing and one redundant in rate)
  • only strings containing 2D numerical values are quoted (quotes missing in mode and scale, while again being redundant in rate)
  • no quotes are necessary (currently 3 redundant)

I vote for the last option since quotes aren't necessary to reliably parse such output and they also don't simplify screen reading, actually the opposite.

I know randrctl is currently not actively developed, but I'm still collecting ideas here for anyone that picks it up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions