Hello there! You are currently visiting gopherspace through a
proxy. To learn more about gopher and how to browse it, read this.
______________________________________________________________________

#!/bin/sh

# Uploads a screenshot of the currently focused window using
# sharenix.
#
# Requires https://github.com/Francesco149/sharenix

# not sleeping can cause glitchyness
sleep 0.2s

# take a screenshot using gnome-screenshot
sharenixtmp=$(mktemp /tmp/nicememe.XXXXXXXXXXXXXXXXXXX.png)
gnome-screenshot -w -f $sharenixtmp

# check file size (0b means that gnome-screenshot was cancelled)
sharenixtmpsize=$(wc -c <"$sharenixtmp")
if [ $sharenixtmpsize != 0 ]; then
sharenix -n $sharenixtmp
fi