-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookmarks-rofi
executable file
·49 lines (44 loc) · 1.04 KB
/
bookmarks-rofi
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
#!/bin/bash
# Lists regularly used bookmarks in Rofi and opens them in the browser.
myTerm=foot
myEdit=nvim
myBrowser=brave
menu(){
printf "1. BBC Scores & Fixtures (sc)\n"
printf "2. Bluesky (bs)\n"
printf "3. Hacker News (hn)\n"
printf "4. Crimson Daggers (cd)\n"
printf "5. Github (gh)\n"
printf "6. Lemmy.world (lm) \n"
printf "7. Reddit (re)\n"
printf "8. Wikipedia (wi)\n"
}
main(){
choice=$(menu | rofi -dmenu | cut -d. -f1)
case $choice in
1) $myBrowser bsky.app
;;
2)
$myBrowser www.bbc.co.uk/sport/football/scores-fixtures
;;
3)
$myBrowser https://news.ycombinator.com/news
;;
4)
$myBrowser https://crimsondaggers.com/forum/forum-10.html
;;
5)
$myBrowser github.com/bleds1
;;
6)
$myBrowser lemmy.world
;;
7)
$myBrowser reddit.com
;;
8)
$myBrowser en.wikipedia.org/wiki/Main_Page
;;
esac
}
main