Skip to content

andwu137/preztool

Repository files navigation

PrezTool:

Made this tool so that I could draw and zoom on my screen, during live meetings. Inspired by zoomit (Microsoft Sysinternals).

Supported Platforms:

  • linux
    • X11 (tested on fedora)
    • wayland
  • windows 10 and 11 (very unstable, I don't have a windows machine)

Features:

  • Zooming
    • Zoom in/out: mouse-scroll
    • Reset zoom: z
  • Translating
    • Drag moving the image: mouse-2
  • Drawing on the screen
    • Drawing: mouse-1
    • Reset drawing: c
    • Change brush color: arrow-left | arrow-right
    • Undo drawing: u
    • Toggle eraser: e
    • Display brush preview
  • Mirror Image
    • Mirror Horizontal: x
    • Mirror Vertical: v
  • Highlight
    • Toggle h
  • Flashlight
    • Toggle: f
    • Change Size: s + mouse-scroll
  • Rotation
    • Rotate Clockwise: r
    • Rotate Counter-Clockwise: shift + r
  • Screen Selection
    • Initialization:
      • Display
      • Window
      • Cropped
    • Crop the screen
  • Recapture Screen
    • Take a screenshot of desktop and reload the app background

Dynamic Build:

Prerequisites:

  • gcc
  • make
  • raylib development library

raylib

  • fedora: dnf install raylib-devel

Commands:

git clone https://gitlab.com/Uangn/preztool.git
cd preztool
make

Static Build:

Prerequisites:

  • gcc
  • make

Commands:

git clone --recurse-submodules https://gitlab.com/Uangn/preztool.git
cd preztool
make static

If you forgot to --recurse-submodules when cloning initially

cd preztool
git submodule update --init --recursive

Run:

If in that directory:

./preztool

If outside that directory:

You could make a script that moves over to that directory

Linux (sh)

Make a file with the contents below. Place it in the system path. Make it executable (optional).

#!/bin/sh
cd DIRECTORY_OF_PREZTOOL
./preztool

If executable:

./preztool_run.sh

If not executable:

sh preztool_run.sh