From eb344f0b2330354f11101ad9dc0c808a15765667 Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 3 Oct 2025 16:27:13 +0200 Subject: Various changes/updates --- linux/home/.config/inputrc | 27 ++++++++++++++++++++++++++- linux/home/.config/kitty/kitty.conf | 4 ++-- linux/home/.config/tmux/tmux.conf | 6 +----- linux/home/.config/user-dirs.dirs | 5 +++-- 4 files changed, 32 insertions(+), 10 deletions(-) (limited to 'linux/home') diff --git a/linux/home/.config/inputrc b/linux/home/.config/inputrc index adfeec4..435f529 100644 --- a/linux/home/.config/inputrc +++ b/linux/home/.config/inputrc @@ -2,12 +2,22 @@ $include /etc/inputrc "\f": clear-screen -set bell-style none +# Enable bracketed paste mode (allows pasting in TUI apps) +set enable-bracketed-paste on +#set enable-bracketed-paste off + +set echo-control-characters off + +# Bind Ctrl+V to accept pasted text +#"\C-v": "\e[200~" +#"\C-v": paste-from-clipboard + set meta-flag on set input-meta on set convert-meta off set output-meta on set show-all-if-ambiguous on # set show-all-if-unmodified on +set bell-style none # Color files by types # Note that this may cause completion text blink in some terminals (e.g. xterm). @@ -39,6 +49,14 @@ $if mode=vi "\e[A": history-search-backward "\e[B": history-search-forward "jk" # escape + + # Enable arrow keys (already default in readline) + "\e[D": backward-char + "\e[C": forward-char + + # Allow Alt+h and Alt+l for navigation + "\eh": backward-char + "\el": forward-char $endif $if mode=emacs @@ -72,6 +90,13 @@ $if mode=emacs "\e[H": beginning-of-line "\e[F": end-of-line + # Enable arrow keys (already default in readline) + "\e[D": backward-char + "\e[C": forward-char + + # Allow Alt+h and Alt+l for navigation + "\eh": backward-char + "\el": forward-char $endif #set editing-mode emacs diff --git a/linux/home/.config/kitty/kitty.conf b/linux/home/.config/kitty/kitty.conf index cbf9f70..e42a1b4 100644 --- a/linux/home/.config/kitty/kitty.conf +++ b/linux/home/.config/kitty/kitty.conf @@ -23,7 +23,7 @@ bold_italic_font auto #: italic_font Operator Mono Book Italic #: bold_italic_font Operator Mono Medium Italic -font_size 9.0 +font_size 13.0 #: Font size (in pts) @@ -333,7 +333,7 @@ background #000000 #: The foreground and background colors -background_opacity 0.7 +background_opacity 0.9 dynamic_background_opacity yes # Increase background opacity ctrl+shift+a>m diff --git a/linux/home/.config/tmux/tmux.conf b/linux/home/.config/tmux/tmux.conf index a62e3e3..3028e2c 100644 --- a/linux/home/.config/tmux/tmux.conf +++ b/linux/home/.config/tmux/tmux.conf @@ -419,7 +419,7 @@ bind-key -n M-y if-shell -F '#{==:#{session_name},virt}' { detach-client -P } { set -gF '@last_session_name' '#S' - display-popup -E -x200% -y0 -w40% -h60% "tmux new-session -A -s virt bash -lc 'echo \"### VM Manager ###\"; echo; echo \"Available VM scripts:\"; ls -1 ~/.scripts/env/virt/ 2>/dev/null || echo \"No scripts found in ~/.scripts/env/virt/\"; echo; echo \"Run your VM by typing its script name (e.g., ubuntu, fedora, win11).\"; exec \$SHELL'" + display-popup -E -x200% -y0 -w40% -h60% "tmux new-session -A -s virt bash -lc 'echo \"### VM Manager ###\"; echo; echo \"Available VM scripts:\"; ls -1 ~/.scripts/virt/ 2>/dev/null || echo \"No scripts found in ~/.scripts/virt/\"; echo; echo \"Run your VM by typing its script name (e.g., ubuntu, fedora, win11).\"; exec \$SHELL'" } # M-H → Open history in popup @@ -747,10 +747,6 @@ set -g status-right '#( \ #set-hook -g after-new-session 'source-file ~/.tmux.conf' #set-hook -g client-attached 'source-file ~/.tmux.conf' - -# Set environment variable from script output -#run-shell 'tmux set-environment -g NERD_FONT_DETECTED "$(~/.config/tmux/detect_nerd_font)"' - ## Reload Status with IP addr, Cpu, Mem and Date bind a run-shell ~/.config/tmux/tmux-toggle-option.sh diff --git a/linux/home/.config/user-dirs.dirs b/linux/home/.config/user-dirs.dirs index 0db0cae..989eb64 100644 --- a/linux/home/.config/user-dirs.dirs +++ b/linux/home/.config/user-dirs.dirs @@ -4,8 +4,8 @@ # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # absolute path. No other format is supported. -# -XDG_DESKTOP_DIR="$HOME/" +# +XDG_DESKTOP_DIR="$HOME/desktop" XDG_DOWNLOAD_DIR="$HOME/downloads" XDG_TEMPLATES_DIR="$HOME/" XDG_PUBLICSHARE_DIR="$HOME/" @@ -13,3 +13,4 @@ XDG_DOCUMENTS_DIR="$HOME/documents" XDG_MUSIC_DIR="$HOME/music" XDG_PICTURES_DIR="$HOME/pictures" XDG_VIDEOS_DIR="$HOME/videos" +XDG_GAMES_DIR="$HOME/games" -- cgit v1.2.3