25 lines
662 B
Fish
Executable file
25 lines
662 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
# TODO: some kind of better time-based or last-awakened heuristic to determine
|
|
# whether or not this shows
|
|
|
|
set -l hours 08 09 10
|
|
if ! contains (date +%H) $hours
|
|
echo "Not sending notification since it isn't the morning" >>&2
|
|
exit 1
|
|
end
|
|
|
|
notify-send \
|
|
--expire-time=0 \
|
|
--urgency critical \
|
|
"Good morning!" \
|
|
"Activate this notification (click it or Super+Shift+Space) to run the script. Dismiss (Super+Ctrl+Space) to ignore." \
|
|
--action=default=Activate \
|
|
| rg default \
|
|
&& \
|
|
if set -q HYPRLAND_INSTANCE_SIGNATURE
|
|
hyprctl dispatch exec [float] wezterm start good-morning
|
|
else
|
|
sway exec 'floating-term good-morning'
|
|
end
|