101 lines
		
	
	
	
		
			1.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			101 lines
		
	
	
	
		
			1.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| . $HOME/.config/environment
 | |
| 
 | |
| xcompmgr -n -f -D3 &
 | |
| numlockx on
 | |
| 
 | |
| setxkbmap de
 | |
| setxkbmap -option caps:none
 | |
| 
 | |
| if [ -x "$(command -v gpgconf)" ]
 | |
| then
 | |
|     export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
 | |
|     gpgconf --launch gpg-agent
 | |
|     gpg2 --card-status > /dev/null
 | |
| fi
 | |
| 
 | |
| network_wait_pid=1
 | |
| audio_wait_pid=1
 | |
| 
 | |
| 
 | |
| wait_for_service()
 | |
| {
 | |
|     until systemctl is-active --quiet $1
 | |
|     do
 | |
|         sleep 0.5
 | |
|     done
 | |
| }
 | |
| 
 | |
| _autostart_workspace_voip()
 | |
| {
 | |
|     #/opt/teamspeak5/TeamSpeak &
 | |
|     #sleep 2
 | |
|     #alacritty --class "mail" --command sh -c "neomutt" &
 | |
|     teamspeak3 &
 | |
|     sleep 1
 | |
|     element-desktop &
 | |
|     sleep 1
 | |
|     discord &
 | |
| }
 | |
| 
 | |
| _autostart_workspace_messenger()
 | |
| {
 | |
|     signal-desktop &
 | |
|     sleep 1
 | |
|     thunderbird &
 | |
| }
 | |
| 
 | |
| _autostart_apps()
 | |
| {
 | |
|     dunst &
 | |
|     ckb-next --background &
 | |
|     parcellite &
 | |
|     solaar --window hide &
 | |
| 
 | |
|     sxhkd &
 | |
| 
 | |
|     conky --daemonize --config="$HOME/.config/conky/clock.conf"
 | |
|     conky --daemonize --config="$HOME/.config/conky/system.conf"
 | |
|     conky --daemonize --config="$HOME/.config/conky/archlinux-updates.conf"
 | |
|     feh --bg-fill $XDG_PICTURES_DIR/wallpaper/active_wallpaper
 | |
| 
 | |
|     #actkbd --grab --config ~/.config/actkbd/actkbd.conf --device /dev/input/by-id/usb-Dell_Dell_USB_Keyboard-event-kbd &
 | |
| 
 | |
|     wait $network_wait_pid
 | |
| 
 | |
|     syncthing -no-browser &
 | |
|     /usr/lib/kdeconnectd &
 | |
|     #transmission-gtk --minimized &
 | |
|     qbittorrent &
 | |
| 
 | |
|     wait $audio_wait_pid
 | |
| 
 | |
|     #steam-runtime -silent -tcp &
 | |
|     flatpak run com.valvesoftware.Steam -silent &
 | |
|     qutebrowser &
 | |
| 
 | |
|     mopidy &
 | |
| }
 | |
| 
 | |
| _autostart()
 | |
| {
 | |
|     ### wait for audio
 | |
|     start_jack
 | |
| 
 | |
|     ### wait for internet
 | |
|     wait_for_service "network-online.target"
 | |
| 
 | |
|     _autostart_apps &
 | |
|     _autostart_workspace_voip &
 | |
|     _autostart_workspace_messenger &
 | |
| }
 | |
| 
 | |
| #host_name=$(cat /proc/sys/kernel/hostname)
 | |
| #if [[ $host_name == "portalo" ]]; then
 | |
| #    _autostart_portalo &
 | |
| #elif [[ $host_name == *"laptop"* ]]; then
 | |
| #    _autostart_laptop &
 | |
| #fi
 | |
| 
 | |
| _autostart &
 | |
| 
 | |
| # vim: ft=sh
 |