4 releases

new 0.2.0 Nov 24, 2024
0.1.2 Oct 4, 2022
0.1.1 Mar 27, 2022
0.1.0 Mar 27, 2022

#570 in GUI

Download history 30/week @ 2024-09-22 6/week @ 2024-09-29

196 downloads per month

GPL-3.0-or-later

1.5MB
1.5K SLoC

rlr: a pixel screen ruler

./rlr.png

Rust + GTK interactive pixel screen ruler with protractor mode.

demo

./demo.png

./demo.gif

./demo_move.gif

use

  • Quit with q or Ctrl-Q.
  • Click to drag.
  • Press r to rotate 90 degrees. Press <Shift>r to flip (mirror) the marks without rotation.
  • Press p to toggle protractor mode.
  • Press f or <Space> to toggle freezing the measurements.
  • Press Control_L and drag the angle base side to rotate it in protractor mode.
  • Press Control_L continuously to disable precision (measurements will snap to nearest integer).
  • Press + to increase size.
  • Press - to decrease size.
  • Press Up, Down, Left, Right to move window position by 10 pixels. Also hold down Control_L to move by 1 pixel.

build

cargo build --release

packaging

To help packagers in OSes that support the XDG Desktop standards, a .desktop app launcher filer, an application icon and a symbolic application icon are included.

  • rlr.desktop should be installed in any of the following: /usr/share/applications/, /usr/local/share/applications/ or $HOME/.local/share/applications/.
  • rlr.svg should be installed in /usr/share/icons/hicolor/scalable/apps/rlr.svg.
  • rlr.symbolic.svg should be installed in /usr/share/icons/hicolor/symbolic/apps/rlr.svg.

The files have been contributed by https://github.com/somepaulo.

Dependencies

~17MB
~402K SLoC