update dotfile
This commit is contained in:
parent
b6da41ad5b
commit
31560f486a
43 changed files with 343 additions and 3648 deletions
16
dotfile/.config/screenshot-script/wayland-screenshot-full.sh
Executable file
16
dotfile/.config/screenshot-script/wayland-screenshot-full.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p ~/resource/screenshot
|
||||
TIMESTAMP=$(date '+%Y-%m-%d_%H-%M-%S')
|
||||
FILENAME="$HOME/resource/screenshot/screenshot_${TIMESTAMP}.png"
|
||||
|
||||
grim "$FILENAME"
|
||||
|
||||
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