Compare commits

...

3 Commits

Author SHA1 Message Date
319fceddd0 various 2024-04-03 00:08:40 +02:00
a1354d13fd bunch of config files 2024-03-30 01:19:14 +01:00
b9262745cb layout for gnu stow 2024-03-18 00:36:04 +01:00
16 changed files with 336 additions and 34 deletions

6
.Rprofile Normal file
View File

@ -0,0 +1,6 @@
# Default CRAN repository
local({
r <- getOption("repos")
r["CRAN"] <- "https://cran.r-project.org"
options(repos=r)
})

View File

@ -50,57 +50,57 @@
"command": "workbench.files.action.focusFilesExplorer"
},
{
"key": "cmd+n",
"key": "ctrl+n",
"command": "explorer.newFile",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "cmd+d",
"key": "ctrl+d",
"command": "explorer.newFolder",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// ----------------- 3. SYMBOL MANAGEMENT ----------------
{
"key": "shift+cmd+r",
"key": "shift+ctrl+r",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+i",
"key": "shift+ctrl+i",
"command": "editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+d",
"key": "shift+ctrl+d",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
// ------------- 4. VARIOUS EDITOR SHORTCUTS -------------
{
"key": "cmd+d",
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+t",
"key": "ctrl+t",
"command": "workbench.action.createTerminalEditor"
},
{
"key": "cmd+u",
"key": "ctrl+u",
"command": "workbench.action.showAllSymbols"
},
{
"key": "cmd+r",
"key": "ctrl+r",
"command": "editor.action.startFindReplaceAction",
"when": "editorFocus && findInputFocussed"
},
{
"key": "shift+cmd+w",
"key": "shift+ctrl+w",
"command": "workbench.action.closeAllGroups"
},
// ----------------- 4. REMOVED SHORTCUTS ----------------
{
"key": "cmd+d",
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
@ -110,28 +110,28 @@
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+t",
"key": "ctrl+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "cmd+u",
"key": "ctrl+u",
"command": "-cursorUndo",
"when": "textInputFocus"
},
{
"key": "cmd+k down",
"key": "ctrl+k down",
"command": "-workbench.action.moveActiveEditorGroupDown"
},
{
"key": "cmd+k left",
"key": "ctrl+k left",
"command": "-workbench.action.moveActiveEditorGroupLeft"
},
{
"key": "cmd+k right",
"key": "ctrl+k right",
"command": "-workbench.action.moveActiveEditorGroupRight"
},
{
"key": "cmd+k up",
"key": "ctrl+k up",
"command": "-workbench.action.moveActiveEditorGroupUp"
},
{
@ -150,20 +150,20 @@
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+r",
"key": "shift+ctrl+r",
"command": "-rerunSearchEditorSearch",
"when": "inSearchEditor"
},
{
"key": "shift+cmd+w",
"key": "shift+ctrl+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "cmd+k shift+cmd+w",
"key": "ctrl+k shift+ctrl+w",
"command": "-workbench.action.closeAllGroups"
},
{
"key": "shift+cmd+d",
"key": "shift+ctrl+d",
"command": "-workbench.view.debug",
"when": "viewContainer.workbench.view.debug.enabled"
},
@ -173,26 +173,26 @@
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+[Comma] cmd+i",
"key": "shift+ctrl+[Comma] ctrl+i",
"command": "-testing.toggleInlineTestOutput"
},
{
"key": "shift+cmd+i",
"key": "shift+ctrl+i",
"command": "-workbench.action.quickchat.toggle",
"when": "hasChatProvider"
},
{
"key": "shift+cmd+[Comma] shift+cmd+i",
"key": "shift+ctrl+[Comma] shift+ctrl+i",
"command": "-testing.toggleInlineCoverage",
"when": "testing.isTestCoverageOpen"
},
{
"key": "cmd+f12",
"key": "ctrl+f12",
"command": "-editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+f12",
"key": "shift+ctrl+f12",
"command": "-editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},

View File

@ -1,8 +1,8 @@
{
//
// Appearance
"workbench.colorTheme": "Monokai Pro (Filter Octagon)",
"workbench.iconTheme": "Monokai Pro (Filter Octagon) Icons",
"workbench.colorTheme": "Monokai Pro",
"workbench.iconTheme": "Monokai Pro Icons",
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 18,
"editor.fontWeight": "normal",
@ -11,6 +11,7 @@
"editor.minimap.renderCharacters": false,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"window.titleBarStyle": "custom",
//
// Excluded files and directories
"files.exclude": {

View File

@ -0,0 +1,97 @@
live_config_reload = true
[bell]
animation = "EaseOutExpo"
color = "0xffffff"
duration = 0
[colors]
draw_bold_text_with_bright_colors = false
[colors.bright]
black = "#7B7B7B"
blue = "#B5DCFE"
cyan = "#DFDFFD"
green = "#CEFFAB"
magenta = "#FB9BFE"
red = "#AF4B57"
white = "#FEFFFE"
yellow = "#FFFECC"
[colors.cursor]
cursor = "0x4d4d4c"
text = "0xffffff"
[colors.normal]
black = "#4F4F4F"
blue = "#7D90A4"
cyan = "#85A6A5"
green = "#AFD383"
magenta = "#A4799D"
red = "#AF4B57"
white = "#EEEDEE"
yellow = "#E5C079"
[colors.primary]
background = "#1C1F27"
foreground = "#979CAC"
[cursor]
style = "Block"
unfocused_hollow = true
[debug]
log_level = "OFF"
persistent_logging = false
print_events = false
render_timer = false
[font]
size = 16.0
[font.bold]
family = "Source Code Pro"
style = "Bold"
[font.glyph_offset]
x = 0
y = 0
[font.italic]
family = "Source Code Pro"
style = "Italic"
[font.normal]
family = "Source Code Pro"
style = "Regular"
[font.offset]
x = 0
y = 0
[mouse]
bindings = [
{ action = "PasteSelection", mouse = "Middle" },
]
[scrolling]
history = 100000
multiplier = 3
[selection]
save_to_clipboard = false
semantic_escape_chars = ",│`|:\"' ()[]{}<>"
[window]
decorations = "full"
dynamic_padding = false
opacity = 1
startup_mode = "windowed"
[window.dimensions]
columns = 85
lines = 40
[window.padding]
x = 5
y = 5

155
.config/gSnap/layouts.json Normal file
View File

@ -0,0 +1,155 @@
{
"workspaces": [
[
{
"current": 2
},
{
"current": 3
}
],
[
{
"current": 2
},
{
"current": 3
}
]
],
"definitions": [
{
"name": "None",
"type": 0,
"length": 100,
"items": []
},
{
"name": "Default Monitor 0",
"type": 0,
"length": 100,
"items": [
{
"length": 33.358974358974365,
"items": []
},
{
"length": 66.64102564102564,
"items": []
}
]
},
{
"name" : "Default Monitor 1",
"type" : 1,
"length": 100,
"items" : [
{
"length": 38
},
{
"length" : 62
}
]
},
{
"name": "2 Column Split",
"type": 0,
"length": 100,
"items": [
{
"type": 1,
"length": 50,
"items": []
},
{
"type": 1,
"length": 50,
"items": []
}
]
},
{
"name": "3 Column",
"type": 0,
"length": 100,
"items": [
{
"type": 1,
"length": 33,
"items": []
},
{
"type": 1,
"length": 34,
"items": []
},
{
"type": 1,
"length": 33,
"items": []
}
]
},
{
"name": "3 Column (Focused)",
"type": 0,
"length": 100,
"items": [
{
"type": 1,
"length": 25,
"items": []
},
{
"type": 1,
"length": 50,
"items": []
},
{
"type": 1,
"length": 25,
"items": []
}
]
},
{
"name": "3 Columns (Custom)",
"type": 0,
"length": 100,
"items": [
{
"type": 1,
"length": 42,
"items": []
},
{
"type": 1,
"length": 16,
"items": [
{
"type": 0,
"length": 33,
"items": []
},
{
"type": 0,
"length": 34,
"items": []
},
{
"type": 0,
"length": 33,
"items": []
}
]
},
{
"type": 1,
"length": 42,
"items": []
}
]
}
]
}

1
.config/gdb/gdbinit Normal file
View File

@ -0,0 +1 @@
add-auto-load-safe-path /home/paul/code/ma/repo/scripts/gdb/vmlinux-gdb.py

View File

@ -0,0 +1,2 @@
gui:
mouseEvents: false

View File

@ -3,7 +3,13 @@ unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using |<7C>(vertically) and - (horizontally)
# use command prompt shortcut similar to vscode
bind-key -n C-p command-prompt
# since tmux prefix is now ctrl+a, use ctrl+b to send ctrl+a to program
bind-key -n C-b send C-a
# split panes using | (vertically) and - (horizontally)
bind / split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

3
.zprofile Normal file
View File

@ -0,0 +1,3 @@
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"

View File

@ -70,7 +70,7 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git zsh-autosuggestions macos pip pyenv docker autojump colorize copyfile brew)
plugins=(git zsh-autosuggestions macos pip pyenv docker colorize copyfile brew)
source $ZSH/oh-my-zsh.sh
@ -100,11 +100,20 @@ fi
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# pyenv stuff
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# Reboot to Windows
reboot_windows()
{
windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2)
sudo grub-reboot "$windows_title" && sudo reboot
}
alias reboot-windows='reboot_windows'
# Command aliases
alias py=python3
alias ll="ls -lah"
@ -124,6 +133,8 @@ alias home="cd ~"
alias userchrome="$EDITOR /Users/paul/Library/Application\ Support/Firefox/Profiles/k37hu3wo.default-release/chrome/userChrome.css"
alias kw='echo Current Week: $((10#$(date +"%V")))'
alias wol=wakeonlan
alias ge=gnome-extensions
alias open="xdg-open"
# Python tkinter stuff
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
@ -142,19 +153,39 @@ alias mount-ds='[ -e "/Volumes/pauls-dateien" ] || open "smb://paul@192.168.193.
# vscode shortcuts
alias ma="code --folder-uri=vscode-remote://ssh-remote+sralab/home/2021/pau.aumann/ma"
alias ws="code ~/Code/wasteside-v2"
alias ws="cd ~/code/wasteside && code . && tmux new -A -s wasteside"
# iTerm2 integration
source ~/.iterm2_shell_integration.zsh
# Fix ls colors for synology directories
LS_COLORS+=':ow=01;33'
# Fix colors for ssh sessions
TERM=xterm-256color
# history
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
# reload "blur my shell"
alias blur-my-shell="gnome-extensions disable blur-my-shell@aunetx && gnome-extensions enable blur-my-shell@aunetx"
alias bms=blur-my-shell
# zoxide
eval "$(zoxide init --cmd cd zsh)"
# disable suspend while ssh is active
if [ "$SSH_CLIENT" ] &&
! pstree -ps $$ |
grep -q -- '-systemd-inhibit(' >/dev/null; then
echo "Inhibiting automatic standby"
exec /usr/bin/systemd-inhibit \
--what=idle --why='Interactive SSH Session' -- \
"$SHELL" "$@"
fi
# SDKMAN & Java
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"