feat: added notifications & daemons + simplified naming

notifications are for `dunst` a notification handler for my setup
I added volume, charging, battery, time, and brightness notifications
This commit is contained in:
devaine 2025-04-26 10:22:34 -05:00
commit 9b374bb70d
Signed by untrusted user who does not match committer: devaine
GPG key ID: 954B1DCAC6FF84EE
11 changed files with 281 additions and 15 deletions

41
screenshot Executable file
View file

@ -0,0 +1,41 @@
#!/bin/bash
## Variables
declare -r time=$(date --iso-8601=seconds)
while (($# > 0)); do
case $1 in
-s)
REGION=yes
shift
;;
-c)
CURSOR=yes
shift
;;
*)
if [ -z "$FILENAME" ]; then
FILENAME="$1/$time.png"
shift
else
echo "wrong format"
exit 1
fi
;;
esac
done
OPTS=()
if [ -n "$REGION" ]; then
OPTS+=("-g $(slurp)")
if [ -n "$CURSOR" ]; then
OPTS+=("-c")
fi
fi
grim "${OPTS[@]}" "$FILENAME"
# https://github.com/bugaevc/wl-clipboard/issues/198 lifesaver
wl-copy --type image/png <"$FILENAME"