summaryrefslogtreecommitdiff
path: root/src/wasp-setup.el
blob: c99075bb3b11af2391c655a024ad05e6ef953e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
;;; wasp --- Stream setup -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:

(require 'eyebrowse)
(require 'wasp-utils)
(require 'wasp-bus)
(require 'wasp-bus-binary)
(require 'wasp-db)
(require 'wasp-chat)
(require 'wasp-twitch)

(defun w/setup-stream-layout ()
  "Configure windows for streaming without buffers."
  (interactive)
  (eyebrowse-switch-to-window-config 0)
  (eyebrowse-close-window-config)
  (eyebrowse-switch-to-window-config 0)
  (split-window-horizontally -70)
  (split-window-vertically -10)
  (enlarge-window 2)
  (windmove-down)
  (split-window-horizontally)
  (windmove-right)
  (windmove-right)
  (split-window-vertically -28)
  (windmove-down)
  )

(defun w/setup-stream ()
  "Configure windows for streaming."
  (interactive)
  ;; initialization
  (w/connect)
  (w/bus-binary-connect)
  (w/db-connect)
  (w/create-chat-overlay-frame)
  (w/show-chat-overlay-frame nil)
  (w/twitch-7tv-update-emotes)
  (w/twitch-update-title)
  (w/twitch-run-shoutout-timer)
  (w/twitch-run-emote-frame-timer)
  (w/run-model-timer)
  (w/run-obs-timer)
  (w/run-audio-record-end-timer)
  (w/populate-bible-table)
  (w/user-cache-populate)
  (w/run-banner-ad-timer)

  (w/start-audio-record)
  (w/start-chatsummary)
  (w/start-fake-chatters)
  (w/friend-start)

  ;; layout
  (eyebrowse-switch-to-window-config 0)
  (eyebrowse-close-window-config)
  (eyebrowse-switch-to-window-config 0)
  (split-window-horizontally -70)
  (split-window-vertically -10)
  (find-file "~/notes/docket.org")
  (enlarge-window 2)
  (windmove-down)
  (split-window-horizontally)
  (switch-to-buffer w/friend-buffer)
  (w/gizmo-tag-window)
  (windmove-right)
  (switch-to-buffer w/heartrate-buffer)
  (w/gizmo-tag-window)
  (windmove-right)
  (split-window-vertically -28)
  (switch-to-buffer w/chat-buffer)
  (windmove-down)
  (find-file "~/src/colonq")
  (project-eshell)
  )

(provide 'wasp-setup)
;;; wasp-setup.el ends here