#!/bin/bash if [[ -n $WAYLAND_DISPLAY ]]; then hyprctl -i 0 dispatch exec -- "waybar" hyprctl -i 0 dispatch exec -- "blueman-applet" hyprctl -i 0 dispatch exec -- "gammastep" hyprctl -i 0 dispatch exec -- "/usr/lib/geoclue-2.0/demos/agent" hyprctl -i 0 dispatch exec -- "dunst" hyprctl -i 0 dispatch exec -- "playerctl pause" hyprctl -i 0 dispatch exec -- "solaar -w hide" hyprctl -i 0 dispatch exec -- "emacs --daemon" hyprctl -i 0 dispatch exec -- "xrdb -load ~/.Xresources" hyprctl -i 0 dispatch exec -- "xfsettingsd" hyprctl -i 0 dispatch exec -- "dbus-update-activation-environment --all" hyprctl -i 0 dispatch exec -- "PYTHON_KEYRING_BACKEND=keyring.backends.SecretService.Keyring gajim" hyprctl -i 0 dispatch exec -- "kdeconnect-indicator" {{- if eq .chezmoi.hostname "angmar" }} hyprctl -i 0 dispatch exec -- "caddy start --adapter caddyfile --config ~/Bulk/Media/Caddyfile" hyprctl -i 0 dispatch exec -- "firefox-developer-edition" {{- end }} sleep 5 hyprctl dispatch exec -- "nextcloud" else 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 "redshift" i3-msg exec "/usr/lib/geoclue-2.0/demos/agent" i3-msg exec "dunst" i3-msg exec "playerctl pause" i3-msg exec "setxkbmap -option compose:ralt" i3-msg exec "xset r rate 250 50" i3-msg exec "picom" i3-msg exec "solaar -w hide" i3-msg exec "unclutter --ignore-scrolling --start-hidden" i3-msg exec "emacs --daemon" i3-msg exec "xrdb -load ~/.Xresources" i3-msg exec "xfsettingsd" i3-msg exec "dbus-update-activation-environment --all" i3-msg exec "kdeconnect-indicator" {{- if eq .chezmoi.hostname "angmar" }} i3-msg exec "caddy start --adapter caddyfile --config ~/Bulk/Media/Caddyfile" i3-msg workspace 7 i3-msg workspace 6 i3-msg exec "PYTHON_KEYRING_BACKEND=keyring.backends.SecretService.Keyring gajim" i3-msg workspace 1 i3-msg exec "firefox-developer-edition" i3-msg exec "xrandr -r 165.00" {{- end }} xsetwacom set "Wacom Intuos BT S Pad pad" Button 1 "key del" xsetwacom set "Wacom Intuos BT S Pad pad" Button 3 "key +ctrl z -ctrl" xsetwacom set "Wacom Intuos BT S Pad pad" Button 8 "key +ctrl +shift z -shift -ctrl" sleep 5 i3-msg exec "nextcloud" fi exit