File: check-screenshot

package info (click to toggle)
phosh 0.51.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 9,620 kB
  • sloc: ansic: 81,727; xml: 3,903; python: 502; sh: 456; makefile: 34; lisp: 22; javascript: 6
file content (14 lines) | stat: -rwxr-xr-x 308 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

x=${1:-10}
y=${2:-10}
w=${3:-100}
h=${3:-100}

gdbus call --session \
            --dest "org.gnome.Shell.Screenshot" \
            --object-path "/org/gnome/Shell/Screenshot" \
            --method "org.gnome.Shell.Screenshot.ScreenshotArea" \
	    $x $y $w $h true "$PWD/screenshot.png"