feat: use different .dtfiles config setup
This commit is contained in:
27
.config/dunst/scripts/actions
Executable file
27
.config/dunst/scripts/actions
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
reply_action () {
|
||||
|
||||
echo "Eyyy"
|
||||
|
||||
}
|
||||
forward_action () {
|
||||
echo "Sup"
|
||||
}
|
||||
handle_dismiss () {
|
||||
echo "Dismiss"
|
||||
}
|
||||
|
||||
ACTION=$(dunstify --action="default,Reply" --action="forwardAction,Forward" "Message Received")
|
||||
|
||||
case "$ACTION" in
|
||||
"default")
|
||||
reply_action
|
||||
;;
|
||||
"forwardAction")
|
||||
forward_action
|
||||
;;
|
||||
"2")
|
||||
handle_dismiss
|
||||
;;
|
||||
esac
|
2
.config/dunst/scripts/handle-music
Executable file
2
.config/dunst/scripts/handle-music
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
dunstify --icon=music "$(echo $DUNST_BODY | sed 's/: Tippen.*//g')"
|
12
.config/dunst/scripts/test
Executable file
12
.config/dunst/scripts/test
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
# Start
|
||||
[ "$(dunstify --replace '999999999' --action 'cal,more' "$(date +'%I:%M %p')" "$(swaymsg --raw --type get_workspaces | jq --raw-output '.[] | "\(.focused)\(.name)\(.focused)"' | sed -e 's/^false//g' -e 's/false$//g' -e 's/^true/<u>/g' -e 's/true$/<\/u>/g' | tr '\n' ' ')")" = 'cal' ] && {
|
||||
DAY=$(date +'%e')
|
||||
|
||||
dunstify 'Calendar' "$(cal | sed -e "s/$DAY\b/<u>$DAY<\/u>/g")"
|
||||
}
|
||||
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user