Compare commits

...

9 Commits

10 changed files with 63 additions and 25 deletions

View File

@ -2,7 +2,7 @@
# essentials # essentials
# #
ttf-jetbrains-mono ttf-jetbrains-mono
ttf-terminus-nerd ttf-ibm-plex
wqy-microhei wqy-microhei
ttf-roboto ttf-roboto
noto-fonts-emoji noto-fonts-emoji
@ -141,6 +141,7 @@ html-xml-utils
# for general compiling from source # for general compiling from source
cmake cmake
ninja ninja
meson
fakeroot fakeroot
autoconf autoconf
automake automake

View File

@ -85,6 +85,3 @@ function prob_cpp; echo $EDITOR src/(basename (xsel -b)).cpp; end
abbr -a cpp --function prob_cpp abbr -a cpp --function prob_cpp
function prob_py; echo $EDITOR src/(basename (xsel -b)).py; end function prob_py; echo $EDITOR src/(basename (xsel -b)).py; end
abbr -a py --function prob_py abbr -a py --function prob_py
# in .config/nvim/typst.vim there is a bind that copies the path
function prob_pdf; echo zathura (xsel -b); end
abbr -a pdf --function prob_pdf

View File

@ -36,8 +36,10 @@ let mapleader = ","
" easier binds to use system clipboard with " easier binds to use system clipboard with
nmap <leader>y "+y nmap <leader>y "+y
vmap <leader>y "+y vmap <leader>y "+y
nmap <leader>c "+c " <leader>d is for debugging
vmap <leader>c "+c " and nobody uses clipboard c amirite or amirite
nmap <leader>c "+d
vmap <leader>c "+d
set shell=/bin/sh set shell=/bin/sh

View File

@ -29,6 +29,6 @@ function TypstWatch()
endfunc endfunc
nnoremap <silent><leader>fc :call TypstWatch()<cr> nnoremap <silent><leader>fc :call TypstWatch()<cr>
nnoremap <silent><leader>fr :call setreg("+", expand("%:p:r") . ".pdf")<cr>:echo "Copied path."<cr> nnoremap <silent><leader>fr :silent exec "!zathura --fork " . expand("%:p:r") . ".pdf &"<cr>
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"} au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}

View File

@ -35,4 +35,4 @@ fade-out-step = 0.05;
fade-delta = 5; fade-delta = 5;
# corner # corner
# corner-radius = 8; corner-radius = 5;

View File

