~chrisppy/beagles

beagles/config/default.go -rw-r--r-- 2.5 KiB
8e6595ccChris Palmer update to go-gemini 0.2.0 6 months ago
                                                                                
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package config

const defCfg = `# beagles config
# See man 5 beagles-config to see all configuration options

### Auto updating feeds
#
# Example configuration:
#
#	auto-update-interval 30m
#
# h = hours
# m = minutes
# s = seconds


### Key bindings
#
# Reserved keys: 'Enter', 'Esc', ':', '?', '/' 
#
key-commands {
	# Navigate left
	left h
	
	# Navigate down
	down j
	
	# Navigate up
	up k
	
	# Navigate right
	right l
	
	# Navigate downwards one page at a time
	page-down PgDn
	
	# Navigate upwards one page at a time
	page-up PgUp
	
	# open the article in your browser
	open-url n
	
	# download a podcast
	download d
	
	# play a downloaded podcast
	play p
	
	# mark an article as favorited
	mark-favorite f
	
	# mark an article as read
	mark-read m
	
	# remove an article as favorited
	unmark-favorite c
	
	# mark an article as unread
	mark-unread u
	
	# navigate to the unread list
	list-page L
	
	# navigate to your subscriptions
	subscription-page S
	
	# navigate to your favorited articles
	favorite-page F
	
	# navigate to the help page
	help-page H
}

### Browser configuration
#
# Example configuration:
#
# 	browser http {
#		navigate qutebrowser [URL]	
#	} 
# 	browser gemini {
#		navigate gmnlm [URL]	
#	} 

### Podcast configuration
#
# Example configuration:
#
#	podcast {
#		auto-download true
#		external-player mpv --speed=1.5 [FILE]
# 	}

### Theme configuration
#
theme {
	# Icon used in titles when the post contains an audio file
	audio-icon 
	
	# default background color, used when panel type is not included
	background-color "#88c0d0"
	
	# error text color
	error-color "#bf616a"
	
	# default foreground color, used when panel type is not included
	foreground-color "#2e3440"
	
	# text color for read items
	read-color "#b48ead"
	
	# line color
	separator-color "#88c0d0"

	# Theming the command line bar
	command-line {
		background-color "#2e3440"
		foreground-color "#d8dee9"
	}
	
	# Theming the content panels
	content {
		background-color "#2e3440"
		foreground-color "#e5e9f0"
	}
	
	# Theming the list and favorite panels
	list {
		background-color "#2e3440"
		foreground-color "#e5e9f0"
	}
	
	# Theming the status bar
# 	status-bar {
#		background-color "#88c0d0"
#		foreground-color "#2e3440"
# 	}	
	
	# Theming the title bar
# 	title-bar {
#		background-color "#88c0d0"
#		foreground-color "#2e3440"
# 	}	
	
	# Theming the subscription panel
	tree {
		background-color "#2e3440"
		foreground-color "#e5e9f0"
	}
}`

func defaultConfig() []byte {
	return []byte(defCfg)
}