#!/usr/bin/env sh

. "$HOME/.config/environment"

numlockx on

setxkbmap de
setxkbmap -option caps:none

_autostart()
{
	### wait for audio
	start-audio pipewire

	### wait for internet
	wait_for_service "network-online.target"

	pass x
	(pass notes/keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) &
	pass x && sleep 5

	autostart-manage start
}

_autostart &