~piotr-machura/dotfiles

f481a623cc0c4603dfac0ce6004f9392dc6be7b8 — Piotr Machura 19 days ago cd990ef
Add colored chrome scrollbar
11 files changed, 120 insertions(+), 90 deletions(-)

M .bashrc
R .config/{bttv.json => chromium/bttv.json}
R .config/{redirector.json => chromium/redirector.json}
A .config/chromium/stylus.css
M .config/git/config
M .config/gtk-3.0/settings.ini
M .config/mimeapps.list
M .config/picom.conf
M .local/share/pacman/aur.txt
M .local/share/pacman/pkg.txt
A .local/share/themes/Materia-black/chrome-scrollbar.crx
M .bashrc => .bashrc +9 -5
@@ 7,16 7,17 @@

# ALIASES
# -------
alias ls='ls --color=auto'
alias la='ls -A'
alias ll='ls -lhA'
alias ls='exa'
alias la='exa -a'
alias ll='exa -la --git'
alias tree='exa -T -L 6'
alias rm='trash'
alias rmf='\rm -Ir'
alias rmf='/bin/rm -Ir'
alias mv='mv -iv'
alias locate='plocate'
alias ping='ping -c 5'
alias gdb='gdb -q -ex "layout src"'
alias rgdb='rust-gdb -q -ex "layout src"'
alias rust-gdb='rust-gdb -q -ex "layout src"'
alias tectonic='tectonic -X'
alias R='R --quiet'
alias serve='python3 -m http.server --directory'


@@ 79,6 80,9 @@ for completion in "$XDG_DATA_HOME/completions/"*.bash; do
done
unset completion

source /usr/share/bash-complete-alias/complete_alias
complete -F _complete_alias "${!BASH_ALIASES[@]}"

# Skim functions
source "$XDG_CONFIG_HOME/sk.bash"


R .config/bttv.json => .config/chromium/bttv.json +0 -0
R .config/redirector.json => .config/chromium/redirector.json +86 -83
@@ 1,84 1,87 @@
{
  "createdBy": "Redirector v3.5.3",
  "createdAt": "2022-03-16T19:13:27.161Z",
  "redirects": [
    {
      "description": "Medium -> Scribe",
      "exampleUrl": "https://medium.com/@user/post-123456abcdef",
      "exampleResult": "https://scribe.rip/@user/post-123456abcdef",
      "error": null,
      "includePattern": "^https?://(?:.*\\.)*(?<!(link\\.|cdn\\-images\\-\\d+\\.))medium\\.com(/.*)?$",
      "excludePattern": "",
      "patternDesc": "",
      "redirectUrl": "https://scribe.rip$2",
      "patternType": "R",
      "processMatches": "noProcessing",
      "disabled": false,
      "grouped": false,
      "appliesTo": [
        "main_frame",
        "sub_frame",
        "xmlhttprequest",
        "history",
        "other"
      ]
    },
    {
      "description": "Twitter -> Nitter",
      "exampleUrl": "https://twitter.com/foo/status/123456789",
      "exampleResult": "https://nitter.net/foo/status/123456789",
      "error": null,
      "includePattern": "^https?://(?:www\\.)?twitter\\.com(/.*)?$",
      "excludePattern": "",
      "patternDesc": "",
      "redirectUrl": "https://nitter.net$1",
      "patternType": "R",
      "processMatches": "noProcessing",
      "disabled": false,
      "grouped": false,
      "appliesTo": [
        "main_frame",
        "sub_frame",
        "xmlhttprequest",
        "history",
        "other"
      ]
    },
    {
      "description": "AMP -> HTML",
      "exampleUrl": "https://www.google.com/amp/www.example.com/amp/document",
      "exampleResult": "https://www.example.com/amp/document",
      "error": null,
      "includePattern": "^https?://www.(?:google|bing).com/amp/(.*)",
      "excludePattern": "",
      "patternDesc": "",
      "redirectUrl": "https://$1",
      "patternType": "R",
      "processMatches": "noProcessing",
      "disabled": false,
      "grouped": false,
      "appliesTo": [
        "main_frame",
        "sub_frame",
        "xmlhttprequest",
        "history",
        "other"
      ]
    },
    {
      "description": "Reddit -> Old Reddit",
      "exampleUrl": "https://www.reddit.com/r/foo/bar/",
      "exampleResult": "https://old.reddit.com/r/foo/bar/",
      "error": null,
      "includePattern": "^https?://(?:www\\.)?reddit\\.com(/.*)?$",
      "excludePattern": "^https?://(?:www\\.)?reddit.com/(poll|gallery)/.*",
      "patternDesc": "",
      "redirectUrl": "https://old.reddit.com$1",
      "patternType": "R",
      "processMatches": "noProcessing",
      "disabled": false,
      "grouped": false,
      "appliesTo": ["main_frame", "history"]
    }
  ]
}
    "createdBy": "Redirector v3.5.3",
    "createdAt": "2022-05-05T10:48:52.777Z",
    "redirects": [
        {
            "description": "Medium -> Scribe",
            "exampleUrl": "https://medium.com/@user/post-123456abcdef",
            "exampleResult": "https://scribe.rip/@user/post-123456abcdef",
            "error": null,
            "includePattern": "^https?://(?:.*\\.)*(?<!(link\\.|cdn\\-images\\-\\d+\\.))medium\\.com(/.*)?$",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://scribe.rip$2",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "grouped": false,
            "appliesTo": [
                "main_frame",
                "sub_frame",
                "xmlhttprequest",
                "history",
                "other"
            ]
        },
        {
            "description": "Twitter -> Nitter",
            "exampleUrl": "https://twitter.com/foo/status/123456789",
            "exampleResult": "https://nitter.net/foo/status/123456789",
            "error": null,
            "includePattern": "^https?://(?:www\\.)?twitter\\.com(/.*)?$",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://nitter.net$1",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "grouped": false,
            "appliesTo": [
                "main_frame",
                "sub_frame",
                "xmlhttprequest",
                "history",
                "other"
            ]
        },
        {
            "description": "AMP -> HTML",
            "exampleUrl": "https://www.google.com/amp/www.example.com/amp/document",
            "exampleResult": "https://www.example.com/amp/document",
            "error": null,
            "includePattern": "^https?://www.(?:google|bing).com/amp/(.*)",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://$1",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "grouped": false,
            "appliesTo": [
                "main_frame",
                "sub_frame",
                "xmlhttprequest",
                "history",
                "other"
            ]
        },
        {
            "description": "Reddit -> Old Reddit",
            "exampleUrl": "https://www.reddit.com/r/foo/bar/",
            "exampleResult": "https://old.reddit.com/r/foo/bar/",
            "error": null,
            "includePattern": "^https?://(?:www\\.)?reddit\\.com(/.*)?$",
            "excludePattern": "^https?://(?:www\\.)?reddit.com/(poll|gallery)/.*",
            "patternDesc": "",
            "redirectUrl": "https://old.reddit.com$1",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "grouped": false,
            "appliesTo": [
                "main_frame",
                "history"
            ]
        }
    ]
}
\ No newline at end of file

