added sway keybind for screenshot select script and disabled history_ignore in dunst config, something not working properly there
This commit is contained in:
parent
273db9af59
commit
625c2d0679
3 changed files with 31 additions and 6 deletions
23
Scripts/screenshot-select.sh
Executable file
23
Scripts/screenshot-select.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
# take screenshot of selection and save to
|
||||
# default screenshots directory
|
||||
|
||||
# set default screenshots directory
|
||||
dir="/home/emge/Pictures/screenshots/"
|
||||
|
||||
# set current date
|
||||
curDate=$(date +"%Y-%m-%d")
|
||||
|
||||
i="1"
|
||||
file=$dir$curDate"_"$i".png"
|
||||
|
||||
while [ -f $file ] ;
|
||||
do
|
||||
i=$((i + "1"))
|
||||
file=$dir$curDate"_"$i".png"
|
||||
done
|
||||
|
||||
grim -g "$(slurp)" $file
|
||||
|
||||
# show screenshot notification
|
||||
dunstify -u low -i accessories-screenshot -h string:x-dunst-stack-tag:Screenshot "Screenshot saved:" $file
|
Loading…
Add table
Add a link
Reference in a new issue