#!/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 \ --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 \ && hyprctl dispatch exec [float] wezterm start good-morning