xscreenruler
1.0.0
Простая линейка экрана для x11. Только xlib в зависимости!
Чтобы построить, используйте make . GNU Make и BSD Make были протестированы.
Сборка чтит стандартные переменные. На некоторых платформах вам придется пройти дополнительный включение библиотечных каталогов. Например, на OpenBSD вы бы сделали:
CPPFLAGS=-I/usr/X11R6/include LDFLAGS=-L/usr/X11R6/lib make
./xscreenruler [-h] [-fg <color>] [-bg <color>]
-h - this message
-fg <color> - set foreground (i.e. text) color (e.g. yellow, white).
-bg <color> - set background color (e.g. black, red).
Where <color> is either:
An X11 color name (e.g. 'red').
A hex colour code (e.g. '#ff0000')
Keybindings:
Measurement edge:
shift+n - north
shift+s - south
shift+w - west
shift+e - east
Measurement direction:
shift+r - invert(default from left-to-right to right-to-left, from top-to-bottom to bottom-to-top)
Ruler size:
ctrl+d - default (150px) size
ctrl+s - small (375px) size
ctrl+m - medium (525px) size
ctrl+t - tall (675px) size
ctrl+f - fullscreen
Movement
arrows (up, down, left, right)
ctrl+arrows - move faster
Misc:
ESC or ctrl+q - exit
