From 8345c8656e918069fbe0d9b1f46e1560e50e78b5 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 22 May 2023 17:11:13 +0200 Subject: [PATCH] kitty stuff --- home/.config/kitty/kitty.conf | 8 ++++---- home/.zsh/zshrc | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/home/.config/kitty/kitty.conf b/home/.config/kitty/kitty.conf index be9c56d..3994646 100644 --- a/home/.config/kitty/kitty.conf +++ b/home/.config/kitty/kitty.conf @@ -622,7 +622,7 @@ #: The audio bell. Useful to disable it in environments that require #: silence. - visual_bell_duration 0.1 + visual_bell_duration 0.01 #: The visual bell duration (in seconds). Flash the screen when a bell #: occurs for the specified number of seconds. Set to zero to disable. @@ -1135,7 +1135,7 @@ tab_title_template "{index} {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.ta : Advanced {{{ -# shell . + shell zsh #: The shell program to execute. The default value of . means to use #: whatever shell is set as the default shell for the current user. @@ -1143,7 +1143,7 @@ tab_title_template "{index} {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.ta #: --login and --interactive to ensure that the shell starts in #: interactive mode and reads its startup rc files. -# editor . + editor nvim #: The terminal based text editor (such as vim or nano) to use when #: editing the kitty config file or similar tasks. @@ -1244,7 +1244,7 @@ tab_title_template "{index} {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.ta #: socket or socket-only. Changing this option by reloading the config #: is not supported. -# env + env KITTY_TERM=TRUE #: Specify the environment variables to be set in all child processes. #: Using the name with an equal sign (e.g. env VAR=) will set it to diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index b5eafd6..9ca82f5 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -26,7 +26,7 @@ alias psgrep="ps axu | grep" alias plasmarestart="killall plasmashell; kstart5 plasmashell" alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' alias gg=lazygit -alias kssh="kitty +kitten ssh" +alias reload="source ~/.zshrc" ### Functions function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } @@ -85,5 +85,18 @@ export FZF_CTRL_R_OPTS='--no-sort --exact' ### --- nnn Config ------------------------------------ source ~/.local/share/nnn/quitcd/quitcd.bash_zsh +### --- kitty Config ------------------------------------ +# $KITTY_TERM is a custom envar I set in the kitty conf +# this stuff does not work nicely with tmux, just make them regular aliases. Shows an error if you use them in another terminal +#if [[ "$KITTY_TERM" -eq "TRUE" ]] +#then +# alias ssh="kitty +kitten ssh" +# alias tmux="export KITTY_TERM='TRUE'; tmux" +#fi +alias kssh="kitty +kitten ssh" +alias kimg="kitty +kitten icat" +# kdiff does not work on my system for some reason +#alias kdiff="kitty +kitten diff" + ### --- local Config ------------------------------------ source ~/.local.zsh