diff options
| -rw-r--r-- | .config/fontconfig/fonts.conf | 11 | ||||
| -rw-r--r-- | .config/foot/foot.ini | 53 | ||||
| -rw-r--r-- | .config/gdb/gdbinit | 1 | ||||
| -rw-r--r-- | .config/mako/config | 20 | ||||
| -rw-r--r-- | .config/swayidle/config | 2 | ||||
| -rw-r--r-- | .config/swaylock/config | 33 | ||||
| m--------- | .config/vim/plugins/plenary.nvim | 0 | ||||
| m--------- | .config/vim/plugins/vimtex | 0 | ||||
| -rw-r--r-- | .config/zathura/zathurarc | 8 | ||||
| -rwxr-xr-x | .local/bin/latexrun | 28 | ||||
| -rwxr-xr-x | .local/bin/open_man | 10 | ||||
| -rwxr-xr-x | .local/bin/vimura | 5 | ||||
| -rw-r--r-- | chrome/userChrome.css | 1 |
13 files changed, 150 insertions, 22 deletions
diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..31caf35 --- /dev/null +++ b/.config/fontconfig/fonts.conf @@ -0,0 +1,11 @@ +<?xml version='1.0'?> +<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> +<fontconfig> + <alias> + <family>monospace</family> + <prefer> + <family>JoyPixels</family> + <family>DejaVuSansMono Nerd Font Mono</family> + </prefer> + </alias> +</fontconfig> diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini new file mode 100644 index 0000000..b3cbfc5 --- /dev/null +++ b/.config/foot/foot.ini @@ -0,0 +1,53 @@ +[main] +font=monospace:size=11 +font-size-adjustment=1.0 + +[cursor] +color=000000 e0af68 + +[colors] +alpha=0.85 +foreground=c0caf5 +background=1a1b26 +selection-foreground=c0caf5 +selection-background=283457 +urls=73daca + +regular0=15161e +regular1=f7768e +regular2=9ece6a +regular3=e0af68 +regular4=7aa2f7 +regular5=bb9af7 +regular6=7dcfff +regular7=a9b1d6 + +bright0=414868 +bright1=f7768e +bright2=9ece6a +bright3=e0af68 +bright4=7aa2f7 +bright5=bb9af7 +bright6=7dcfff +bright7=c0caf5 + +16=ff9e64 +17=db4b4b + +[key-bindings] +scrollback-up-line=Mod1+k +scrollback-down-line=Mod1+j +scrollback-up-half-page=Mod1+u +scrollback-down-half-page=Mod1+d +scrollback-up-page=Mod1+Shift+u +scrollback-down-page=Mod1+Shift+d + +font-increase=Mod1+Shift+k +font-decrease=Mod1+Shift+j +font-reset=Mod1+equal + +clipboard-copy=Mod1+c +clipboard-paste=Mod1+v + +show-urls-copy=Mod1+y +show-urls-launch=Mod1+o diff --git a/.config/gdb/gdbinit b/.config/gdb/gdbinit new file mode 100644 index 0000000..0c1f45b --- /dev/null +++ b/.config/gdb/gdbinit @@ -0,0 +1 @@ +set debuginfod enabled off diff --git a/.config/mako/config b/.config/mako/config new file mode 100644 index 0000000..f90d733 --- /dev/null +++ b/.config/mako/config @@ -0,0 +1,20 @@ +border-color=#8EC07C +default-timeout=10000 + +[urgency=low] +border-color=#89C8FF +text-color=#89C8FF +background-color=#191311 +default-timeout=5000 + +[urgency=normal] +border-color=#9DDD5D +text-color=#9DDD5D +background-color=#191311 +default-timeout=8000 + +[urgency=critical] +border-color=#FF5454 +text-color=#FF5454 +background-color=#323437 +default-timeout=25000 diff --git a/.config/swayidle/config b/.config/swayidle/config new file mode 100644 index 0000000..0fc7f0d --- /dev/null +++ b/.config/swayidle/config @@ -0,0 +1,2 @@ +lock swaylock +before-sleep swaylock --grace 0 diff --git a/.config/swaylock/config b/.config/swaylock/config new file mode 100644 index 0000000..2b5d6b0 --- /dev/null +++ b/.config/swaylock/config @@ -0,0 +1,33 @@ +show-failed-attempts +ignore-empty-password + +screenshots +effect-blur=7x5 +effect-vignette=0.5:0.5 + +clock +timestr=%R +datestr=%F + +indicator +indicator-radius=100 +indicator-thickness=7 +key-hl-color=ae81ff + +line-color=080808 +ring-color=080808 +inside-color=08080888 + +line-ver-color=74b2ff +ring-ver-color=74b2ff +inside-ver-color=74b2ff88 + +line-wrong-color=ff5454 +ring-wrong-color=ff5454 +inside-wrong-color=ff545488 + +separator-color=00000000 +text-color=ffffff + +grace=2 +fade-in=0.2 diff --git a/.config/vim/plugins/plenary.nvim b/.config/vim/plugins/plenary.nvim new file mode 160000 +Subproject 9ac3e9541bbabd9d73663d757e4fe48a675bb05 diff --git a/.config/vim/plugins/vimtex b/.config/vim/plugins/vimtex deleted file mode 160000 -Subproject 53f857e8ce3779ee1d1977053f5e597c4188e13 diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index b25e644..1149277 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -1,3 +1,10 @@ +## Colemak bindings +#map m scroll left +#map n scroll down +#map e scroll up +#map i scroll right + +## Theme set recolor true set recolor-darkcolor \#b2b2b2 set recolor-lightcolor rgba(8,8,8,0.35) @@ -18,6 +25,7 @@ set inputbar-fg \#e4e4e4 set default-bg rgba(0,0,0,0.8) +## Behaviour set selection-clipboard clipboard set scroll-step 80 set window-title-home-tilde true diff --git a/.local/bin/latexrun b/.local/bin/latexrun index b669d9f..80968ec 100755 --- a/.local/bin/latexrun +++ b/.local/bin/latexrun @@ -252,7 +252,7 @@ class DB: # until the process exits. lockpath = self.__filename + '.lock' if fcntl is not None: - lockfd = os.open(lockpath, os.O_CREAT|os.O_WRONLY|os.O_CLOEXEC, 0o666) + lockfd = os.open(lockpath, os.O_CREAT|os.O_WRONLY, 0o666) # Note that this is actually an fcntl lock, not a lockf # lock. Don't be fooled. fcntl.lockf(lockfd, fcntl.LOCK_EX, 1) @@ -1211,9 +1211,9 @@ class LaTeXFilter: return self.__runaway() if lookingatre(r'(Overfull|Underfull|Loose|Tight) \\[hv]box \('): return self.__bad_box() - if lookingatre('(Package |Class |LaTeX |pdfTeX )?(\w+ )?warning: ', re.I): + if lookingatre(r'(Package |Class |LaTeX |pdfTeX )?(\w+ )?warning: ', re.I): return self.__generic_warning() - if lookingatre('No file .*\\.tex\\.$', re.M): + if lookingatre(r'No file .*\\.tex\\.$', re.M): # This happens with \includes of missing files. For # whatever reason, LaTeX doesn't consider this even # worth a warning, but I do! @@ -1350,7 +1350,7 @@ class LaTeXFilter: stack = [] while self.__avail: m1 = self.__lookingatre(r'<([a-z ]+|\*|read [^ >]*)> |\\.*(->|...)') - m2 = self.__lookingatre('l\.[0-9]+ ') + m2 = self.__lookingatre(r'l\.[0-9]+ ') if m1: found_context = True pre = self.__consume_line().rstrip('\n') @@ -1771,7 +1771,7 @@ class BibTeXFilter: # bib_err_print/bib_err/ # bib_warn_print/bib_warn/ # bib_one_of_two_expected_err/macro_name_warning/ - if match('(.*?)---?line ([0-9]+) of file (.*)'): + if match(r'(.*?)---?line ([0-9]+) of file (.*)'): # Sometimes the real error is printed on the previous line if m.group(1) == 'while executing': # bst_ex_warn. The real message is on the previous line @@ -1782,22 +1782,22 @@ class BibTeXFilter: return (typ, m.group(3), int(m.group(2)), msg) # overflow/print_overflow - if match('Sorry---you\'ve exceeded BibTeX\'s (.*)'): + if match(r'Sorry---you\'ve exceeded BibTeX\'s (.*)'): return ('error', None, None, 'capacity exceeded: ' + m.group(1)) # confusion/print_confusion - if match('(.*)---this can\'t happen$'): + if match(r'(.*)---this can\'t happen$'): return ('error', None, None, 'internal error: ' + m.group(1)) # aux_end_err - if match('I found (no .*)---while reading file (.*)'): + if match(r'I found (no .*)---while reading file (.*)'): return ('error', m.group(2), None, m.group(1)) # bad_cross_reference_print/ # nonexistent_cross_reference_error/ # @<Complain about a nested cross reference@> # # This is split across two lines. Match the second. - if match('^refers to entry "'): + if match(r'^refers to entry "'): typ, msg = self.__canonicalize(prev_line + ' ' + line) - msg = re.sub('^a (bad cross reference)', '\\1', msg) + msg = re.sub(r'^a (bad cross reference)', '\\1', msg) # Try to give this key a location filename = lineno = None m2 = re.search(r'--entry "[^"]"', prev_line) @@ -1805,11 +1805,11 @@ class BibTeXFilter: filename, lineno = self.__find_key(m2.group(1)) return (typ, filename, lineno, msg) # print_missing_entry - if match('Warning--I didn\'t find a database entry for (".*")'): + if match(r'Warning--I didn\'t find a database entry for (".*")'): return ('warning', None, None, 'no database entry for ' + m.group(1)) # x_warning - if match('Warning--(.*)'): + if match(r'Warning--(.*)'): # Most formats give warnings about "something in <key>". # Try to match it up. filename = lineno = None @@ -1826,13 +1826,13 @@ class BibTeXFilter: # biber type errors if match('^.*> WARN - (.*)$'): print ('warning', None, None, m.group(1)) - m2 = re.match("(.*) in file '(.*?)', skipping ...", m.group(1)) + m2 = re.match(r"(.*) in file '(.*?)', skipping ...", m.group(1)) if m2: return ('warning', m2.group(2), "0", m2.group(1)) return ('warning', None, None, m.group(1)) if match('^.*> ERROR - (.*)$'): - m2 = re.match("BibTeX subsystem: (.*?), line (\d+), (.*)$", m.group(1)) + m2 = re.match(r"BibTeX subsystem: (.*?), line (\d+), (.*)$", m.group(1)) if m2: return ('error', m2.group(1), m2.group(2), m2.group(3)) return ('error', None, None, m.group(1)) diff --git a/.local/bin/open_man b/.local/bin/open_man index b37d94b..778a479 100755 --- a/.local/bin/open_man +++ b/.local/bin/open_man @@ -2,12 +2,7 @@ MENU_CMD=dmenu "$@" -if [ "$XDG_SESSION_TYPE" = "wayland" ]; then - MENU_CMD=bemenu "$@" - TERM=$TERM -d none -else - MENU_CMD=dmenu "$@" -fi +[ "$XDG_SESSION_TYPE" = "wayland" ] && MENU_CMD=bemenu "$@" cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"} if [ -d "$cachedir" ]; then @@ -18,6 +13,8 @@ else # if no xdg dir, fall back to dotfiles in ~ historyfile=$HOME/.dmenu_man_history fi +#FONT="DejaVuSansMono Nerd Font Mono:pixelsize=16:antialias=true:autohint=true:style=book" + # Generate a new cache if necessary if stest -dqr -n "$cache" /usr/share/man/**/*; then ls /usr/share/man/**/* \ @@ -60,7 +57,6 @@ awk -v histfile=$historyfile ' | while read MAN; do VERSION=$(echo $MAN | sed -Ee 's/.* \(([0-9].*)\)/\1/g') PAGE=$(echo $MAN | sed -Ee 's/(.*) \([0-9].*\)/\1/g') - ## Uncomment for debugging #echo "Man: $VERSION $PAGE" $TERM man $VERSION $PAGE done diff --git a/.local/bin/vimura b/.local/bin/vimura index 6523fff..634f3e4 100755 --- a/.local/bin/vimura +++ b/.local/bin/vimura @@ -1,4 +1,7 @@ #!/usr/bin/env bash -echo ${1%.pdf} +#echo ${1%.pdf} zathura --fork -x "vim --servername ${1%.pdf} -c \"let g:syncpdf='${1%.pdf}'\" --remote +%{line} %{input}" $* +#zathura --fork -x "vim --servername vim -c \"let g:syncpdf='${1:0:5}'\" --remote +%{line} %{input}" $1 + +vim --servername ${1%.pdf} ${1%.pdf}.tex diff --git a/chrome/userChrome.css b/chrome/userChrome.css index 377da04..6110bbc 100644 --- a/chrome/userChrome.css +++ b/chrome/userChrome.css @@ -168,6 +168,7 @@ tab[selected="true"] .tab-content { tab[selected="true"] .tab-background { background: var(--accent-color) !important; } + .tabbrowser-tab>.tab-stack>.tab-background:not([selected="true"]) { transition: all 0.3s ease !important; } |
