Compare commits

...

4 Commits

Author SHA1 Message Date
y0rune 192bfaa29c Updates
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-04-17 20:13:45 +02:00
y0rune 3649574c71 Updates
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-04-06 16:19:03 +02:00
y0rune 57838f7dc5 neovim: changed lsp config and statusbar due to v0.12 of nvim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-04-06 16:17:41 +02:00
y0rune d2a16da121 karabinier.json: Removed left command as right one
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2026-04-06 16:17:13 +02:00
9 changed files with 85 additions and 72 deletions
+1 -1
View File
@@ -12,12 +12,12 @@ ipcalc
iperf3 iperf3
mtr mtr
neovim neovim
newsboat
parallel parallel
pinentry-mac pinentry-mac
ranger ranger
ripgrep ripgrep
rsync rsync
taplo
telnet telnet
texinfo texinfo
tmux tmux
-3
View File
@@ -1,5 +1,4 @@
alacritty alacritty
brave
chatterino chatterino
dbeaver-community dbeaver-community
discord discord
@@ -22,13 +21,11 @@ rustdesk
scroll-reverser scroll-reverser
signal signal
spotify spotify
stats
telegram telegram
the-unarchiver the-unarchiver
transfer transfer
twingate twingate
visual-studio-code visual-studio-code
vlc vlc
whatsapp
winbox winbox
wireshark wireshark
+1
View File
@@ -1 +1,2 @@
example example
displaylink
-4
View File
@@ -438,10 +438,6 @@
{ {
"from": { "key_code": "caps_lock" }, "from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }] "to": [{ "key_code": "escape" }]
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "right_command" }]
} }
], ],
"virtual_hid_keyboard": { "virtual_hid_keyboard": {
+33 -17
View File
@@ -56,7 +56,6 @@ let g:indentLine_char_list = ['│', '│', '│', '│']
runtime! macros/matchit.vim runtime! macros/matchit.vim
" visual feedback " visual feedback
set laststatus=2
set showmode set showmode
set showcmd set showcmd
@@ -222,12 +221,24 @@ local border = 'rounded'
vim.lsp.config('*', { vim.lsp.config('*', {
capabilities = capabilities, capabilities = capabilities,
handlers = {
["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = border }),
["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = border }),
},
}) })
vim.diagnostic.config({
float = { border = border },
})
vim.lsp.handlers["textDocument/hover"] = function(err, result, ctx, config)
config = config or {}
config.border = border
return vim.lsp.handlers.hover(err, result, ctx, config)
end
vim.lsp.handlers["textDocument/signatureHelp"] = function(err, result, ctx, config)
config = config or {}
config.border = border
return vim.lsp.handlers.signature_help(err, result, ctx, config)
end
-- Server-specific overrides -- Server-specific overrides
vim.lsp.config('yamlls', { vim.lsp.config('yamlls', {
settings = { settings = {
@@ -397,18 +408,23 @@ function! StatuslineGit()
return strlen(l:branchname) > 0?' '.l:branchname.' ':'' return strlen(l:branchname) > 0?' '.l:branchname.' ':''
endfunction endfunction
set statusline= set laststatus=3
set statusline+=%#IncSearch#
set statusline+=%{&filetype!=#''?'\ \ ['.&filetype.']\ ':'\ '} lua <<EOF
set statusline+=%{&modified?'[+]\ ':''} vim.o.statusline = table.concat({
set statusline+=%#CursorLineNr# "%#IncSearch#",
set statusline+=\ %F "%{&filetype!=#''?' ['.&filetype..'] ':' '}",
set statusline+=%= "Right side settings "%{&modified?'[+] ':''}",
set statusline+=%#CursorLineNr# "%#CursorLineNr#",
set statusline+=%{StatuslineGit()} " %F",
set statusline+=%#Search# "%=",
set statusline+=\ %l/%L "%#CursorLineNr#",
set statusline+=\ [%c] "%{StatuslineGit()}",
"%#Search#",
" %l/%L",
" [%c]",
})
EOF
" Disable godoc keys " Disable godoc keys
let g:go_doc_keywordprg_enabled = 0 let g:go_doc_keywordprg_enabled = 0
-24
View File
@@ -259,12 +259,6 @@ function install_ansible-language-server() {
sudo npm -s -g i yaml-language-server --force sudo npm -s -g i yaml-language-server --force
} }
function install_meraki_ansible() {
# Install python, ansible module for meraki
ansible-galaxy collection install cisco.meraki --force
$pip install meraki $PIPEXT
}
function install_azure_cli() { function install_azure_cli() {
# Install azure_cli # Install azure_cli
$install azure-cli $install azure-cli
@@ -275,11 +269,6 @@ function install_awscli() {
$install awscli $install awscli
} }
function install_aws_adfs() {
# Install aws-adfs
$pip install aws-adfs $PIPEXTPRE
}
function install_ytdlp() { function install_ytdlp() {
# Install yt-dlp # Install yt-dlp
$pip install yt-dlp $PIPEXTPRE $pip install yt-dlp $PIPEXTPRE
@@ -444,11 +433,6 @@ function install_tss_client() {
fi fi
} }
function install_taplo() {
# Install taplo
$install taplo
}
function install_precommit() { function install_precommit() {
# Install pre-commit # Install pre-commit
$pip install pre-commit $PIPEXTPRE $pip install pre-commit $PIPEXTPRE
@@ -589,10 +573,6 @@ function install_font_terminess() {
fi fi
} }
function update_zsh() {
omz update
}
function main() { function main() {
command_start update_pip command_start update_pip
command_start install_neovim_module_for_python command_start install_neovim_module_for_python
@@ -614,18 +594,15 @@ function main() {
command_start install_terragrunt command_start install_terragrunt
command_start install_azure_cli command_start install_azure_cli
command_start install_ansible command_start install_ansible
command_start install_meraki_ansible
command_start install_ansible-language-server command_start install_ansible-language-server
command_start install_ytdlp command_start install_ytdlp
command_start install_spotifydl command_start install_spotifydl
command_start install_awscli command_start install_awscli
command_start install_aws_adfs
command_start install_speedtest command_start install_speedtest
command_start install_gh_cli command_start install_gh_cli
command_start install_kubernetes command_start install_kubernetes
command_start install_rust command_start install_rust
command_start install_tss_client "1.5.9" command_start install_tss_client "1.5.9"
command_start install_taplo
command_start install_precommit command_start install_precommit
command_start install_streamlink command_start install_streamlink
command_start install_fzf command_start install_fzf
@@ -635,7 +612,6 @@ function main() {
command_start install_font_terminess command_start install_font_terminess
command_start install_zsh_addons command_start install_zsh_addons
command_start install_brew_programs command_start install_brew_programs
command_start update_zsh
} }
main main
+46 -4
View File
@@ -2,8 +2,8 @@
source "$HOME"/.local/bin/functions source "$HOME"/.local/bin/functions
# Function for creating a python env # Base function for creating a python venv
python_env(){ python_env_base() {
[ -z "$PYTHONVERSION" ] && err "Python version is not set" [ -z "$PYTHONVERSION" ] && err "Python version is not set"
@@ -14,7 +14,49 @@ python_env(){
virtualenv -p "$PYTHONVERSION" .venv virtualenv -p "$PYTHONVERSION" .venv
.venv/bin/python -m pip install --upgrade pip .venv/bin/python -m pip install --upgrade pip
.venv/bin/pip install -r requirements.txt --break --force .venv/bin/pip install pre-commit --break --force
} }
python_env "$@" # Default python env with requirements.txt
python_env() {
python_env_base
if [ -f requirements.txt ]; then
.venv/bin/pip install -r requirements.txt --break --force
timestamp "Installing Python packages from requirements.txt"
fi
}
# Ansible python env
python_env_ansible() {
python_env_base
timestamp "Installing Ansible packages"
.venv/bin/pip install \
ansible \
ansible-core \
ansible-lint \
ansible-parallel \
passlib \
python-tss-sdk \
--break --force
export ANSIBLE_COLLECTIONS_PATH=".venv/collections"
export ANSIBLE_ROLES_PATH=".venv/roles"
timestamp "Installing Ansible Galaxy collections to .venv/collections"
.venv/bin/ansible-galaxy collection install community.general -p .venv/collections --upgrade
timestamp "Installing Ansible Galaxy roles from requirements.yml files to .venv/roles"
find . -maxdepth 3 -name "requirements.yml" -path "*/roles/*" -not -path "./.venv/*" -print0 | while IFS= read -r -d '' req; do
timestamp "Found requirements: $req"
.venv/bin/ansible-galaxy install --force -r "$req" -p .venv/roles
done
}
case "$1" in
ansible)
python_env_ansible
;;
*)
python_env
;;
esac
+2 -2
View File
@@ -4,7 +4,7 @@
/usr/local/bin/mysides add Git file://"$HOME"/git/ /usr/local/bin/mysides add Git file://"$HOME"/git/
/usr/local/bin/mysides add Linux file://"$HOME"/MEGA/Systems/Linux/ /usr/local/bin/mysides add Linux file://"$HOME"/MEGA/Systems/Linux/
/usr/local/bin/mysides add Downloads file://"$HOME"/Downloads/ /usr/local/bin/mysides add Downloads file://"$HOME"/Downloads/
# /usr/local/bin/mysides add Aplications file:///Applications/ /usr/local/bin/mysides add Aplications file:///Applications/
# /usr/local/bin/mysides add Aplications file:///"$HOME"/Applications/ /usr/local/bin/mysides add Aplications file:///"$HOME"/Applications/
/usr/local/bin/mysides add Screenshots file://"$HOME"/Screenshots/ /usr/local/bin/mysides add Screenshots file://"$HOME"/Screenshots/
/usr/local/bin/mysides add Desktop file://"$HOME"/Desktop/ /usr/local/bin/mysides add Desktop file://"$HOME"/Desktop/
+2 -17
View File
@@ -16,10 +16,6 @@ gbranch() {
echo -e "$(git branch "$@")" echo -e "$(git branch "$@")"
} }
dt() {
date +"%Y%m%d%H%M%S"
}
[ -f /etc/gentoo-release ] && export ZSH="/usr/share/zsh/site-contrib/oh-my-zsh" [ -f /etc/gentoo-release ] && export ZSH="/usr/share/zsh/site-contrib/oh-my-zsh"
[ -f /etc/centos-release ] && export ZSH="$HOME/.oh-my-zsh" [ -f /etc/centos-release ] && export ZSH="$HOME/.oh-my-zsh"
[ -f /etc/debian_version ] && export ZSH="$HOME/.oh-my-zsh" [ -f /etc/debian_version ] && export ZSH="$HOME/.oh-my-zsh"
@@ -90,22 +86,11 @@ export PATH=$PATH:$HOME/.cargo/bin
# History # History
export HISTTIMEFORMAT="%F %T " export HISTTIMEFORMAT="%F %T "
# Export for WSL
if [[ "$(uname -sr)" =~ "Microsoft" ]]; then
export GOROOT=/usr/lib/go
fi
# Work # Work
alias ansible-lint-work='GIT_SSH_COMMAND="ssh -i ~/.ssh/work/id_rsa" ansible-lint'
alias ansible-galaxy-work='GIT_SSH_COMMAND="ssh -i ~/.ssh/work/id_rsa" ansible-galaxy'
alias ssh-work="ssh -i ~/.ssh/work/id_rsa" alias ssh-work="ssh -i ~/.ssh/work/id_rsa"
alias rsyncwork="rsync -h --progress -e 'ssh -i ~/.ssh/work/id_rsa'" alias rsyncwork="rsync -h --progress -e 'ssh -i ~/.ssh/work/id_rsa'"
alias git-work='GIT_SSH_COMMAND="ssh -i ~/.ssh/work/id_rsa" git' alias git-work='GIT_SSH_COMMAND="ssh -i ~/.ssh/work/id_rsa" git'
alias git-commit-work="git commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com>'" alias git-commit-work="git commit --author='Marcin Woźniak <marcin.wozniak@vml.com>'"
# Alias ssh
alias ssh-restore="cp -rv ~/ssh-mega/config ~/.ssh/ ; ssh-permissions"
alias ssh-backup="cp -rv ~/.ssh/config ~/ssh-mega/"
# Alias and Export Gentoo # Alias and Export Gentoo
alias svm="sudo $EDITOR /etc/portage/make.conf" alias svm="sudo $EDITOR /etc/portage/make.conf"
@@ -120,7 +105,7 @@ alias feh="feh --edit --scale-down"
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'" alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
alias mylaptop-components="inxi -Fxz" alias mylaptop-components="inxi -Fxz"
alias update_time="sudo ntpdate -b -u vega.cbk.poznan.pl" alias update_time="sudo ntpdate -b -u vega.cbk.poznan.pl"
alias dn='LC_TIME=C /bin/date "+%Y%m%d%H%M%S"' alias dt='LC_TIME=C /bin/date "+%Y%m%d%H%M%S"'
# Alias and Export for Mac # Alias and Export for Mac
if [[ "$(uname)" == "Darwin" ]]; then if [[ "$(uname)" == "Darwin" ]]; then