#!/bin/sh # One notification on an account's first login: where the shortcuts, the menu # and the dock are. Started from the shipped wayfire.ini [autostart]; later # logins find the marker and do nothing. state="${XDG_STATE_HOME:-$HOME/.local/state}/wayfire" [ -e "$state/welcomed" ] && exit 0 command -v notify-send > /dev/null || exit 0 # The desktop session starts the notification service; wait for it, and for the # panel, which shows a card only for notifications that arrive after it started. gdbus wait --session --timeout 30 org.freedesktop.Notifications 2> /dev/null || exit 0 sleep 8 notify-send -a Hedronfire -t 15000 "Welcome" \ "Super+K shows every shortcut. Super+Space opens the menu. The dock waits at the bottom edge." && mkdir -p "$state" && touch "$state/welcomed"