From 0a961aafa672243cb2ff0c728e4a2d5ebcf087e2 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Wed, 1 Jun 2022 11:00:25 +0300 Subject: [PATCH] Update dotfiles --- .bash_profile | 10 ++++++---- .config/mpv/mpv.conf | 2 +- .config/nvim | 2 +- .config/qutebrowser/config.py | 4 ++-- .config/yt-dlp/config | 2 +- .local/arch/packages.repo.txt | 22 +++++++++++++++++++++- .local/share/bash/aliases.sh | 2 ++ .local/share/bash/bashrc.sh | 4 +++- .local/share/bash/functions.sh | 2 ++ .local/share/konsole/Default.profile | 2 +- 10 files changed, 40 insertions(+), 12 deletions(-) diff --git a/.bash_profile b/.bash_profile index c084852..81b306d 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,4 +1,4 @@ -# shellcheck shell=bash +# shellcheck shell=bash disable=SC1090 # Print date on login printf '\e[1m\e[91m%(%A, %B %d, %Y)T \e[90m- \e[36m%(%Z %z)T\e[m\n\n' @@ -26,6 +26,7 @@ export BROWSER='firefox' # Set the XDG directories {{{ export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" +export XDG_STATE_HOME="$HOME/.local/state" export XDG_CACHE_HOME="$HOME/.cache" # }}} @@ -39,7 +40,7 @@ export PYTHONSTARTUP="$XDG_CONFIG_HOME/pythonrc.py" export PYTHON_EGG_CACHE="$XDG_CACHE_HOME/python-eggs" export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter" export IPYTHONDIR="$XDG_CONFIG_HOME/jupyter" -export PYLINTHOME="$XDG_CACHE_HOME/pylint" +export PYLINTHOME="$XDG_STATE_HOME/pylint" # }}} # Set the paths used by go {{{ @@ -49,7 +50,7 @@ export GOPATH="$HOME/.local/go" # Set the paths used by R {{{ export R_LIBS_USER="$HOME/.local/R" export R_PROFILE="$XDG_CONFIG_HOME/Rprofile" -export R_HISTFILE="$XDG_CACHE_HOME/.R_history" +export R_HISTFILE="$XDG_STATE_HOME/.R_history" # }}} # Set the paths used by perl5 {{{ @@ -60,10 +61,11 @@ export PERL_CPANM_HOME="$HOME/.local/perl/cpanm" # Set the paths used by rust {{{ export CARGO_HOME="$XDG_CACHE_HOME/cargo" +export RUSTUP_HOME="$XDG_DATA_HOME/rustup" # }}} # Set the paths used by node {{{ -export NODE_REPL_HISTORY="$XDG_CACHE_HOME/.node_repl_history" +export NODE_REPL_HISTORY="$XDG_STATE_HOME/.node_repl_history" export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" # }}} diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index dc48017..d8a2b55 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -104,7 +104,7 @@ screen=1 # Subtitles {{{ # Load all subs in the current and sub-file-paths directories. -sub-auto=all +sub-auto=fuzzy # Specify extra directories to search for subtitles. sub-file-paths=Subs diff --git a/.config/nvim b/.config/nvim index bfd2b37..f24743d 160000 --- a/.config/nvim +++ b/.config/nvim @@ -1 +1 @@ -Subproject commit bfd2b371f11e04aa635631509568b9b3576e1d9b +Subproject commit f24743d138ce7dedd09f728a48466830b09d5331 diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 297b645..49141f5 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -32,9 +32,9 @@ c.content.headers.accept_language = 'en-GB,en,el;q=0.9' c.content.headers.user_agent = ' '.join(( 'Mozilla/5.0', '(X11; Linux x86_64)', - 'QtWebEngine/5.15.6', + 'QtWebEngine/5.15.9', 'Chromium/87.0.4280.144', - 'qutebrowser/2.3.1' + 'qutebrowser/2.5.1' )) # Allow JavaScript to read from or write to the clipboard. diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config index 37ef254..a8466cb 100644 --- a/.config/yt-dlp/config +++ b/.config/yt-dlp/config @@ -23,7 +23,7 @@ --output "%(title)s.%(ext)s" # Specify a custom user agent. ---user-agent "Mozilla/5.0 (Linux x86_64) yt-dlp/2022.03.08.1" +--user-agent "Mozilla/5.0 (Linux x86_64) yt-dlp/2022.05.18" # SponsorBlock categories to create chapters for. --sponsorblock-mark "all" diff --git a/.local/arch/packages.repo.txt b/.local/arch/packages.repo.txt index cf18ca2..da3681a 100644 --- a/.local/arch/packages.repo.txt +++ b/.local/arch/packages.repo.txt @@ -115,7 +115,27 @@ python-pynvim python-pypresence python-urwid qbittorrent-qt5 -qemu +qemu-audio-alsa +qemu-audio-pa +qemu-audio-spice +qemu-chardev-spice +qemu-common +qemu-hw-display-qxl +qemu-hw-display-virtio-gpu +qemu-hw-display-virtio-gpu-gl +qemu-hw-display-virtio-gpu-pci +qemu-hw-display-virtio-gpu-pci-gl +qemu-hw-display-virtio-vga +qemu-hw-display-virtio-vga-gl +qemu-hw-usb-host +qemu-hw-usb-redirect +qemu-img +qemu-system-x86 +qemu-ui-opengl +qemu-ui-spice-app +qemu-ui-spice-core +qemu-vhost-user-gpu +qemu-virtiofsd qt5-imageformats qutebrowser rclone diff --git a/.local/share/bash/aliases.sh b/.local/share/bash/aliases.sh index 91aad0c..94fa47a 100644 --- a/.local/share/bash/aliases.sh +++ b/.local/share/bash/aliases.sh @@ -1,3 +1,5 @@ +# shellcheck shell=bash + # Aliases {{{ # go to parent directory alias ..='cd ..' diff --git a/.local/share/bash/bashrc.sh b/.local/share/bash/bashrc.sh index 2397955..6c1380f 100644 --- a/.local/share/bash/bashrc.sh +++ b/.local/share/bash/bashrc.sh @@ -1,3 +1,5 @@ +# shellcheck shell=bash + # Define where cd looks for targets [ -d "$HOME/Documents/Code" ] && CDPATH='.:~/Documents/Code' @@ -12,7 +14,7 @@ HISTIGNORE='[ ]*:ls:ll:exit:logout:history:clear:bg:fg' HISTCONTROL='erasedups' # Move the history file away from $HOME -HISTFILE="$XDG_CACHE_HOME/.bash_history" +HISTFILE="$XDG_STATE_HOME/.bash_history" # Print time of command in history HISTTIMEFORMAT='{%Y-%m-%d %T} ' diff --git a/.local/share/bash/functions.sh b/.local/share/bash/functions.sh index 1d50dcc..e0280f9 100644 --- a/.local/share/bash/functions.sh +++ b/.local/share/bash/functions.sh @@ -1,3 +1,5 @@ +# shellcheck shell=bash + __usage() { if (($1 < $2)); then printf 'Usage: %s %s\n' "${FUNCNAME[1]}" "$3" diff --git a/.local/share/konsole/Default.profile b/.local/share/konsole/Default.profile index 7d0170d..f8efe9f 100644 --- a/.local/share/konsole/Default.profile +++ b/.local/share/konsole/Default.profile @@ -21,7 +21,7 @@ Parent=FALLBACK/ ShowTerminalSizeHint=true TerminalCenter=true TerminalColumns=120 -TerminalMargin=5 +TerminalMargin=2 TerminalRows=32 [Interaction Options]