diff --git a/Code/User/settings.json b/Code/User/settings.json new file mode 100644 index 0000000..b6e2095 --- /dev/null +++ b/Code/User/settings.json @@ -0,0 +1,27 @@ +{ + "git.confirmSync": false, + "explorer.confirmDelete": false, + "[markdown]": { + "editor.defaultFormatter": "DavidAnson.vscode-markdownlint", + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.minimap.enabled": false, + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features", + }, + "explorer.confirmDragAndDrop": false, + "editor.indentSize": "tabSize", + "editor.tabSize": 2, + "[cpp]": { + "editor.defaultFormatter": "ms-vscode.cpptools", + }, + "claudeCode.preferredLocation": "sidebar", + "git.suggestSmartCommit": false, + "chat.disableAIFeatures": true, + "diffEditor.ignoreTrimWhitespace": false, + "workbench.colorTheme": "Dark Modern", + "[java]": { + "editor.defaultFormatter": "redhat.java", + }, +} diff --git a/bash/aliases.sh b/bash/aliases.sh new file mode 100644 index 0000000..ab8ef6e --- /dev/null +++ b/bash/aliases.sh @@ -0,0 +1,42 @@ +# Alias definitions + +# helper funcs +_git(){ + [ $# -eq 0 ] && { + git status && git branch + } || { + git "$@" + } +} + +# Default aliases +alias ls='ls --color=auto' +alias grep='grep --color=auto' +#alias nyx='nyx -c ~/.config/nyx/config/' + +# Ease of use aliases +alias '..'='cd ../' +alias '...'='cd ../..' +alias google='google-chrome-stable' +alias shotcut='QT_OPENGL=software shotcut' + +# special aliases +alias 'ff'='nvim $(fzf)' +alias ts='date +%Y%m%d%H%M%S' + +# git aliases +alias gs='git status' +alias ga='git add' + +# Single letter aliases +alias d='du_color' +alias g=_git +alias l='ls -alh' +alias n='neofetch --config ~/.config/neofetch.conf' +alias p='pacman' +alias r='ranger' +alias t='tmux' +alias v='nvim' + +# Load in any secret aliases if there may be +[ -f ~/.config/bash/aliases.sh.secret ] && . ~/.config/bash/aliases.sh.secret diff --git a/bash/binds.sh b/bash/binds.sh new file mode 100644 index 0000000..4826547 --- /dev/null +++ b/bash/binds.sh @@ -0,0 +1 @@ +bind '"\C-f":"~/.local/bin/fzf-nvim.sh\n"' diff --git a/bash/env.sh b/bash/env.sh new file mode 100644 index 0000000..40ce8f0 --- /dev/null +++ b/bash/env.sh @@ -0,0 +1,32 @@ +# My default editor +export EDITOR='nvim' + +# Add user created scripts to path +[ -d ~/.local/bin ] && export PATH=$PATH:$HOME/.local/bin + +[ ! -d ~/.config ] && { + echo "Error ~/.config does no exist. Creating." + mkdir ~/.config +} + +export config="$HOME/.config" +export CONFIG="$HOME/.config" + +export CARGO_HOME="$CONFIG/cargo" +export GNUPGHOME="$CONFIG/gnupg" +export __GL_SHADER_DISK_CACHE_PATH="$CONFIG/nv" + +# https://asdf-vm.com/guide/getting-started.html +export ASDF_DIR="$CONFIG/.asdf" +export ASDF_DATA_DIR="$ASDF_DIR" +. "$ASDF_DIR/asdf.sh" +. "$ASDF_DIR/completions/asdf.bash" + +# https://direnv.net/ +eval "$(direnv hook bash)" + +#source ~/sdks/vulkan/1.4.313.0/setup-env.sh + +export DENO_CONFIG="/home/caleb/.config/deno" +export PATH="$DENO_CONFIG/bin:$PATH" + diff --git a/bash/prompt.sh b/bash/prompt.sh new file mode 100755 index 0000000..ba31b36 --- /dev/null +++ b/bash/prompt.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +CLEAR_COLOR="\[\e[0m\]" + +# Default value +prompt=" % " + +prompt="$CLEAR_COLOR[\[\033[1;38m\]\w$CLEAR_COLOR]$CLEAR_COLOR " + +# My custom prompt +#prompt="\[\033[32m\]\u\[\033[36m\]@\[\033[32m\]\h \[\033[37m\]\W\[\033[36m\]$\[\e[0m\] " + +# ParrotOS prompt +# prompt="\[\033[0;31m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]root\[\033[01;33m\]@\[\033[01;96m\]\h'; else echo '\[\033[0;39m\]\u\[\033[01;33m\]@\[\033[01;96m\]\h'; fi)\[\033[0;31m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;31m\]]\n\[\033[0;31m\]\342\224\224\342\224\200\342\224\200\342\225\274 \[\033[0m\]\[\e[01;33m\]\\$\[\e[0m\]" + +# Give prompt to bashrc +echo $prompt diff --git a/dunst/normal.png b/dunst/normal.png new file mode 100644 index 0000000..505e12c Binary files /dev/null and b/dunst/normal.png differ diff --git a/mimeapps.list b/mimeapps.list new file mode 100644 index 0000000..ea2c77f --- /dev/null +++ b/mimeapps.list @@ -0,0 +1,10 @@ + +[Default Applications] +text/html=google-chrome.desktop +x-scheme-handler/http=google-chrome.desktop +x-scheme-handler/https=google-chrome.desktop +x-scheme-handler/about=google-chrome.desktop +x-scheme-handler/unknown=google-chrome.desktop +inode/directory=code.desktop +x-scheme-handler/mochi=mochi.desktop +x-scheme-handler/claude-cli=claude-code-url-handler.desktop diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..cbd2c8a --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,4 @@ +set number +set tabstop=4 +set shiftwidth=4 + diff --git a/pavucontrol.ini b/pavucontrol.ini new file mode 100644 index 0000000..c431993 --- /dev/null +++ b/pavucontrol.ini @@ -0,0 +1,9 @@ +[window] +width=1920 +height=1050 +sinkInputType=1 +sourceOutputType=1 +sinkType=0 +sourceType=1 +showVolumeMeters=1 +hideUnavailableCardProfiles=0 diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..f723ef5 --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,4 @@ +set -g default-terminal "screen-256color" +set -ag terminal-overrides ",screen-256color:RGB" +set -g mouse on +