diff --git a/.bash_profile b/.bash_profile index bebf75e..b78e6d3 100644 --- a/.bash_profile +++ b/.bash_profile @@ -57,6 +57,7 @@ export R_HISTFILE="$XDG_STATE_HOME/R/history" export PERL5LIB="$XDG_DATA_HOME/perl/lib/perl5" export PERL_CPANM_OPT="-l $XDG_DATA_HOME/perl" export PERL_CPANM_HOME="$XDG_DATA_HOME/perl/cpanm" +export PERL_LOCAL_LIB_ROOT="$HOME/.local/share/perl" # }}} # Set the paths used by rust {{{ diff --git a/.config/X11 b/.config/X11 index e5da73f..2b36ebb 160000 --- a/.config/X11 +++ b/.config/X11 @@ -1 +1 @@ -Subproject commit e5da73fea8e9e7e82d3520834893cf30698b3bf4 +Subproject commit 2b36ebbabc4a8d1e4f5bd14485fda21c3c1edeab diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 389d75c..1d4c859 100644 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -110,19 +110,19 @@ - + Twemoji Noto Color Emoji - + Twitter Color Emoji Noto Color Emoji - + Apple Color Emoji Noto Color Emoji @@ -183,9 +183,9 @@ - Comic Sans + Comic Sans MS - Z003 + Comic Neue diff --git a/.config/git/config b/.config/git/config index db0d4ab..f3f6e47 100644 --- a/.config/git/config +++ b/.config/git/config @@ -149,14 +149,15 @@ pager = less -R [alias] + list = shortlog -ns last = log -1 HEAD hist = log --date=short --graph --pretty=log - ls = log --date=short --graph --pretty=color --decorate rev = log --decorate --reverse --no-merges --stat @{1}.. amend = commit --amend -uno -a wdiff = diff --word-diff conflicts = diff --name-only --diff-filter=U root = rev-parse --show-toplevel + head = rev-parse HEAD shallow = clone --single-branch --depth=1 compare = !git log $1...$2 --format=%m\\ %h\\ %s --left-right repush = !git commit --amend -a --no-edit && git push --force-with-lease @@ -179,6 +180,10 @@ insteadOf = http://git.disroot.org/ insteadOf = @disroot: +[url "git@gitlab.archlinux.org:"] + insteadOf = http://gitlab.archlinux.org/ + insteadOf = @arch: + [url "aur@aur.archlinux.org:"] insteadOf = http://aur.archlinux.org/ insteadOf = @aur: diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf index 71ffddf..43fab5a 100644 --- a/.config/mpv/input.conf +++ b/.config/mpv/input.conf @@ -2,7 +2,7 @@ f cycle fullscreen d cycle deinterlace -u cycle video-unscaled +U cycle video-unscaled v cycle sub-visibility x cycle sub X cycle sub down @@ -22,7 +22,8 @@ MBTN_LEFT_DBL cycle fullscreen l cycle-values loop-file "inf" "no" L cycle-values loop-playlist "inf" "no" V cycle-values video-aspect-override "16:9" "4:3" "-1" -H cycle-values hwdec "no" "auto-copy" +H cycle-values hwdec "no" "vaapi" +u cycle-values sub-ass-override "yes" "force" "no" "strip" # }}} diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 732e7c1..b31c697 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -87,6 +87,12 @@ hwdec=vaapi # Specify the video output backend to be used. vo=gpu +# Control the accepted graphics API. +# gpu-api=vulkan +# +# Select the GPU context. +# gpu-context=x11vk + # }}} # Window {{{ @@ -109,8 +115,20 @@ sub-auto=fuzzy # Specify extra directories to search for subtitles. sub-file-paths=Subs -# Specify the position of subtitles on the screen. -sub-pos=99 +# Specify the default subtitle font. +sub-font="FiraGO Medium" + +# }}} + +# Profiles {{{ + +# Restore values when changing profiles. +profile-restore=copy-equal + +[anime] +profile-cond="filename:match('%[ASW]') ~= nil" +sub-ass-override=force +sub-font-size=46 # }}} diff --git a/.config/neofetch/config.conf b/.config/neofetch/config.conf index f06441e..856077d 100755 --- a/.config/neofetch/config.conf +++ b/.config/neofetch/config.conf @@ -13,8 +13,7 @@ get_de_wm() { get_terminal() { ((term_run != 1)) && get_term - ((term_font_run != 1)) && get_term_font - terminal="${term^} ($term_font)" + terminal="$($term --version)" } print_info() { @@ -28,6 +27,7 @@ print_info() { info "Theme" theme info "Icons" icons info "Terminal" terminal + info "Font" term_font info "CPU" cpu info "GPU" gpu info "Memory" memory @@ -122,7 +122,7 @@ gtk3=on # Website to ping for the public IP # Values: 'url' -public_ip_host='https://v4.ident.me' +public_ip_host='https://am.i.mullvad.net/ip' # Public IP timeout. # Values; 'int' @@ -164,4 +164,4 @@ memory_display=off battery_display=bar disk_display=off -# vim:ft=sh: +# vim:ft=bash: diff --git a/.config/nvim b/.config/nvim index 46de54c..7aa06d8 160000 --- a/.config/nvim +++ b/.config/nvim @@ -1 +1 @@ -Subproject commit 46de54cecae3b131117c9f0d88dce80ae6728450 +Subproject commit 7aa06d8155f29d446a91d8707a24ecfcf97a4aa6 diff --git a/.config/nvimpager/init.vim b/.config/nvimpager/init.vim index 806f360..493ffab 100644 --- a/.config/nvimpager/init.vim +++ b/.config/nvimpager/init.vim @@ -13,19 +13,16 @@ let &linebreak = v:true let &packpath = '' -let s:packer = stdpath('data').'/site/pack/packer/' +let s:packer = $XDG_DATA_HOME..'/nvim/site/pack/packer/' let &runtimepath = \ '/usr/share/nvimpager/runtime,'. \ '/usr/share/nvim/runtime,'. \ '/usr/share/vim/vimfiles,'. - \ s:packer.'start/nvim-treesitter,'. \ s:packer.'opt/gruvbox.nvim' + " \ s:packer.'start/nvim-treesitter' -lua < "+y vnoremap "+y -hi String cterm=NONE gui=NONE -hi Special cterm=NONE gui=NONE -hi Comment cterm=italic gui=italic -hi Visual ctermbg=237 guibg=#3A3A3A -hi MatchParen ctermbg=236 guibg=#303030 -hi Todo ctermfg=179 guifg=#D7AF5F - -hi! link Operator GruvboxGreen - -hi NvimPagerFG_red_BG_ ctermfg=9 guifg=#FF0000 -hi NvimPagerFG_green_BG_ ctermfg=40 guifg=#00D700 -hi NvimPagerFG_yellow_BG_ ctermfg=172 guifg=#D78700 +hi String cterm=NONE gui=NONE +hi Special cterm=NONE gui=NONE +hi Comment cterm=italic gui=italic +hi Visual ctermbg=237 guibg=#3A3A3A +hi MatchParen ctermbg=236 guibg=#303030 +hi Todo ctermfg=179 guifg=#D7AF5F +hi diffRemoved ctermfg=9 guifg=#FF0000 +hi diffAdded ctermfg=40 guifg=#00D700 +hi diffChanged ctermfg=172 guifg=#D78700 diff --git a/.config/pip/pip.conf b/.config/pip/pip.conf index 4559b52..7cb31e9 100644 --- a/.config/pip/pip.conf +++ b/.config/pip/pip.conf @@ -19,15 +19,13 @@ local = true [install] # Compile Python source files to bytecode. compile = true -# Include pre-release and development versions. -pre = false # Specify type of progress to be displayed. progress-bar = on +# Use PEP 517 for building source distributions. +use-pep517 = on [wheel] -# Include pre-release and development versions. -pre = true # Specify type of progress to be displayed. progress-bar = on -# vim:ft=dosini: +# vim:ft=confini: diff --git a/.config/plasma-localerc b/.config/plasma-localerc index 2b1a47e..4517c28 100644 --- a/.config/plasma-localerc +++ b/.config/plasma-localerc @@ -10,4 +10,4 @@ useDetailed=true [Translations] LANGUAGE=en_GB -# vim:ft=cfg: +# vim:ft=confini: diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index d93d9db..3642731 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -1,4 +1,4 @@ -config, c = config, c +config, c = config, c # pyright: ignore # Background color for webpages if unset. c.colors.webpage.bg = '' @@ -32,13 +32,13 @@ 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.10', + 'QtWebEngine/5.15.14', 'Chromium/87.0.4280.144', - 'qutebrowser/2.5.2' + 'qutebrowser/3.0.0' )) # Allow JavaScript to read from or write to the clipboard. -c.content.javascript.can_access_clipboard = True +c.content.javascript.clipboard = 'access-paste' # Allow pdf.js to view PDF files in the browser. c.content.pdfjs = True @@ -82,23 +82,34 @@ c.url.auto_search = 'never' # Page to open if :open -t/-b/-w is used without URL. {{{1 c.url.default_page = """https://search.disroot.org/?preferences= -eJx1VU3P2zYM_jXzxUixroedfBg2DCtQ4C2adFeDlmibjSS6opy83q8fFX_EedNe -Elgm-XyQoiPK6JLUHOqA1zpBU_0N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ldTvEPEq12O2Vfip-pcxaeXzyj5z0Oe0k9DR6Qn_s +bY_jlny-N8XTrZ7DnW71ay-6lXCrMMh3H9evfj6kBwcfkgXOCtY2Geq6KvF4I6k- +qbK6T7B0w9D0uV093RvHoR2l2bGXsKrMiJZyxVCyTgWZBSOZCqDdF_sF3Uq1u_GV +ul8CXeWHUFfZS7Cr_BNeIS-biHO9u5Jt3kts3e2QDT-6jWxBehVuvaKwKEg7K-04 +okxc1WWbTmhU-iGsbX3Xj6ZUSbXuhd38xs8jBRkeW5grfs6tlNLhyDxSTc-1ywtf +vwC5iF8wkxAMpRcSlecuY9OxuQg564GFBa6Wp-1NxyG32ae8kXseMeT4xEkmTjLS +8mUMSlXHeRDyMakGyMr7KmhV7t3IIdc0QUPZAWWGeJIB26XJjH01ujhhECezRpMC +-GgF03qS4mA8DZUgpXCmimGkY62deB9dR5ulvuOl8MP9vK7OPcck7IkyX0vfWdrY +YYOEr3SPenjRSHRKkj_gHJ8c8j-XlIa2LF6sWKHCtPJ4LWdQy9g_BdG_qFdmFLj1 +8mtlluHeyoD2yU57lSn_yq-hBSjUoWTylXtceRwnadcydlz-A1zR6ss=&q=%s +""".replace('\n', '') # }}} # Page(s) to open at the start. diff --git a/.config/yay/config.json b/.config/yay/config.json index cc6bc07..640d2f5 100644 --- a/.config/yay/config.json +++ b/.config/yay/config.json @@ -15,7 +15,7 @@ "answeredit": "", "answerupgrade": "", "gitbin": "git", - "gpgbin": "gpg2", + "gpgbin": "gpg", "gpgflags": "", "mflags": "", "sortby": "votes", diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config index dcaca05..e84df9c 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.10.04" +--user-agent "Mozilla/5.0 (Linux x86_64) yt-dlp/2023.07.06" # SponsorBlock categories to create chapters for. --sponsorblock-mark "all" diff --git a/.gitattributes b/.gitattributes index 8a78503..403fe01 100644 --- a/.gitattributes +++ b/.gitattributes @@ -37,6 +37,7 @@ .local/arch/packages.aur.txt linguist-language=Text .local/arch/packages.repo.txt linguist-language=Text +.config/bottom/bottom.toml linguist-language=TOML .config/pypoetry/config.toml linguist-language=TOML .config/nvimpager/init.vim linguist-language=Vim-script diff --git a/.local/arch/packages.aur.txt b/.local/arch/packages.aur.txt index 4be0e30..b3fde94 100644 --- a/.local/arch/packages.aur.txt +++ b/.local/arch/packages.aur.txt @@ -1,18 +1,12 @@ -cfr -discord-ptb +android-apktool-bin easyrpg-player fakepkg kora-icon-theme lib32-gst-plugins-bad lib32-gst-plugins-ugly -mkv-extractor-qt -ntfsprogs-ntfs3 nvim-packer-git nvimpager-git otf-alegreya otf-alegreya-sans -otf-fira-go -otf-firamath -otf-hasklig pandoc-bin shellcheck-bin diff --git a/.local/arch/packages.repo.txt b/.local/arch/packages.repo.txt index 8956f5a..d74650d 100644 --- a/.local/arch/packages.repo.txt +++ b/.local/arch/packages.repo.txt @@ -15,9 +15,11 @@ breeze-icons btop cabextract ccache +cfr clang cmake -desmume-git +desmume +discord-ptb dnscrypt-proxy dolphin dos2unix @@ -97,11 +99,15 @@ node-gyp nodejs noto-fonts-cjk noto-fonts-emoji +ntfsprogs-ntfs3 okteta okular openjdk-doc otf-fantasque-sans-mono otf-fira-code +otf-fira-sans +otf-firamath +otf-hasklig-nerd p7zip pacman-contrib parallel @@ -135,7 +141,6 @@ qemu-ui-opengl qemu-ui-spice-app qemu-ui-spice-core qemu-vhost-user-gpu -qemu-virtiofsd qt5-imageformats qutebrowser rclone @@ -150,29 +155,31 @@ steam syncplay tea terminus-font +texlive-basic +texlive-binextra texlive-bibtexextra texlive-langgreek texlive-latexextra thunderbird -tor-browser trackma-git ttf-caladea ttf-carlito ttf-jetbrains-mono ttf-lato ttf-liberation -ttf-nerd-fonts-symbols-1000-em +ttf-nerd-fonts-symbols ungoogled-chromium unzip vifm virt-manager +virtiofsd vulkan-headers-tkg-git vulkan-icd-loader-git waifu2x-ncnn-vulkan-git webp-pixbuf-loader whois wine-staging -winetricks +winetricks-git words xclip xdg-desktop-portal-kde @@ -186,4 +193,4 @@ yt-dlp zathura zathura-pdf-mupdf zip -zlib-ng +zlib diff --git a/.local/share/bash/functions.sh b/.local/share/bash/functions.sh index c601155..95b9c33 100644 --- a/.local/share/bash/functions.sh +++ b/.local/share/bash/functions.sh @@ -3,9 +3,9 @@ __usage() { if (($1 < $2)); then printf 'Usage: %s %s\n' "${FUNCNAME[1]}" "$3" - return 0 + return 1 fi - return 1 + return 0 } __isnumber() { @@ -13,76 +13,60 @@ __isnumber() { } count() { # Counts the number of characters in a string - __usage $# 1 '' && return 1 + __usage $# 1 '' || return 1 printf '%d\n' "${#1}" } trim() { # Trims leading and trailing whitespace - __usage $# 1 '' && return 1 + __usage $# 1 '' || return 1 : "${1#"${1%%[![:space:]]*}"}" : "${_%"${_##*[![:space:]]}"}" printf '%s\n' "$_" } -dtl() { # Deletes the top lines of a file - __usage $# 2 ' ' && return 1 - (($2 == 0)) && return - declare -a file - mapfile -O "$2" -tn 0 file < "$1" - printf '%s\n' "${file[@]}" > "$1" -} - -dbl() { # Deletes the bottom lines of a file - __usage $# 2 ' ' && return 1 - (($2 == 0)) && return - declare -a file - mapfile -tn 0 file < "$1" - printf '%s\n' "${file[@]:0:$((${#file[@]}-$2))}" > "$1" -} - rot13() { # Encodes/Decodes string in rot13 - __usage $# 1 '' && return 1 + __usage $# 1 '' || return 1 tr 'A-Za-z' 'N-ZA-Mn-za-m' <<< "$1" } tempconv() { # Converts Fahrenheit to Celsius and vice versa - __usage $# 2 ' ' && return 1 + __usage $# 2 ' ' || return 1 if ! __isnumber "$2"; then printf 'The second argument must be a number.\n' >&2 return 1 fi case "$1" in - [Ff]) printf '%d\u02DAC\n' "$((($2 - 32) * 5 / 9))"; return ;; + [Ff]) printf '%d\u02DAC\n' "$((5 * ($2 - 32) / 9))"; return ;; [Cc]) printf '%d\u02DAF\n' "$(($2 * 9 / 5 + 32))"; return ;; - *) __usage 0 1 ' ' && return 1 + *) __usage 0 1 ' ' || return 1 esac } rgb2hex() { # Converts rgb colour to hex - __usage $# 3 ' ' && return 1 + __usage $# 3 ' ' || return 1 printf '#%02x%02x%02x\n' "$1" "$2" "$3" } hex2rgb() { # Converts hex colour to rgb - __usage $# 1 '' && return 1 - declare r g b - ((r="16#${1:0:2}",g="16#${1:2:2}",b="16#${1:4:2}")) - printf '%s\n' "$r $g $b" + __usage $# 1 '' || return 1 + declare -i r g b + ((r=16#${1:0:2},g=16#${1:2:2},b=16#${1:4:2})) + printf '%s %s %s\n' $r $g $b } shuffle() { # Shuffles letters in string - __usage $# 1 '' && return 1 + __usage $# 1 '' || return 1 perl -MList::Util=shuffle -F'' \ -lane 'print shuffle @F' <<< "$1" } weather() { # Shows weather info from wttr.in - __usage $# 1 ' [country]' && return 1 - curl -sS4 "wttr.in/${1}+${2:-Greece}" | head -n -2 + __usage $# 1 ' [country]' || return 1 + curl -fsS4 "v2d.wttr.in/${1}+${2:-Greece}" | head -n -2 } sri() { # Prints the SRI hash of a resource - __usage $# 1 ' [bits]' && return 1 + __usage $# 1 ' [bits]' || return 1 printf 'sha%d-%s\n' "${2:-384}" \ "$(curl -Ss "$1" | shasum -ba "${2:-384}" - | xxd -r -p | base64)" } @@ -92,7 +76,7 @@ myip() { # What's my ip } urlencode() { # Encodes string for url - __usage $# 1 '' && return 1 + __usage $# 1 '' || return 1 declare LANG=C len=${#1} char i for ((i = 0; i < len; ++i)); do char="${1:i:1}" @@ -104,24 +88,19 @@ urlencode() { # Encodes string for url } urldecode() { # Decodes urlencoded string - __usage $# 1 '' && return 1 + __usage $# 1 '' || return 1 printf '%b\n' "${*//%/\\x}" } utf8decode() { # Decodes =?UTF-8?B?...?= string - __usage $# 1 '' && return 1 + __usage $# 1 '' || return 1 [[ $* =~ ^=\?[Uu][Tt][Ff]-8\?[Bb]\?([^?]+)\?=$ ]] printf '%s\n' "$(base64 -d <<< "${BASH_REMATCH[1]}")" } iso2usb() { # Writes an iso to a usb device - __usage $# 2 ' [bs]' && return 1 + __usage $# 2 ' [bs]' || return 1 sudo dd if="$1" of="$2" status=progress bs="${3:-4M}" oflag=sync } -random() { # Prints a random number up to a limit - __usage $# 1 '' && return 1 - printf '%s\n' "$((RANDOM % $1 + 1))" -} - # vim:fdm=syntax:fdl=0: diff --git a/.local/share/gnupg/gpg.conf b/.local/share/gnupg/gpg.conf index b541b23..33b6b05 100644 --- a/.local/share/gnupg/gpg.conf +++ b/.local/share/gnupg/gpg.conf @@ -2,7 +2,7 @@ cert-digest-algo SHA256 # The default key to sign with -default-key C3FC4EB6371B04CC6DDB9EA88A2DEA1DBAEBCA9E +default-key 8A2DEA1DBAEBCA9E # The default algorithms for new key generation default-new-key-algo ed25519/cert,sign+cv25519/encr @@ -19,7 +19,7 @@ disable-cipher-algo IDEA ignore-time-conflict # The server that gpg will communicate with -keyserver hkps://keys.opengpg.org +keyserver hkps://keyserver.ubuntu.com # Suppress the initial copyright message no-greeting diff --git a/.local/share/konsole/Default.profile b/.local/share/konsole/Default.profile index a20db01..9dbbc0b 100644 --- a/.local/share/konsole/Default.profile +++ b/.local/share/konsole/Default.profile @@ -2,10 +2,12 @@ AntiAliasFonts=true BoldIntense=true ColorScheme=Gruvbox8 -Font=Iosevka Custom,15,-1,5,50,0,0,0,0,0 +Font=Iosevka Custom,14,-1,5,50,0,0,0,0,0 +IgnoreWcWidth=false LineSpacing=1 UseFontLineChararacters=true WordMode=true +WordModeAscii=true WordModeAttr=false WordModeBrahmic=false @@ -24,18 +26,20 @@ Parent=FALLBACK/ ShowTerminalSizeHint=true TerminalCenter=true TerminalColumns=120 -TerminalMargin=2 +TerminalMargin=5 TerminalRows=32 [Interaction Options] AllowEscapedLinks=false CopyTextAsHTML=false EscapedLinksSchema=https://;file:// +OpenLinksByDirectClickEnabled=false TextEditorCmd=6 TextEditorCmdCustom= UnderlineFilesEnabled=true [Scrolling] +HighlightScrolledLines=false HistoryMode=1 ScrollBarPosition=2 @@ -43,3 +47,4 @@ ScrollBarPosition=2 BellMode=3 BidiRenderingEnabled=false BlinkingCursorEnabled=true +UrlHintsModifiers=0