add startup script

Amolith created

Change summary

dot_local/bin/executable_startup-i3.tmpl | 45 ++++++++++++++++++++++++++
1 file changed, 45 insertions(+)

Detailed changes

dot_local/bin/executable_startup-i3.tmpl 🔗

@@ -0,0 +1,45 @@
+#!/bin/sh -x
+autocutsel -fork
+autocutsel -fork -selection PRIMARY
+
+# Start headless applications
+i3-msg exec "polybar top"
+i3-msg exec "polybar bottom"
+i3-msg exec "feh --bg-scale ~/.wallpaper.png"
+i3-msg exec "blueman-applet"
+i3-msg exec "mpd ~/.config/mpd/mpd.conf"
+i3-msg exec "redshift"
+i3-msg exec "mpdscribble"
+i3-msg exec "dunst"
+i3-msg exec "playerctl pause"
+i3-msg exec "mpDris2"
+i3-msg exec "setxkbmap -option compose:ralt"
+{{- if eq .chezmoi.hostname "angmar" }}
+i3-msg exec "java -cp {{ .chezmoi.homeDir }}/languagetool/languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --allow-origin '*'"
+{{- end }}
+i3-msg exec "gotify-desktop"
+i3-msg exec "unclutter --ignore-scrolling --start-hidden"
+sleep 1
+
+i3-msg exec "firefox-developer-edition"
+sleep 1
+i3-msg workspace 2
+i3-msg exec "keepassxc"
+sleep 1
+i3-msg workspace 6
+{{- if eq .chezmoi.hostname "angmar" }}
+i3-msg exec "telegram-desktop"
+i3-msg exec "signal-desktop"
+i3-msg exec "mattermost-desktop"
+i3-msg exec "cd ~/repos/arbor/sprig && git pull && go run ."
+i3-msg exec "hydrus-client"
+{{- end }}
+i3-msg exec "gajim"
+i3-msg exec "st zsh -c 'lxc exec pers2:weechat -- tmux a'"
+i3-msg exec "emacs --daemon"
+i3-msg workspace 10
+i3-msg exec "st zsh -c 'neomutt'"
+sleep 2
+i3-msg workspace 2
+
+exit