add eww config
This commit is contained in:
parent
fac0e15a9e
commit
85dde2e9aa
34 changed files with 2112 additions and 0 deletions
eww/scripts
34
eww/scripts/screensht
Executable file
34
eww/scripts/screensht
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
TMP_PATH="$HOME/.cache/eww/tmp-screenshot.png"
|
||||
|
||||
report () {
|
||||
xclip -selection clipboard -target image/png -i $TMP_PATH
|
||||
notify-send -i $TMP_PATH -a Screenshot "Screenshot" "Screenshot copied successfully"
|
||||
}
|
||||
|
||||
recollect () {
|
||||
rm $TMP_PATH
|
||||
}
|
||||
|
||||
full () {
|
||||
maim $TMP_PATH
|
||||
}
|
||||
|
||||
area () {
|
||||
maim --select $TMP_PATH
|
||||
}
|
||||
|
||||
if [[ $1 == "full" ]]; then
|
||||
full
|
||||
report
|
||||
recollect
|
||||
fi
|
||||
|
||||
if [[ $1 == "area" ]]; then
|
||||
area
|
||||
report
|
||||
recollect
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue