add eww config

This commit is contained in:
matt1432 2023-05-28 18:05:51 -04:00
commit 85dde2e9aa
34 changed files with 2112 additions and 0 deletions
eww/scripts

34
eww/scripts/screensht Executable file
View 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