. $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 #_autostart_portalo() #{ # #xrandr --output DVI-D-0 --left-of HDMI-A-0 # #xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144 #} # #_autostart_laptop() #{ # #xrandr --output eDP-1 --auto # #xrandr --output HDMI-2 --left-of eDP-1 --auto #} 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_webapps() { syncthing -no-browser & /usr/lib/kdeconnectd & #transmission-gtk --minimized & qbittorrent & } _autostart_audioapps() { #steam-runtime -silent -tcp & flatpak run com.valvesoftware.Steam -silent & qutebrowser & mopidy & } _autostart_defaults() { 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 & } _autostart() { _autostart_defaults & ### wait for internet wait_for_service "network-online.target" _autostart_webapps & ### wait for audio wait_for_service "--user pulseaudio.socket" start_jack _autostart_audioapps & _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