mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
import dracula.draw
|
|
|
|
# Load existing settings made via :set
|
|
config.load_autoconfig(True)
|
|
|
|
c.content.blocking.method = "both"
|
|
c.content.default_encoding = "utf-8"
|
|
c.content.pdfjs = True # display pdfs
|
|
c.zoom.default = "125%"
|
|
|
|
c.url.default_page = "https://dash.sudacode.com"
|
|
c.editor.command = ["alacritty", "-e", "vim", "{}"]
|
|
c.url.searchengines["a"] = "https://wiki.archlinux.org/?search={}"
|
|
c.url.searchengines["ap"] = "https://www.archlinux.org/packages/?sort=&q={}"
|
|
c.url.searchengines["aur"] = "https://aur.archlinux.org/packages/?K={}"
|
|
c.url.searchengines["gh"] = "https://github.com/search?q={}&type=Code"
|
|
c.url.searchengines["r"] = "https://www.reddit.com/r/{}"
|
|
c.url.searchengines["p"] = "https://docs.python.org/3/library/{}"
|
|
|
|
c.aliases["gd"] = "open -t http://192.168.4.77:4000"
|
|
|
|
config.bind(
|
|
"<Ctrl-Shift-m>",
|
|
"hint links spawn --detach mpv {hint-url}",
|
|
)
|
|
config.bind(
|
|
"<Ctrl-Shift-d>",
|
|
"hint links spawn --detach alacritty -e yt-dlp {hint-url}",
|
|
)
|
|
|
|
config.bind("<Ctrl-=>'", "zoom-in")
|
|
config.bind("<Ctrl+->'", "zoom-out")
|
|
|
|
config.bind("<j>", "scroll-px 0 150")
|
|
|
|
config.bind("<k>", "scroll-px 0 -150")
|
|
|
|
|
|
dracula.draw.blood(c, {"spacing": {"vertical": 6, "horizontal": 8}})
|