executable_startup.tmpl

 1#!/bin/bash
 2
 3if [[ -n $WAYLAND_DISPLAY ]]; then
 4	hyprctl -i 0 dispatch exec -- "waybar"
 5	hyprctl -i 0 dispatch exec -- "blueman-applet"
 6	hyprctl -i 0 dispatch exec -- "gammastep"
 7	hyprctl -i 0 dispatch exec -- "/usr/lib/geoclue-2.0/demos/agent"
 8	hyprctl -i 0 dispatch exec -- "dunst"
 9	hyprctl -i 0 dispatch exec -- "playerctl pause"
10	hyprctl -i 0 dispatch exec -- "solaar -w hide"
11	hyprctl -i 0 dispatch exec -- "emacs --daemon"
12	hyprctl -i 0 dispatch exec -- "xrdb -load ~/.Xresources"
13	hyprctl -i 0 dispatch exec -- "xfsettingsd"
14	hyprctl -i 0 dispatch exec -- "dbus-update-activation-environment --all"
15	hyprctl -i 0 dispatch exec -- "kdeconnect-indicator"
16	{{- if eq .chezmoi.hostname "angmar" }}
17	hyprctl -i 0 dispatch exec -- "caddy start --adapter caddyfile --config ~/Bulk/Media/Caddyfile"
18	hyprctl -i 0 dispatch exec -- "firefox-developer-edition"
19	{{- end }}
20	sleep 5
21	hyprctl dispatch exec -- "nextcloud"
22else
23	i3-msg exec "polybar top"
24	i3-msg exec "polybar bottom"
25	i3-msg exec "feh --bg-scale ~/.wallpaper.png"
26	i3-msg exec "blueman-applet"
27	i3-msg exec "redshift"
28	i3-msg exec "/usr/lib/geoclue-2.0/demos/agent"
29	i3-msg exec "dunst"
30	i3-msg exec "mpDris2"
31	i3-msg exec "playerctl pause"
32	i3-msg exec "setxkbmap -option compose:ralt"
33	i3-msg exec "xset r rate 250 50"
34	i3-msg exec "picom"
35	i3-msg exec "solaar -w hide"
36	i3-msg exec "unclutter --ignore-scrolling --start-hidden"
37	i3-msg exec "emacs --daemon"
38	i3-msg exec "xrdb -load ~/.Xresources"
39	i3-msg exec "xfsettingsd"
40	i3-msg exec "dbus-update-activation-environment --all"
41	i3-msg exec "kdeconnect-indicator"
42	{{- if eq .chezmoi.hostname "angmar" }}
43	i3-msg exec "caddy start --adapter caddyfile --config ~/Bulk/Media/Caddyfile"
44	i3-msg workspace 7
45	i3-msg workspace 6
46	i3-msg workspace 1
47	i3-msg exec "firefox-developer-edition"
48	i3-msg exec "xrandr -r 165.00"
49	i3-msg exec "ntfyDesktop"
50	i3-msg exec "tuios new i3"
51	i3-msg exec "tuios tape exec ~/.local/share/tuios/plexus.tape -s i3"
52	{{- end }}
53	xsetwacom set "Wacom Intuos BT S Pad pad" Button 1 "key del"
54	xsetwacom set "Wacom Intuos BT S Pad pad" Button 3 "key +ctrl z -ctrl"
55	xsetwacom set "Wacom Intuos BT S Pad pad" Button 8 "key +ctrl +shift z -shift -ctrl"
56	sleep 5
57	i3-msg exec "nextcloud"
58fi
59
60exit