summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/news
blob: 61941b4c145392995fc1deef26f53bf8a7a6c3a5 (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
#!/bin/sh

daily () {
	o telegram-desktop
	# maybe add: https://discord.com/channels/@me
	# mail.yahoo.com/d/folders/6 is spam folder
	o "$BROWSER" https://github.com/notifications https://mail.google.com 'https://mail.google.com/mail/u/0/#spam' https://mail.yahoo.com https://mail.yahoo.com/d/folders/6 https://kyun.host/ 'https://store.steampowered.com/app/1948800/_/'
	# alacritty --hold must be before -e
	# full window: -w156, am and pm in one line: -w114
	o alacritty --hold -e rem -cu+2 -@ -w114
	o alacritty --hold -e wtr
	o alacritty -e newsboat
	o alacritty --hold -e rate
	o alacritty -e weechat
}

monthly () {
	o "$BROWSER" --new-window https://smtp.cheogram.com/
}

if [ $# -eq 0 ]; then
	daily
else
	while getopts m opt; do
		case $opt in
			m) monthly;;
			\?) exit 1;;
		esac
	done
fi