summaryrefslogtreecommitdiffstats
path: root/system/snapscreenshot/snapscreenshot.cur
diff options
context:
space:
mode:
Diffstat (limited to 'system/snapscreenshot/snapscreenshot.cur')
-rw-r--r--system/snapscreenshot/snapscreenshot.cur22
1 files changed, 0 insertions, 22 deletions
diff --git a/system/snapscreenshot/snapscreenshot.cur b/system/snapscreenshot/snapscreenshot.cur
deleted file mode 100644
index b674c0a8e0..0000000000
--- a/system/snapscreenshot/snapscreenshot.cur
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# 20180704 bkw: wrapper for snapscreenshot, determines the current tty
-# and takes a screenshot of it by calling snapscreenshot with the
-# appropriate arguments.
-
-# I tried to make this work under X. You can find out which tty X is using
-# with: xprop -root | grep ^XFree86_VT | cut -d' ' -f3
-# However snapscreenshot itself fails because that console will be in
-# graphics mode (no text to read from /dev/vcs$TTY, so it'd give a
-# blank image).
-
-TTY="$( tty )"
-case "$TTY" in
- /dev/tty?) TTY="$( echo $TTY | cut -dy -f2 )"
- ;;
- *) echo "You must run this from a console login session, not e.g. X or ssh" 1>&2
- exit 1
- ;;
-esac
-
-exec snapscreenshot --firstwin "$TTY" -c1 -x1 "$@"