nix is now the master #1
@ -2,4 +2,4 @@
|
|||||||
git add -A
|
git add -A
|
||||||
|
|
||||||
git commit -m "$(curl http://whatthecommit.com/index.txt)"
|
git commit -m "$(curl http://whatthecommit.com/index.txt)"
|
||||||
git push
|
|
||||||
|
20
.local/share/scripts/save-screenshot.sh
Executable file
20
.local/share/scripts/save-screenshot.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Make a screenshots and save it in ~/pictures/screenshots
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SCRIPT=$(readlink -f "$0")
|
||||||
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||||
|
|
||||||
|
SCREENSHOT_DIR="$HOME/pictures/screenshots"
|
||||||
|
|
||||||
|
screenshotFile=$($SCRIPTPATH/take-screenshot.sh)
|
||||||
|
|
||||||
|
mkdir -p "$SCREENSHOT_DIR"
|
||||||
|
|
||||||
|
mv "$screenshotFile" "$SCREENSHOT_DIR"
|
||||||
|
rm -rf "$(dirname $screenshotFile)"
|
||||||
|
|
||||||
|
printf "%s\n" "$SCREENSHOT_DIR/$(basename $screenshotFile)"
|
||||||
|
|
@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
# makes a selection screenshot and prints out the filename in a date format
|
|
||||||
# not intended for direct use. Dosn't remove tmp dir
|
# Make a selection of the screen and take a screenshot. Save it to tmp and print its path.
|
||||||
# required packages:
|
|
||||||
# - deepin-screenshot
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user