## Set keyboard layout
setxkbmap -layout es &

## Start compositor
compton -cCb --config ~/.config/compton.conf &
#
## Set background image
nitrogen --restore &

## Turn off/on System Beep
set b off &

## Xorg settings
xrdb ~/.Xresources &

## Clipboard manager
(sleep 2; anamnesis --start) &

## Start desktop visualizer (eyecandy)
(sleep 3; conky) &

## Bluelight filter
(sleep 4; redshift) &

## Bar with invisible tray
(sleep 2; stalonetray --dockapp-mode simple --kludges force_icons_size -i 15) &
(sleep 3; polybar main) &

## Urxvt daemon
urxvtd -q -f -o &

## Create musicpd temporary log
touch /tmp/mpd-log &

## KeepassXC
(sleep 2; bash -c "secret-tool lookup 'keepass' 'login' | keepassxc --pw-stdin ~/Nextcloud/Documents/IT/MDP.kbdx") &

## GPG
(sleep 3; bash -c "secret-tool lookup 'gpg' 'login' | gpg --no-tty --pinentry-mode loopback --passphrase-fd 0 -d ~/.password-store/mail/uni.gpg") &

## Nextcloud
(sleep 5; nextcloud) &

## Spacemacs daemon
(sleep 7; emacs --daemon=instance1) &

## Imap IDLE
(sleep 10; imapnotify -c ~/.config/imapnotify/gmail.js) &
(sleep 10; imapnotify -c ~/.config/imapnotify/uni.js) &
