~piotr-machura/dotfiles

2874c3990fa138ea9fced6113236316c623cea36 — Piotr Machura 28 days ago 2a428d0
Dark cursor theme and manual black/isort formatting
M .config/git/config => .config/git/config +3 -4
@@ 35,15 35,14 @@
# DELTA PAGER
# -----------
[delta]
    features = decorations
    syntax-theme = base16
    line-numbers = true
    navigate = true
    merge-conflict-begin-symbol = ╍
    merge-conflict-end-symbol = ╍
[delta "interactive"]
    keep-plus-minus-markers = false
[delta "decorations"]
    commit-style = raw
    file-style = omit
    hunk-header-style = file line-number syntax

[delta "interactive"]
    keep-plus-minus-markers = false

M .config/gtk-3.0/settings.ini => .config/gtk-3.0/settings.ini +1 -1
@@ 6,5 6,5 @@
gtk-icon-theme-name = Papirus-Dark
gtk-theme-name = Materia-black
gtk-font-name = JetBrains Mono NL 10
gtk-cursor-theme-name = Breeze_Snow
gtk-cursor-theme-name = Breeze
gtk-sound-theme-name=freedesktop

M .config/kak/filetypes.kak => .config/kak/filetypes.kak +22 -10
@@ 1,20 1,37 @@
# KAKOUNE FILETYPE OPTIONS
# ------------------------

hook global WinSetOption filetype=python %{
    add-highlighter shared/python/code/ regex \b([a-zA-Z_]\w*)\h*(?=\() 0:function
define-command -hidden python-script-detect %{
    evaluate-commands %sh{
        mime=$(file -b "${kak_buffile}")
        mime=${mime%,*}
        case "${mime}" in
            *[Pp]ython*script) echo "set-option buffer filetype python";;
        esac
    }
}

hook global BufOpenFile .* python-script-detect
hook global BufNewFile .* python-script-detect

hook global WinSetOption filetype=python %sh{
    regex='regex \b([a-zA-Z_]\w*)\h*(?=\() '
    echo "add-highlighter shared/python/code/ $regex 0:function"
    echo "set-option buffer formatcmd 'black - | isort -'"
}

hook global WinSetOption filetype=rust %{
    set-option buffer textwidth 100
    set-option buffer fmtwidth 100
    set-option buffer formatcmd 'rustfmt'
}

hook global WinSetOption filetype=sh %{
    set-option buffer formatcmd "shfmt -i %opt{indentwidth} -"
}

hook global WinSetOption filetype=markdown %{
    remove-highlighter shared/markdown/inline/text/regex_(?<!_)(_([^\s_]|([^\s_](\n?[^\n_])*[^\s_]))_)(?!_)_1:+i
hook global WinSetOption filetype=markdown %sh{
    regex='regex_(?<!_)(_([^\s_]|([^\s_](\n?[^\n_])*[^\s_]))_)(?!_)_1:+i'
    echo "remove-highlighter shared/markdown/inline/text/$regex"
}

hook global WinSetOption filetype=(c|cpp) %sh{


@@ 35,11 52,6 @@ hook global WinSetOption filetype=xml %{
    set-option buffer indentwidth 2
}

hook global WinSetOption filetype=lua %{
    set-option buffer indentwidth 2
    set-option buffer formatcmd "stylua -"
}

hook global WinSetOption filetype=(html|javascript|css|scss|json|yaml) %{
    set-option buffer indentwidth 2
    set-option buffer formatcmd "prettier --parser %opt{filetype}"

M .local/bin/center => .local/bin/center +5 -4
@@ 1,18 1,19 @@
#!/bin/python3
"""The centering script.
"""Text centering script.

Centers the text passed as standard input to the specified width (defaults to terminal
size, or 88 if no terminal is available) linewise and prints to the standard output.

If a line is longer than centering width then it is left unchanged.
"""

import argparse
import sys
from shutil import get_terminal_size

parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter,
description=__doc__,
    formatter_class=argparse.RawDescriptionHelpFormatter,
    description=__doc__,
)
parser.add_argument(
    "-w",


@@ 25,4 26,4 @@ args = parser.parse_args()
width = args.width or get_terminal_size(fallback=(88, 24)).columns

for line in sys.stdin:
    print(line.center(width).rstrip())
    print(line.strip().center(width).rstrip())

M .local/share/firefox-chrome/userChrome.css => .local/share/firefox-chrome/userChrome.css +3 -2
@@ 6,6 6,7 @@
 * toolkit.legacyUserProfileCustomizations.stylesheets
 * in about:config and set the density mode to "compact".
 */

* {
  border-radius: 0 !important;
}


@@ 15,7 16,7 @@

/* TABS
  ---- */
scrollbox[part='scrollbox'][flex='1'][orient='horizontal'] {
scrollbox[part="scrollbox"][flex="1"][orient="horizontal"] {
  padding-left: 32px !important;
}
.titlebar-spacer {


@@ 104,6 105,6 @@ scrollbox[part='scrollbox'][flex='1'][orient='horizontal'] {
}
.panel-arrowcontainer .panel-arrowcontent,
.menupopup-arrowscrollbox,
hbox[flex='1'][part='innerbox'] {
hbox[flex="1"][part="innerbox"] {
  border-color: transparent !important;
}

M .local/share/pacman/aur.txt => .local/share/pacman/aur.txt +0 -1
@@ 4,7 4,6 @@ kak-surround-git
lightdm-mini-greeter
paru-bin
python-jupytext
python-lsp-isort
rstudio-desktop-bin
vscode-langservers-extracted
xcursor-breeze

M .local/share/pacman/pkg.txt => .local/share/pacman/pkg.txt +1 -1
@@ 53,7 53,7 @@ pkgstats
plocate
prettier
pulseaudio-alsa
python-lsp-black
python-black
python-lsp-server
python-matplotlib
python-pandas