#!/usr/bin/env sh

. "$HOME/.config/environment"

numlockx on

setxkbmap de
setxkbmap -option caps:none
setxkbmap -option compose:menu

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

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

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

	autoinstall graphical
	autostart-manage start
}

_autostart &