@ -1,6 +1,8 @@
config.load_autoconfig() config.load_autoconfig()
# Colors # Style
c.window.transparent = True
c.colors.webpage.bg = "#444444" c.colors.webpage.bg = "#444444"
c.colors.completion.category.bg = "#111111" c.colors.completion.category.bg = "#111111"
@ -9,12 +11,12 @@ c.colors.statusbar.private.bg = "black"
c.colors.statusbar.command.private.bg = "black" c.colors.statusbar.command.private.bg = "black"
c.colors.hints.bg = "black" c.colors.hints.bg = "black"
c.colors.hints.fg = "white" c.colors.hints.fg = "white"
c.colors.tabs.bar.bg = "black" c.colors.tabs.bar.bg = "transparent"
c.colors.tabs.even.bg = "#000000" c.colors.tabs.even.bg = "#66111111"
c.colors.tabs.odd.bg = "#000000" c.colors.tabs.odd.bg = c.colors.tabs.even.bg
c.colors.tabs.selected.even.bg = "#333333" c.colors.tabs.selected.even.bg = "#dd444455"
c.colors.tabs.selected.odd.bg = "#444444" c.colors.tabs.selected.odd.bg = c.colors.tabs.selected.even.bg
c.colors.webpage.darkmode.algorithm = "lightness-hsl" c.colors.webpage.darkmode.algorithm = "lightness-hsl"
c.colors.webpage.darkmode.contrast = 0.5 c.colors.webpage.darkmode.contrast = 0.5
@ -27,16 +29,22 @@ c.prompt.radius = 0
# Fonts # Fonts
c.fonts.default_family = "JetBrains Mono" c.fonts.default_size = "12pt"
c.fonts.default_family = "IBM Plex Sans"
c.fonts.prompts = "default_size default_family" c.fonts.prompts = "default_size default_family"
c.fonts.web.family.serif = "IBM Plex Sans"
c.fonts.web.family.sans_serif = "IBM Plex Sans"
c.fonts.web.family.standard = "IBM Plex Sans"
c.fonts.web.family.fixed = "JetBrains Mono"
config.bind('td', 'config-cycle colors.webpage.darkmode.enabled true false;; restart') config.bind('td', 'config-cycle colors.webpage.darkmode.enabled true false;; restart')
# General settings # General settings
c.url.default_page = "~/.config/qutebrowser/homepage.html" c.url.default_page = "~/.config/qutebrowser/homepage.html"
c.url.start_pages = "~/.config/qutebrowser/homepage.html" c.url.start_pages = "~/.config/qutebrowser/homepage.html"
c.url.searchengines = {"DEFAULT":"https://search.disroot.org/search?q={}"} c.url.searchengines = {"DEFAULT":"https://xo.wtf/search?q={}"}
c.downloads.location.directory = "~/quar/" c.downloads.location.directory = "~/quar/"
c.zoom.default = "90%" c.zoom.default = "90%"
@ -48,10 +56,20 @@ c.downloads.remove_finished = 1000
# Bar settings # Bar settings
c.tabs.max_width = 300 c.tabs.max_width = 300
c.tabs.favicons.show = "never" c.tabs.position = "top"
c.tabs.position = "bottom"
c.statusbar.show = "in-mode" c.statusbar.show = "in-mode"
c.statusbar.widgets = [ "keypress", "progress" ] c.statusbar.widgets = [ "keypress", "progress" ]
c.tabs.indicator.width = 0
c.tabs.position = "top"
c.tabs.title.format = "{audio}{current_title}"
c.tabs.padding = dict(
bottom=5,
left=5,
right=5,
top=5,
)
c.tabs.title.alignment = "left"
c.tabs.favicons.show = "always"
# Hints # Hints
@ -128,6 +146,6 @@ c.fileselect.single_file.command = ["st", "-e", "fish", "-C", "set -x OUTPUT {};
# (thank you very much dima https://github.com/qutebrowser/qutebrowser/issues/6281) # (thank you very much dima https://github.com/qutebrowser/qutebrowser/issues/6281)
config.bind("<Ctrl-d>", "jseval -q window.scrollBy({top: window.innerHeight/2, left: 0, behavior: 'smooth'});") config.bind("<Ctrl-d>", "jseval -q window.scrollBy({top: window.innerHeight/2, left: 0, behavior: 'smooth'});")
config.bind("<Ctrl-u>", "jseval -q window.scrollBy({top: -window.innerHeight/2, left: 0, behavior: 'smooth'});") config.bind("<Ctrl-u>", "jseval -q window.scrollBy({top: -window.innerHeight/2, left: 0, behavior: 'smooth'});")
config.bind("G", "jseval -q window.scrollBy({top: document.body.scrollHeight, left: 0, behavior: 'smooth'});") config.bind("G", "jseval -q window.scrollBy({top: document.body.scrollHeight + 1e6, left: 0, behavior: 'smooth'});")
config.bind("gg", "jseval -q window.scrollBy({top: -document.body.scrollHeight, left: 0, behavior: 'smooth'});") config.bind("gg", "jseval -q window.scrollBy({top: -document.body.scrollHeight - 1e6, left: 0, behavior: 'smooth'});")
c.scrolling.smooth = True c.scrolling.smooth = True

View File

@ -1,4 +1,7 @@
<html> <html>
<head>
<title>Homepage</title>
</head>
<style> <style>
body { body {
background: black; background: black;

View File

@ -0,0 +1,2 @@
# elon musk moment
<Multi_key> <X> <x> : "𝕏"

View File

@ -1,5 +1,6 @@
# include default settings # include default settings
include "%L" include "%L"
# emoji
include "%H/.config/xcompose/emoji" include "%H/.config/xcompose/emoji"
include "%H/.config/xcompose/letters"

View File

@ -1,14 +1,28 @@
# might break things, but more secure
set sandbox strict
set statusbar-home-tilde true
# make things fit better
set smooth-scroll "true"
set scroll-page-aware true
set adjust-open width
set font "IBM Plex Sans 12"
set recolor-darkcolor "#ffffff" set recolor-darkcolor "#ffffff"
set recolor-lightcolor "#000000" set recolor-lightcolor rgba(0,0,0,0)
# set recolor true set recolor true
set recolor-keephue true
set recolor-reverse-video true
set default-bg "#000000ff" set default-bg "#000000ff"
set index-bg "#000000" set index-bg "#000000"
set index-active-bg "#111111" set index-active-bg "#111111"
set index-active-fg "#FFFFFF" set index-active-fg "#FFFFFF"
set inputbar-bg "#000000" set inputbar-bg rgba(0,0,0,0.5)
set inputbar-fg "#CCCCCC" set inputbar-fg "#CCCCCC"
set statusbar-bg "#000000" set statusbar-bg rgba(0,0,0,0.5)
set selection-clipboard clipboard set selection-clipboard clipboard