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 -- "telegram-desktop"
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 "playerctl pause"
31 i3-msg exec "setxkbmap -option compose:ralt"
32 i3-msg exec "xset r rate 250 50"
33 i3-msg exec "picom"
34 i3-msg exec "solaar -w hide"
35 i3-msg exec "unclutter --ignore-scrolling --start-hidden"
36 i3-msg exec "emacs --daemon"
37 i3-msg exec "xrdb -load ~/.Xresources"
38 i3-msg exec "xfsettingsd"
39 i3-msg exec "dbus-update-activation-environment --all"
40 {{- if eq .chezmoi.hostname "angmar" }}
41 i3-msg exec "caddy start --adapter caddyfile --config ~/Bulk/Media/Caddyfile"
42 i3-msg workspace 7
43 i3-msg workspace 6
44 i3-msg exec "telegram-desktop"
45 i3-msg workspace 1
46 i3-msg exec "firefox-developer-edition"
47 i3-msg exec "xrandr -r 165.00"
48 {{- end }}
49 xsetwacom set "Wacom Intuos BT S Pad pad" Button 1 "key del"
50 xsetwacom set "Wacom Intuos BT S Pad pad" Button 3 "key +ctrl z -ctrl"
51 xsetwacom set "Wacom Intuos BT S Pad pad" Button 8 "key +ctrl +shift z -shift -ctrl"
52 sleep 5
53 i3-msg exec "nextcloud"
54fi
55
56exit