index — dotfiles @ 20d68d3de011282727f3fe9701fcce310a0c5135

my dotfiles

changed many things
Christian Krinitsin code@krinitsin.xyz
Sat, 08 Jun 2024 09:52:43 +0200
commit

20d68d3de011282727f3fe9701fcce310a0c5135

parent

69bacb5711520f7397ea0cdc4e75f1dd4e84ba2d

M bash/.bashrcbash/.bashrc

@@ -11,7 +11,6 @@ alias pgs="pass git push"

alias spt="spotify_player -d" alias swconf="nvim ~/.config/sway/config" alias sandisk="sudo mount /dev/sda1 /mnt/sandisk && cd /mnt/sandisk/" -alias fd='cd "$(find ~/documents/ ~/downloads/ ~/.config/ ~/uni/ -type d | fzf -i)"' alias :q="exit" alias ..="cd .." alias v="vim"

@@ -24,6 +23,3 @@

# Start programs eval "$(starship init bash)" eval "$(zoxide init --cmd='cd' bash)" - -# Navtag -#source /home/chris/.scripts/navtag/commands.sh
M nvim/.config/nvim/lua/core/keymaps.luanvim/.config/nvim/lua/core/keymaps.lua

@@ -14,3 +14,6 @@ vim.keymap.set('n', '<C-j>', ':bp<CR>', {})

vim.keymap.set('n', '<C-k>', ':bn<CR>', {}) vim.keymap.set('n', '<leader>ma', ':w<CR>:make<CR>', {}) + +vim.keymap.set('x', 'p', 'P', {}); +vim.keymap.set('x', 'P', 'p', {});
M nvim/.config/nvim/lua/plugins/lspconfig.luanvim/.config/nvim/lua/plugins/lspconfig.lua

@@ -41,6 +41,10 @@ capabilities = require('cmp_nvim_lsp').default_capabilities(),

