feat(dunst): add dunst
This commit is contained in:
parent
c3cad04ec3
commit
b872a68632
15 changed files with 489 additions and 1 deletions
38
hosts/python/users/configs/river/scripts/screenshot.sh
Executable file
38
hosts/python/users/configs/river/scripts/screenshot.sh
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "$HOME/.config/user-dirs.dirs"
|
||||
|
||||
case "$1" in
|
||||
"copy")
|
||||
GEOM="$(slurp)"
|
||||
if [ "$GEOM" == "" ]; then
|
||||
grim - | wl-copy
|
||||
else
|
||||
grim -g "$GEOM" - | wl-copy
|
||||
fi
|
||||
echo "Screenshot copied."
|
||||
;;
|
||||
"save")
|
||||
GEOM="$(slurp)"
|
||||
if [ "$GEOM" == "" ]; then
|
||||
grim "$OUT"
|
||||
else
|
||||
grim -g "$GEOM" "$OUT"
|
||||
fi
|
||||
echo "Screenshot saved. $OUT"
|
||||
;;
|
||||
"savecopy")
|
||||
GEOM="$(slurp)"
|
||||
if [ "$GEOM" == "" ]; then
|
||||
grim - | wl-copy
|
||||
else
|
||||
grim -g "$GEOM" - | wl-copy
|
||||
fi
|
||||
wl-copy <"$OUT"
|
||||
echo "Screenshot saved and copied. $OUT"
|
||||
;;
|
||||
*)
|
||||
echo "Not done!"
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue