some shit

This commit is contained in:
2022-05-13 19:19:05 +02:00
parent d5e4ecdf23
commit 9f61e2bedc
17 changed files with 946 additions and 38 deletions

12
configs/dunst/scripts/test Executable file
View 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