summaryrefslogtreecommitdiff
path: root/gui-wm/wayfire/files/wayfire-welcome
blob: 20e06feb36cd6a75e9b9875dde7386c430f71891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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"