settings = { texlab = { diagnostics = { ignoredPatterns = { 'Unused label'} } } } } + require'lspconfig'.bashls.setup{ + capabilities = require('cmp_nvim_lsp').default_capabilities(), + } + vim.api.nvim_create_autocmd('LspAttach', { group = vim.api.nvim_create_augroup('UserLspConfig', {}), callback = function(ev)
M qutebrowser/.config/qutebrowser/config.pyqutebrowser/.config/qutebrowser/config.py

@@ -1,14 +1,10 @@

-import dracula.draw - +from qutebrowser.api import interceptor config = config c = c -dracula.draw.blood(c, { - 'spacing': { - 'vertical': 6, - 'horizontal': 8 - } -}) +# apply colors +import everforest.draw +everforest.draw.color(c) config.set("colors.webpage.darkmode.enabled", True)

@@ -23,7 +19,7 @@ c.content.javascript.clipboard="access-paste"

config.set("downloads.location.suggestion", "both") -c.editor.command = ["kitty", "-e", "nvim", "{}"] +c.editor.command = ["alacritty", "-e", "nvim", "{}"] c.colors.webpage.preferred_color_scheme = 'dark' c.colors.webpage.darkmode.enabled = True

@@ -31,6 +27,16 @@ c.colors.webpage.darkmode.algorithm = "lightness-cielab"

c.colors.webpage.darkmode.threshold.foreground = 150 c.colors.webpage.darkmode.threshold.background = 100 c.colors.webpage.darkmode.policy.images = 'always' + +c.aliases['qr'] = 'spawn --userscript qr' + +# Block ads in yt +def filter_yt(info: interceptor.Request): + url = info.request_url + if (url.host() == 'www.youtube.com' and url.path() == '/get_video_info' and '&adformat=' in url.query()): + info.block() + +interceptor.register(filter_yt) # Load existing settings made via :set config.load_autoconfig()
D qutebrowser/.config/qutebrowser/dracula/draw.py

@@ -1,291 +0,0 @@

-def blood(c, options = {}): - palette = { - 'background': '#2b3339', - 'background-alt': '#2d353b', - 'background-attention': '#2b3339', - 'border': '#2b3339', - 'current-line': '#4f585e', - 'selection': '#4f585e', - 'foreground': '#d3c6aa', - 'foreground-alt': '#d3c6aa', - 'foreground-attention': '#859289', - 'comment': '#3a515d', - 'cyan': '#7fbbb3', - 'green': '#a7c080', - 'orange': '#e69875', - 'pink': '#83c092', - 'purple': '#d699b6', - 'red': '#e67e80', - 'yellow': '#dbbc7f' - } - - spacing = options.get('spacing', { - 'vertical': 5, - 'horizontal': 5 - }) - - padding = options.get('padding', { - 'top': spacing['vertical'], - 'right': spacing['horizontal'], - 'bottom': spacing['vertical'], - 'left': spacing['horizontal'] - }) - - ## Background color of the completion widget category headers. - c.colors.completion.category.bg = palette['background'] - - ## Bottom border color of the completion widget category headers. - c.colors.completion.category.border.bottom = palette['border'] - - ## Top border color of the completion widget category headers. - c.colors.completion.category.border.top = palette['border'] - - ## Foreground color of completion widget category headers. - c.colors.completion.category.fg = palette['foreground'] - - ## Background color of the completion widget for even rows. - c.colors.completion.even.bg = palette['background'] - - ## Background color of the completion widget for odd rows. - c.colors.completion.odd.bg = palette['background-alt'] - - ## Text color of the completion widget. - c.colors.completion.fg = palette['foreground'] - - ## Background color of the selected completion item. - c.colors.completion.item.selected.bg = palette['selection'] - - ## Bottom border color of the selected completion item. - c.colors.completion.item.selected.border.bottom = palette['selection'] - - ## Top border color of the completion widget category headers. - c.colors.completion.item.selected.border.top = palette['selection'] - - ## Foreground color of the selected completion item. - c.colors.completion.item.selected.fg = palette['foreground'] - - ## Foreground color of the matched text in the completion. - c.colors.completion.match.fg = palette['orange'] - - ## Color of the scrollbar in completion view - c.colors.completion.scrollbar.bg = palette['background'] - - ## Color of the scrollbar handle in completion view. - c.colors.completion.scrollbar.fg = palette['foreground'] - - ## Background color for the download bar. - c.colors.downloads.bar.bg = palette['background'] - - ## Background color for downloads with errors. - c.colors.downloads.error.bg = palette['background'] - - ## Foreground color for downloads with errors. - c.colors.downloads.error.fg = palette['red'] - - ## Color gradient stop for download backgrounds. - c.colors.downloads.stop.bg = palette['background'] - - ## Color gradient interpolation system for download backgrounds. - ## Type: ColorSystem - ## Valid values: - ## - rgb: Interpolate in the RGB color system. - ## - hsv: Interpolate in the HSV color system. - ## - hsl: Interpolate in the HSL color system. - ## - none: Don't show a gradient. - c.colors.downloads.system.bg = 'none' - - ## Background color for hints. Note that you can use a `rgba(...)` value - ## for transparency. - c.colors.hints.bg = palette['background'] - - ## Font color for hints. - c.colors.hints.fg = palette['purple'] - - ## Hints - c.hints.border = '1px solid ' + palette['background-alt'] - - ## Font color for the matched part of hints. - c.colors.hints.match.fg = palette['foreground-alt'] - - ## Background color of the keyhint widget. - c.colors.keyhint.bg = palette['background'] - - ## Text color for the keyhint widget. - c.colors.keyhint.fg = palette['purple'] - - ## Highlight color for keys to complete the current keychain. - c.colors.keyhint.suffix.fg = palette['selection'] - - ## Background color of an error message. - c.colors.messages.error.bg = palette['background'] - - ## Border color of an error message. - c.colors.messages.error.border = palette['background-alt'] - - ## Foreground color of an error message. - c.colors.messages.error.fg = palette['red'] - - ## Background color of an info message. - c.colors.messages.info.bg = palette['background'] - - ## Border color of an info message. - c.colors.messages.info.border = palette['background-alt'] - - ## Foreground color an info message. - c.colors.messages.info.fg = palette['comment'] - - ## Background color of a warning message. - c.colors.messages.warning.bg = palette['background'] - - ## Border color of a warning message. - c.colors.messages.warning.border = palette['background-alt'] - - ## Foreground color a warning message. - c.colors.messages.warning.fg = palette['red'] - - ## Background color for prompts. - c.colors.prompts.bg = palette['background'] - - # ## Border used around UI elements in prompts. - c.colors.prompts.border = '1px solid ' + palette['background-alt'] - - ## Foreground color for prompts. - c.colors.prompts.fg = palette['cyan'] - - ## Background color for the selected item in filename prompts. - c.colors.prompts.selected.bg = palette['selection'] - - ## Background color of the statusbar in caret mode. - c.colors.statusbar.caret.bg = palette['background'] - - ## Foreground color of the statusbar in caret mode. - c.colors.statusbar.caret.fg = palette['orange'] - - ## Background color of the statusbar in caret mode with a selection. - c.colors.statusbar.caret.selection.bg = palette['background'] - - ## Foreground color of the statusbar in caret mode with a selection. - c.colors.statusbar.caret.selection.fg = palette['orange'] - - ## Background color of the statusbar in command mode. - c.colors.statusbar.command.bg = palette['background'] - - ## Foreground color of the statusbar in command mode. - c.colors.statusbar.command.fg = palette['pink'] - - ## Background color of the statusbar in private browsing + command mode. - c.colors.statusbar.command.private.bg = palette['background'] - - ## Foreground color of the statusbar in private browsing + command mode. - c.colors.statusbar.command.private.fg = palette['foreground-alt'] - - ## Background color of the statusbar in insert mode. - c.colors.statusbar.insert.bg = palette['background-attention'] - - ## Foreground color of the statusbar in insert mode. - c.colors.statusbar.insert.fg = palette['foreground-attention'] - - ## Background color of the statusbar. - c.colors.statusbar.normal.bg = palette['background'] - - ## Foreground color of the statusbar. - c.colors.statusbar.normal.fg = palette['foreground'] - - ## Background color of the statusbar in passthrough mode. - c.colors.statusbar.passthrough.bg = palette['background'] - - ## Foreground color of the statusbar in passthrough mode. - c.colors.statusbar.passthrough.fg = palette['orange'] - - ## Background color of the statusbar in private browsing mode. - c.colors.statusbar.private.bg = palette['background-alt'] - - ## Foreground color of the statusbar in private browsing mode. - c.colors.statusbar.private.fg = palette['foreground-alt'] - - ## Background color of the progress bar. - c.colors.statusbar.progress.bg = palette['background'] - - ## Foreground color of the URL in the statusbar on error. - c.colors.statusbar.url.error.fg = palette['red'] - - ## Default foreground color of the URL in the statusbar. - c.colors.statusbar.url.fg = palette['foreground'] - - ## Foreground color of the URL in the statusbar for hovered links. - c.colors.statusbar.url.hover.fg = palette['cyan'] - - ## Foreground color of the URL in the statusbar on successful load - c.colors.statusbar.url.success.http.fg = palette['green'] - - ## Foreground color of the URL in the statusbar on successful load - c.colors.statusbar.url.success.https.fg = palette['green'] - - ## Foreground color of the URL in the statusbar when there's a warning. - c.colors.statusbar.url.warn.fg = palette['yellow'] - - ## Status bar padding - c.statusbar.padding = padding - - ## Background color of the tab bar. - ## Type: QtColor - c.colors.tabs.bar.bg = palette['selection'] - - ## Background color of unselected even tabs. - ## Type: QtColor - c.colors.tabs.even.bg = palette['selection'] - - ## Foreground color of unselected even tabs. - ## Type: QtColor - c.colors.tabs.even.fg = palette['foreground'] - - ## Color for the tab indicator on errors. - ## Type: QtColor - c.colors.tabs.indicator.error = palette['red'] - - ## Color gradient start for the tab indicator. - ## Type: QtColor - c.colors.tabs.indicator.start = palette['orange'] - - ## Color gradient end for the tab indicator. - ## Type: QtColor - c.colors.tabs.indicator.stop = palette['green'] - - ## Color gradient interpolation system for the tab indicator. - ## Type: ColorSystem - ## Valid values: - ## - rgb: Interpolate in the RGB color system. - ## - hsv: Interpolate in the HSV color system. - ## - hsl: Interpolate in the HSL color system. - ## - none: Don't show a gradient. - c.colors.tabs.indicator.system = 'none' - - ## Background color of unselected odd tabs. - ## Type: QtColor - c.colors.tabs.odd.bg = palette['selection'] - - ## Foreground color of unselected odd tabs. - ## Type: QtColor - c.colors.tabs.odd.fg = palette['foreground'] - - # ## Background color of selected even tabs. - # ## Type: QtColor - c.colors.tabs.selected.even.bg = palette['background'] - - # ## Foreground color of selected even tabs. - # ## Type: QtColor - c.colors.tabs.selected.even.fg = palette['foreground'] - - # ## Background color of selected odd tabs. - # ## Type: QtColor - c.colors.tabs.selected.odd.bg = palette['background'] - - # ## Foreground color of selected odd tabs. - # ## Type: QtColor - c.colors.tabs.selected.odd.fg = palette['foreground'] - - ## Tab padding - c.tabs.padding = padding - c.tabs.indicator.width = 1 - c.tabs.favicons.scale = 1 -
A qutebrowser/.config/qutebrowser/everforest/draw.py

@@ -0,0 +1,300 @@

+def color(c, options = {}): + palette = { + 'background': '#2b3339', + 'background-alt': '#2d353b', + 'background-attention': '#2b3339', + 'border': '#2b3339', + 'current-line': '#4f585e', + 'selection': '#4f585e', + 'foreground': '#d3c6aa', + 'foreground-alt': '#d3c6aa', + 'foreground-attention': '#859289', + 'comment': '#3a515d', + 'cyan': '#7fbbb3', + 'green': '#a7c080', + 'orange': '#e69875', + 'pink': '#83c092', + 'purple': '#d699b6', + 'red': '#e67e80', + 'yellow': '#dbbc7f', + 'black': '#000000' + } + + spacing = { + 'vertical': 6, + 'horizontal': 8 + } + + padding = options.get('padding', { + 'top': spacing['vertical'], + 'right': spacing['horizontal'], + 'bottom': spacing['vertical'], + 'left': spacing['horizontal'] + }) + + ## Background color of the completion widget category headers. + c.colors.completion.category.bg = palette['background'] + + ## Bottom border color of the completion widget category headers. + c.colors.completion.category.border.bottom = palette['border'] + + ## Top border color of the completion widget category headers. + c.colors.completion.category.border.top = palette['border'] + + ## Foreground color of completion widget category headers. + c.colors.completion.category.fg = palette['foreground'] + + ## Background color of the completion widget for even rows. + c.colors.completion.even.bg = palette['background'] + + ## Background color of the completion widget for odd rows. + c.colors.completion.odd.bg = palette['background-alt'] + + ## Text color of the completion widget. + c.colors.completion.fg = palette['foreground'] + + ## Background color of the selected completion item. + c.colors.completion.item.selected.bg = palette['selection'] + + ## Bottom border color of the selected completion item. + c.colors.completion.item.selected.border.bottom = palette['selection'] + + ## Top border color of the completion widget category headers. + c.colors.completion.item.selected.border.top = palette['selection'] + + ## Foreground color of the selected completion item. + c.colors.completion.item.selected.fg = palette['foreground'] + + ## Foreground color of the matched text in the completion. + c.colors.completion.match.fg = palette['orange'] + + ## Color of the scrollbar in completion view + c.colors.completion.scrollbar.bg = palette['background'] + + ## Color of the scrollbar handle in completion view. + c.colors.completion.scrollbar.fg = palette['foreground'] + + ## Background color for the download bar. + c.colors.downloads.bar.bg = palette['background'] + + ## Background color for downloads with errors. + c.colors.downloads.error.bg = palette['background'] + + ## Foreground color for downloads with errors. + c.colors.downloads.error.fg = palette['red'] + + ## Color gradient stop for download backgrounds. + c.colors.downloads.stop.bg = palette['background'] + + ## Color gradient interpolation system for download backgrounds. + ## Type: ColorSystem + ## Valid values: + ## - rgb: Interpolate in the RGB color system. + ## - hsv: Interpolate in the HSV color system. + ## - hsl: Interpolate in the HSL color system. + ## - none: Don't show a gradient. + c.colors.downloads.system.bg = 'none' + + ## Background color for hints. Note that you can use a `rgba(...)` value + ## for transparency. + c.colors.hints.bg = palette['background'] + + ## Font color for hints. + c.colors.hints.fg = palette['purple'] + + ## Hints + c.hints.border = '1px solid ' + palette['background-alt'] + + ## Font color for the matched part of hints. + c.colors.hints.match.fg = palette['foreground-alt'] + + ## Background color of the keyhint widget. + c.colors.keyhint.bg = palette['background'] + + ## Text color for the keyhint widget. + c.colors.keyhint.fg = palette['purple'] + + ## Highlight color for keys to complete the current keychain. + c.colors.keyhint.suffix.fg = palette['selection'] + + ## Background color of an error message. + c.colors.messages.error.bg = palette['background'] + + ## Border color of an error message. + c.colors.messages.error.border = palette['background-alt'] + + ## Foreground color of an error message. + c.colors.messages.error.fg = palette['red'] + + ## Background color of an info message. + c.colors.messages.info.bg = palette['background'] + + ## Border color of an info message. + c.colors.messages.info.border = palette['background-alt'] + + ## Foreground color an info message. + c.colors.messages.info.fg = palette['comment'] + + ## Background color of a warning message. + c.colors.messages.warning.bg = palette['background'] + + ## Border color of a warning message. + c.colors.messages.warning.border = palette['background-alt'] + + ## Foreground color a warning message. + c.colors.messages.warning.fg = palette['red'] + + ## Background color for prompts. + c.colors.prompts.bg = palette['background'] + + # ## Border used around UI elements in prompts. + c.colors.prompts.border = '1px solid ' + palette['background-alt'] + + ## Foreground color for prompts. + c.colors.prompts.fg = palette['cyan'] + + ## Background color for the selected item in filename prompts. + c.colors.prompts.selected.bg = palette['selection'] + + ## Background color of the statusbar in caret mode. + c.colors.statusbar.caret.bg = palette['background'] + + ## Foreground color of the statusbar in caret mode. + c.colors.statusbar.caret.fg = palette['orange'] + + ## Background color of the statusbar in caret mode with a selection. + c.colors.statusbar.caret.selection.bg = palette['background'] + + ## Foreground color of the statusbar in caret mode with a selection. + c.colors.statusbar.caret.selection.fg = palette['orange'] + + ## Background color of the statusbar in command mode. + c.colors.statusbar.command.bg = palette['background'] + + ## Foreground color of the statusbar in command mode. + c.colors.statusbar.command.fg = palette['pink'] + + ## Background color of the statusbar in private browsing + command mode. + c.colors.statusbar.command.private.bg = palette['background'] + + ## Foreground color of the statusbar in private browsing + command mode. + c.colors.statusbar.command.private.fg = palette['foreground-alt'] + + ## Background color of the statusbar in insert mode. + c.colors.statusbar.insert.bg = palette['background-attention'] + + ## Foreground color of the statusbar in insert mode. + c.colors.statusbar.insert.fg = palette['foreground-attention'] + + ## Background color of the statusbar. + c.colors.statusbar.normal.bg = palette['background'] + + ## Foreground color of the statusbar. + c.colors.statusbar.normal.fg = palette['foreground'] + + ## Background color of the statusbar in passthrough mode. + c.colors.statusbar.passthrough.bg = palette['background'] + + ## Foreground color of the statusbar in passthrough mode. + c.colors.statusbar.passthrough.fg = palette['orange'] + + ## Background color of the statusbar in private browsing mode. + c.colors.statusbar.private.bg = palette['background-alt'] + + ## Foreground color of the statusbar in private browsing mode. + c.colors.statusbar.private.fg = palette['foreground-alt'] + + ## Background color of the progress bar. + c.colors.statusbar.progress.bg = palette['background'] + + ## Foreground color of the URL in the statusbar on error. + c.colors.statusbar.url.error.fg = palette['red'] + + ## Default foreground color of the URL in the statusbar. + c.colors.statusbar.url.fg = palette['foreground'] + + ## Foreground color of the URL in the statusbar for hovered links. + c.colors.statusbar.url.hover.fg = palette['cyan'] + + ## Foreground color of the URL in the statusbar on successful load + c.colors.statusbar.url.success.http.fg = palette['green'] + + ## Foreground color of the URL in the statusbar on successful load + c.colors.statusbar.url.success.https.fg = palette['green'] + + ## Foreground color of the URL in the statusbar when there's a warning. + c.colors.statusbar.url.warn.fg = palette['yellow'] + + ## Status bar padding + c.statusbar.padding = padding + + ## Background color of the tab bar. + ## Type: QtColor + c.colors.tabs.bar.bg = palette['selection'] + + ## Background color of unselected even tabs. + ## Type: QtColor + c.colors.tabs.even.bg = palette['selection'] + + ## Foreground color of unselected even tabs. + ## Type: QtColor + c.colors.tabs.even.fg = palette['foreground'] + + ## Color for the tab indicator on errors. + ## Type: QtColor + c.colors.tabs.indicator.error = palette['red'] + + ## Color gradient start for the tab indicator. + ## Type: QtColor + c.colors.tabs.indicator.start = palette['orange'] + + ## Color gradient end for the tab indicator. + ## Type: QtColor + c.colors.tabs.indicator.stop = palette['green'] + + ## Color gradient interpolation system for the tab indicator. + ## Type: ColorSystem + ## Valid values: + ## - rgb: Interpolate in the RGB color system. + ## - hsv: Interpolate in the HSV color system. + ## - hsl: Interpolate in the HSL color system. + ## - none: Don't show a gradient. + c.colors.tabs.indicator.system = 'none' + + ## Background color of unselected odd tabs. + ## Type: QtColor + c.colors.tabs.odd.bg = palette['selection'] + + ## Foreground color of unselected odd tabs. + ## Type: QtColor + c.colors.tabs.odd.fg = palette['foreground'] + + # ## Background color of selected even tabs. + # ## Type: QtColor + c.colors.tabs.selected.even.bg = palette['background'] + + # ## Foreground color of selected even tabs. + # ## Type: QtColor + c.colors.tabs.selected.even.fg = palette['foreground'] + + # ## Background color of selected odd tabs. + # ## Type: QtColor + c.colors.tabs.selected.odd.bg = palette['background'] + + # ## Foreground color of selected odd tabs. + # ## Type: QtColor + c.colors.tabs.selected.odd.fg = palette['foreground'] + + ## Tab padding + c.tabs.padding = padding + c.tabs.indicator.width = 1 + c.tabs.favicons.scale = 1 + + c.colors.contextmenu.menu.bg = palette['background'] + c.colors.contextmenu.selected.bg = palette['foreground'] + + c.colors.contextmenu.menu.fg = palette['foreground'] + c.colors.contextmenu.selected.fg = palette['background'] + + c.colors.contextmenu.disabled.bg = palette['selection'] + c.colors.contextmenu.disabled.fg = palette['black']
M scripts/install-packages.shscripts/install-packages.sh

@@ -1,7 +1,7 @@

#!/usr/bin/bash # install packages -sudo pacman -S fzf grim pacman-contrib python-tldextract pass gnupg base-devel libnotify wl-clipboard qt6-wayland xorg-server-xwayland nerd-fonts zoxide waybar bison startup-notification flex wayland-protocols pkg-config cmake gcc alacritty dunst neovim qutebrowser starship xdg-user-dirs zathura zathura-pdf-mupdf meson ninja +sudo pacman -S bash-completion fzf grim pacman-contrib python-tldextract pass gnupg base-devel libnotify wl-clipboard qt6-wayland xorg-server-xwayland nerd-fonts zoxide waybar bison startup-notification flex wayland-protocols pkg-config cmake gcc alacritty dunst neovim qutebrowser starship xdg-user-dirs zathura zathura-pdf-mupdf meson ninja sudo pacman -S pipewire pipewire-audio pipewire-alsa pipewire-pulse pavucontrol
M scripts/lsp.shscripts/lsp.sh

@@ -1,4 +1,4 @@

#!/usr/bin/bash -sudo pacman -S lua-language-server clang rust-analyzer texlab +sudo pacman -S lua-language-server clang rust-analyzer texlab bash-language-server