A .config/chromium/stylus.css => .config/chromium/stylus.css +19 -0
@@ 0,0 1,19 @@
@-moz-document regexp("file://.*\\.md")
{
  @media print {
    .markdown-body {
      border: none !important;
      padding: 0 !important;
    }
  }
  .markdown-body {
    min-width: unset !important;
    width: 832px !important;
    max-width: 100%;
  }
  img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

M .config/git/config => .config/git/config +1 -0
@@ 31,6 31,7 @@
    unstage = reset HEAD --
    list = ls-tree -r --name-only
    prev = !source $XDG_CONFIG_HOME/sk.bash && sk_commitprev
    tree = !git rev-parse --show-toplevel | xargs exa -lTI=.git --git --git-ignore

# DELTA PAGER
# -----------

M .config/gtk-3.0/settings.ini => .config/gtk-3.0/settings.ini +1 -0
@@ 8,3 8,4 @@ gtk-theme-name = Materia-black
gtk-font-name = JetBrains Mono NL 10
gtk-cursor-theme-name = Breeze
gtk-sound-theme-name=freedesktop
gtk-application-prefer-dark-theme=1

M .config/mimeapps.list => .config/mimeapps.list +1 -1
@@ 34,7 34,7 @@ application/vnd.rar=xarchiver.desktop;
application/vnd.sqlite3=libreoffice-base.desktop;sqlitebrowser.desktop;
application/gzip=xarchiver.desktop;
application/dicom=imagej.desktop;pinta.desktop;
text/markdown=firefox.desktop;l3afpad.desktop;
text/markdown=chromium.desktop;firefox.desktop;l3afpad.desktop;
audio/x-wav=org.xfce.Parole.desktop;
application/x-ipynb+json=jupyter-notebook.desktop;
application/postscript=org.pwm.zathura.desktop

M .config/picom.conf => .config/picom.conf +1 -1
@@ 6,4 6,4 @@ backend = "xrender";
fading = false;
vsync = true;
shadow = false;
inactive-dim = 0.1;
inactive-dim = 0.15;

M .local/share/pacman/aur.txt => .local/share/pacman/aur.txt +1 -0
@@ 1,4 1,5 @@
base-devel-meta
bash-complete-alias
kak-smarttab-git
kak-surround-git
lightdm-mini-greeter

M .local/share/pacman/pkg.txt => .local/share/pacman/pkg.txt +1 -0
@@ 10,6 10,7 @@ clang
docker
docker-compose
dunst
exa
exfatprogs
fd
firefox

A .local/share/themes/Materia-black/chrome-scrollbar.crx => .local/share/themes/Materia-black/chrome-scrollbar.crx +0 -0