Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
22
dotfile/.config/xfce4/labwc/screenshot-part.sh
Executable file
22
dotfile/.config/xfce4/labwc/screenshot-part.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p ~/resource/screenshot
|
||||
TIMESTAMP=$(date '+%Y-%m-%d_%H-%M-%S')
|
||||
FILENAME="$HOME/resource/screenshot/screenshot_${TIMESTAMP}.png"
|
||||
|
||||
grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | \
|
||||
satty --filename - \
|
||||
--fullscreen \
|
||||
--initial-tool crop \
|
||||
--output-filename "$FILENAME" \
|
||||
--disable-notifications \
|
||||
--early-exit
|
||||
|
||||
if [ -f "$FILENAME" ]; then
|
||||
wl-copy < "$FILENAME"
|
||||
notify-send "Screenshot" \
|
||||
"Saved & copied:\n$(basename "$FILENAME")\nGoshujin-sama!" \
|
||||
-i "$FILENAME"
|
||||
else
|
||||
notify-send "Screenshot" "Not saved!" -u critical
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue