blob: a3388478511a114503b4f2e70dc3c6db3a490147 (
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
|
#!/bin/bash
## Open links in firefox
FILE="$HOME/.cache/eww_launch.dashboard"
CFG="$HOME/.config/eww/dashboard"
EWW=`which eww`
cmd="firefox --new-tab"
close_dash() {
${EWW} --config "$CFG" close \
background profile system clock uptime music github \
reddit twitter youtube weather apps mail logout sleep reboot poweroff folders
rm -rf "$FILE"
}
if [[ "$1" == "--mail" ]]; then
close_dash && ${cmd} "https://mail.google.com"
elif [[ "$1" == "--gh" ]]; then
close_dash && ${cmd} "https://github.com"
elif [[ "$1" == "--rd" ]]; then
close_dash && ${cmd} "https://reddit.com"
elif [[ "$1" == "--tw" ]]; then
close_dash && ${cmd} "https://twitter.com"
elif [[ "$1" == "--yt" ]]; then
close_dash && ${cmd} "https://youtube.com"
fi
|