-
Notifications
You must be signed in to change notification settings - Fork 0
/
wtf_dashboard_config.yml
134 lines (134 loc) · 3.45 KB
/
wtf_dashboard_config.yml
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
wtf:
colors:
border:
focusable: darkslateblue
focused: orange
normal: gray
grid:
columns: [32, 32, 32, 32]
rows: [9, 8, 6, 8, 6, 90]
refreshInterval: 1
mods:
public_ip:
type: ipinfo
enabled: true
colors:
name: lightblue
value: white
position:
top: 0
left: 0
height: 1
width: 2
refreshInterval: 150
title: Public IP
local_ip:
type: cmdrunner
enabled: true
cmd: node
args: ["-e", "const {execSync} = require('child_process'); try {const interfaces = execSync('ifconfig').toString().match(/^([\\S\\d])+: /gm).map(i => i.replace(': ', '')); const formatted = interfaces.map(i => {let ip; try {ip = execSync('ipconfig getifaddr ' + i).toString().trim()} catch (e) {return ''} return '\\x1b[1m' + i + '\\x1b[0m\\n' + ip}).filter(i => !!i).join('\\n\\n'); console.log(formatted)} catch (e) {console.error('Failed to get local IP(s):', e); process.exit(1)}"]
position:
top: 0
left: 2
height: 1
width: 1
refreshInterval: 60
focusable: false
title: Local IP(s)
power:
enabled: true
position:
top: 0
left: 3
height: 1
width: 1
refreshInterval: 15
title: ⚡️
self_care:
type: cmdrunner
enabled: true
cmd: node
args: ["-e", "const Crawler = require('crawler'); const c = new Crawler({ callback: (err, res) => { const items = res['\\$']('.tweet:not(.user-pinned) .js-tweet-text.tweet-text'); const randomItem = items.eq(Math.round(Math.random() * items.length - 1)).text(); console.log(require('child_process').execSync('echo \"'+randomItem+'\" | fold -s -w32').toString()); } }); c.queue({ url: 'https://twitter.com/everydaycarebot' })"]
position:
top: 0
left: 4
width: 1
height: 1
refreshInterval: 600
focusable: false
title: "❤️ "
digitalclock:
enabled: true
color: gray
font: bigfont
position:
left: 5
top: 0
width: 1
height: 1
refreshInterval: 60
title: 🕒
prettyweather:
enabled: true
city: Stockholm
position:
top: 1
left: 3
height: 2
width: 1
refreshInterval: 1800
unit: m
view: 0
language: en
title: Weather
spotify:
enabled: false
colors:
label: green
text: white
position:
top: 1
left: 4
width: 2
height: 1
refreshInterval: 1
git:
enabled: true
commitCount: 5
commitFormat: "[forestgreen]%h [grey]%cd [white]%s [grey]%an[white]"
dateFormat: "%H:%M %d %b %y"
repositories:
- /Users/erik/dev/dotfiles
position:
top: 1
left: 0
height: 2
width: 3
refreshInterval: 3
swedish_news:
type: feedreader
enabled: true
feeds:
- https://www.svt.se/nyheter/rss.xml
- https://www.svt.se/nyheter/lokalt/stockholm/rss.xml
feedLimit: 20
position:
top: 1
left: 4
width: 2
height: 1
refreshInterval: 300
title: SVT
hacker_news:
type: feedreader
enabled: true
feeds:
- https://news.ycombinator.com/rss
feedLimit: 40
position:
top: 2
left: 4
width: 2
height: 2
refreshInterval: 1800
title: Hacker News