From fa6cf37c929d70aaa1953d4165ff75df64752dc3 Mon Sep 17 00:00:00 2001 From: KK Date: Wed, 24 Jun 2026 00:10:05 +0200 Subject: [PATCH] Small updates --- .bashrc | 3 ++- .config/kak/kakrc | 23 ++++++++++++++++++++++- .config/tmux/tmux.conf | 4 ++++ arch-chroot-setup.sh | 2 ++ arch-install.md | 2 ++ 5 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 5dd74bc..7361c15 100644 --- a/.bashrc +++ b/.bashrc @@ -18,6 +18,7 @@ shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=100000 HISTFILESIZE=200000 +HISTTIMEFORMAT='%F %T ' # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. @@ -33,7 +34,7 @@ shopt -s autocd alias ls='ls -lahtr --color=auto' alias vi='kak' alias df='/usr/bin/git --git-dir=$HOME/.dotfilesrepo/ --work-tree=$HOME' -alias unpack='dtrx' +alias unpack='bsdtar -xf' alias imv='imv-wayland' alias sway='sway --unsupported-gpu' diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 8b84a3b..10ab1a3 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -16,8 +16,29 @@ map global user / ': comment-line' # insert four spaces instead of a tab character while in insert mode. map global insert '' -hook global RegisterModified '"' %{ nop %sh{ +hook global InsertChar j %{ try %{ + exec -draft hH jj d + exec -with-hooks +}} +hook global RegisterModified '"' %{ nop %reg{dquote} %sh{ printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 & }} +define-command -hidden paste-system-after %{ + evaluate-commands -save-regs '"' %{ + set-register dquote %sh{ wl-paste --no-newline 2>/dev/null } + execute-keys p + } +} + +define-command -hidden paste-system-before %{ + evaluate-commands -save-regs '"' %{ + set-register dquote %sh{ wl-paste --no-newline 2>/dev/null } + execute-keys P + } +} + +map global normal p ': paste-system-after' +map global normal P ': paste-system-before' + add-highlighter global/ number-lines diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index d81f2e1..313bd11 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -15,6 +15,10 @@ set -g renumber-windows on set -g default-terminal "tmux-256color" set -as terminal-features ",*:RGB" +# Allow terminal escape passthrough for apps such as opencode that use OSC 52 +# clipboard sequences from inside tmux. +set -g allow-passthrough on + # Keep a large scrollback history. set -g history-limit 1000000 diff --git a/arch-chroot-setup.sh b/arch-chroot-setup.sh index f80322d..139a815 100755 --- a/arch-chroot-setup.sh +++ b/arch-chroot-setup.sh @@ -16,6 +16,7 @@ core_packages=( plocate fzf gdb + which ) network_packages=( @@ -34,6 +35,7 @@ desktop_packages=( wl-clipboard xdg-desktop-portal-wlr xdg-user-dirs + xdg-utils grim ) diff --git a/arch-install.md b/arch-install.md index d02efa3..d7dfd38 100644 --- a/arch-install.md +++ b/arch-install.md @@ -12,6 +12,8 @@ base_packages=( amd-ucode # AMD CPU microcode updates loaded by the boot loader sudo # Run commands as root from the user account git # Version control and cloning dotfiles + which + base-devel ) pacstrap -K /mnt "${base_packages[@]}"