Want to show your appreciation and help with hosting costs? Support us on Patreon!
Submitted on September 29, 2015 at 11:49 AM

Section 1 (Text)

grabscreen
-------------------------------------
#!/bin/sh

if [ "$1" = "--help" ]; then
   echo "$0 [/path/to/snapshot.png]"
   exit 0
fi

dbus-send --type=method_call --dest=org.nemomobile.lipstick /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot string:"$1"

----------------------------------------

dbus-send --session --print-reply --dest=org.nemomobile.lipstick /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot string:"/home/nemo/Pictures/Screenshot-$(date +%y-%m-%d-%H-%M-%S).png"
--------------------------