From 2f14a896e4b897bd747c24d7ad8e9e7bb3237d03 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 2 Aug 2026 10:34:48 +0200 Subject: update from work --- .config/gdb/gdbinit | 1 + .config/i3/config##template | 2 ++ .config/nvim/init.vim | 6 ++++++ .config/winapps/winapps.conf | 2 +- .local/share/bin/= | 3 +++ .profile | 4 ++++ .zshrc | 2 +- 7 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.config/gdb/gdbinit b/.config/gdb/gdbinit index ba777a8..a2d1f36 100644 --- a/.config/gdb/gdbinit +++ b/.config/gdb/gdbinit @@ -15,6 +15,7 @@ set history size 10000000 set history remove-duplicates 100 set style emoji off set pagination off +set output-radix 16 # aliases alias reset = monitor reset diff --git a/.config/i3/config##template b/.config/i3/config##template index fec43f9..23ba89f 100644 --- a/.config/i3/config##template +++ b/.config/i3/config##template @@ -86,3 +86,5 @@ for_window [title="JidePopup"] floating enable for_window [class="Unturned.x86_64"] floating disable for_window [class="Unturned.x86_64"] fullscreen disable +for_window [class="Microsoft Windows"] floating enable + diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 6214f9e..6d3768c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -102,6 +102,7 @@ Plug 'habamax/vim-asciidoctor' Plug 'lonkaars/coc-khard' Plug 'sile-typesetter/vim-sile' Plug 'ahf/cocci-syntax' +Plug 's3rvac/vim-syntax-jira' " themes Plug 'arzg/vim-colors-xcode' @@ -121,6 +122,9 @@ nnoremap * yiw:let @/='\<=expand("")\>':set hls nnoremap :m +1 nnoremap :m -2 +nnoremap gd :call CocAction('jumpDefinition') +nnoremap d :call CocAction('jumpDefinition', 'vsplit') + imap imap imap @@ -213,6 +217,8 @@ let g:which_key_map.e = 'read and execute after !' nnoremap ] vzt let g:which_key_map[']'] = 'open tag in split' +nnoremap [ :call jobstart(['sdk10-dox-open', expand("")], {'detach': v:true}) + " cmd maps cnoreabbrev W w cnoreabbrev sudow w !sudo tee % diff --git a/.config/winapps/winapps.conf b/.config/winapps/winapps.conf index 2ef2dae..5977f06 100644 --- a/.config/winapps/winapps.conf +++ b/.config/winapps/winapps.conf @@ -4,7 +4,7 @@ VM_NAME="rdpwin" WAFLAVOR="libvirt" RDP_SCALE="100" REMOVABLE_MEDIA="/mnt" -RDP_FLAGS="/cert:tofu /sound /microphone +home-drive -decorations +span /kbd:remap:0x3a=0x1d" +RDP_FLAGS="/cert:ignore /sound /microphone +home-drive -decorations +span /kbd:remap:0x3a=0x1d" DEBUG="true" AUTOPAUSE="off" AUTOPAUSE_TIME="300" diff --git a/.local/share/bin/= b/.local/share/bin/= index 8f3345d..5e69f91 100755 --- a/.local/share/bin/= +++ b/.local/share/bin/= @@ -26,6 +26,9 @@ MIN = min MAX = max BIT = lambda n: 1 << n GENMASK = lambda h, l: (BIT(MAX(h, l) + 1) - 1) ^ (BIT(MIN(h, l)) - 1) +KB = lambda x: x << 10 +MB = lambda x: x << 20 +GB = lambda x: x << 30 try: ans = eval(" ".join(_argv[1:])) diff --git a/.profile b/.profile index 9492394..caf94f9 100644 --- a/.profile +++ b/.profile @@ -122,6 +122,10 @@ export GPG_ID_PASSWORD_STORE="A12ADDD26335FA960FE3C78A9FC7A0100BC4C971" ! [ -d "$XDG_DATA_HOME/gdb" ] && mkdir -p "$XDG_DATA_HOME/gdb" export GDBHISTFILE="$XDG_DATA_HOME/gdb/history" +# GDB +! [ -d "$XDG_DATA_HOME/gdb" ] && mkdir -p "$XDG_DATA_HOME/gdb" +export GDBHISTFILE="$XDG_DATA_HOME/gdb/history" + # secrets [ -f "$HOME/.env" ] && . "$HOME/.env" diff --git a/.zshrc b/.zshrc index f90402e..6220015 100644 --- a/.zshrc +++ b/.zshrc @@ -44,7 +44,7 @@ function cd() { builtin cd "$@" if [ -n "$VIRTUAL_ENV" ] ; then - if [[ "$PWD"/ != "$(dirname "$VIRTUAL_ENV")"/* ]] ; then + if [[ "$PWD"/ != "$(dirname "$VIRTUAL_ENV")"/* ]] && [ ! -z "$(command -v deactivate)" ] ; then deactivate else return -- cgit v1.2.3