GiftZwergrapper GiftZwergrapper - 6 months ago 35
Bash Question

Is there something like a screen magnifier on linux debian?

I wonder if there is there something like a screen magnifier on linux debian?
Or if one can write such a screen magnifier.
Because I don't want to use packages with many dependencies.

Answer

I found a solution myself with writing a shell script for this purpose, for all interested, this script only depends on feh and scrot:

#!/bin/sh
# Written by Stefan Völkl

if ! hash scrot 2>/dev/null && hash feh 2>/dev/null
then
  echo "You need to have scrot and feh installed"
  exit 1
fi

IMAGE="$(mktemp --tmpdir="/tmp" magnified_XXXXX.png)"
trap 'rm "$IMAGE"' EXIT

scrot "$IMAGE"
feh --borderless --image-bg black --fullscreen "$IMAGE"