From 3537925aaee674a2250c087588a7053ddd84b60b Mon Sep 17 00:00:00 2001 From: huyjaky Date: Fri, 14 Mar 2025 10:37:49 +0700 Subject: [PATCH] custom-hypr - up to date zshrc tmux.conf --- .config/.tmux.conf | 1 + .config/.zshrc | 26 ++++++++--- .config/kitty/theme.conf | 90 +++++++++++++++++++++++------------- .config/kitty/userprefs.conf | 1 + .config/lazygit/config.yml | 2 +- 5 files changed, 80 insertions(+), 40 deletions(-) create mode 100644 .config/kitty/userprefs.conf diff --git a/.config/.tmux.conf b/.config/.tmux.conf index 38a682b..ae9c4af 100644 --- a/.config/.tmux.conf +++ b/.config/.tmux.conf @@ -98,6 +98,7 @@ unbind p unbind C-l bind -r h previous-window # select previous window bind -r l next-window +bind -r C-l next-window bind Tab last-window # move to last active window diff --git a/.config/.zshrc b/.config/.zshrc index e6b10b3..88614b3 100644 --- a/.config/.zshrc +++ b/.config/.zshrc @@ -1,7 +1,10 @@ -export QT_IM_MODULE=fcitx # For those who bundle qt im module, e.g. WPS, Anki, you should find a .so file with fcitx in the file name -export QT_IM_MODULE=ibus # For those who bundle ibus im module shipped with Qt, you should find libibusplatforminputcontextplugin.so in the package. -export QT_QPA_PLATFORM=xcb QT_IM_MODULE=ibus # Enforce it to run on X11/XWayland and use ibus im module -export QT_IM_MODULES="wayland;fcitx;ibus" +# export QT_IM_MODULES="wayland;fcitx;ibus" +export QT_QPA_PLATFORM=ibus +export QT_IM_MODULE=fcitx +export GLFW_IM_MODULE=fcitx +export XMODIFIERS=@im=fcitx +export OBSIDIAN_USE_WAYLAND=1 + export SETUPTOOLS_USE_DISTUTILS=1 export DISABLE_AUTO_UPDATE="true" @@ -12,6 +15,7 @@ export PRIMARY_MONITOR_WORKSPACE=1 export SECONDARY_MONITOR_WORKSPACE=2 export VIRTUAL_ENV_DISABLE_PROMPT=1 export MYPYPATH="/home/duckq1u/miniconda3/envs/pytorch" +export EDITOR='nvim' # Added by LM Studio CLI (lms) export PATH="$PATH:/home/duckq1u/.cache/lm-studio/bin" @@ -126,6 +130,17 @@ reloadbar(){ killall ags ydotool ags & } + +gh(){ + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + builtin cd -- "$cwd" + fi + rm -f -- "$tmp" +} + + alias listpkg='pacman -Qm' alias vesktop='vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-v3' # bsidian --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime' alias obsidian='obsidian --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-v3' @@ -138,7 +153,7 @@ alias tmdt='tmux detach' appearance # HACK: Keybindings -bindkey '^g' autosuggest-accept +bindkey '^f' autosuggest-accept bindkey '^p' history-search-backward bindkey '^n' history-search-forward bindkey '^[w' kill-region @@ -164,5 +179,4 @@ else fi unset __conda_setup - # zprof diff --git a/.config/kitty/theme.conf b/.config/kitty/theme.conf index 52be9aa..7a91612 100644 --- a/.config/kitty/theme.conf +++ b/.config/kitty/theme.conf @@ -1,55 +1,79 @@ -# gruvbox-dark colorscheme for kitty -# snazzy theme used as base +## name: Catppuccin Mocha 🌿 +## author: Pocco81 (https://github.com/Pocco81) +## license: MIT +## upstream: https://github.com/catppuccin/kitty/blob/main/mocha.conf +## blurb: Soothing pastel theme for the high-spirited! -cursor #928374 -cursor_text_color background -visual_bell_color #8ec07c -bell_border_color #8ec07c -active_border_color #d3869b -inactive_border_color #665c54 +# The basic colors +foreground #CDD6F4 +background #1E1E2E +selection_foreground #1E1E2E +selection_background #F5E0DC -active_tab_foreground #fbf1c7 -active_tab_background #665c54 -inactive_tab_foreground #a89984 -inactive_tab_background #3c3836 +# Cursor colors +cursor #F5E0DC +cursor_text_color #1E1E2E -foreground #ebdbb2 -background #272727 -selection_foreground #655b53 -selection_background #ebdbb2 -url_color #d65c0d +# URL underline color when hovering with mouse +url_color #B4BEFE + +# Kitty window border colors +active_border_color #CBA6F7 +inactive_border_color #8E95B3 +bell_border_color #EBA0AC + +# OS Window titlebar colors +wayland_titlebar_color system +macos_titlebar_color system + +# Tab bar colors +active_tab_foreground #11111B +active_tab_background #CBA6F7 +inactive_tab_foreground #CDD6F4 +inactive_tab_background #181825 +tab_bar_background #11111B + +# Colors for marks (marked text in the terminal) +mark1_foreground #1E1E2E +mark1_background #87B0F9 +mark2_foreground #1E1E2E +mark2_background #CBA6F7 +mark3_foreground #1E1E2E +mark3_background #74C7EC + +# The 16 terminal colors # black -color0 #272727 -color8 #928373 +color0 #43465A +color8 #43465A # red -color1 #cc231c -color9 #fb4833 +color1 #F38BA8 +color9 #F38BA8 # green -color2 #989719 -color10 #b8ba25 +color2 #A6E3A1 +color10 #A6E3A1 # yellow -color3 #d79920 -color11 #fabc2e +color3 #F9E2AF +color11 #F9E2AF # blue -color4 #448488 -color12 #83a597 +color4 #87B0F9 +color12 #87B0F9 # magenta -color5 #b16185 -color13 #d3859a +color5 #F5C2E7 +color13 #F5C2E7 # cyan -color6 #689d69 -color14 #8ec07b +color6 #94E2D5 +color14 #94E2D5 # white -color7 #a89983 -color15 #ebdbb2 +color7 #CDD6F4 +color15 #A1A8C9 diff --git a/.config/kitty/userprefs.conf b/.config/kitty/userprefs.conf new file mode 100644 index 0000000..aec2a62 --- /dev/null +++ b/.config/kitty/userprefs.conf @@ -0,0 +1 @@ +# Set your personal kitty configuration here diff --git a/.config/lazygit/config.yml b/.config/lazygit/config.yml index e8ae5fc..970bb8c 100644 --- a/.config/lazygit/config.yml +++ b/.config/lazygit/config.yml @@ -1,6 +1,6 @@ gui: showIcons: true - screenMode: half + # screenMode: half git: paging: