From 4ccea5537dec61da0000eab09720d5f65350e3e5 Mon Sep 17 00:00:00 2001 From: koehr Date: Wed, 4 Sep 2019 20:42:15 +0200 Subject: [PATCH] kitty related updates --- dot.config/kitty/kitty.conf | 18 +++++++++--------- dot.zshrc | 1 + zsh/kitty.compl.zsh | 12 ++++++++++++ 3 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 zsh/kitty.compl.zsh diff --git a/dot.config/kitty/kitty.conf b/dot.config/kitty/kitty.conf index 1c10c26..1d5835b 100644 --- a/dot.config/kitty/kitty.conf +++ b/dot.config/kitty/kitty.conf @@ -46,7 +46,7 @@ input_delay 3 sync_to_monitor yes enable_audio_bell no -visual_bell_duration 0.1 +visual_bell_duration 0.0 window_alert_on_bell yes bell_on_tab no @@ -58,16 +58,16 @@ enabled_layouts tall:bias=60,fat:bias=70,stack # window_resize_step_cells 2 # window_resize_step_lines 2 -window_border_width 1.0 +window_border_width 4.0 draw_minimal_borders yes window_margin_width 0.0 # single_window_margin_width -1000.0 window_padding_width 4.0 -active_border_color #00ff00 -inactive_border_color #cccccc +active_border_color #444 +inactive_border_color #333 bell_border_color #ff5a00 -inactive_text_alpha 0.8 +inactive_text_alpha 0.5 tab_bar_edge bottom tab_bar_margin_width 0.0 @@ -77,11 +77,11 @@ tab_bar_style fade tab_fade 0.2 0.5 0.8 1 # tab_separator " ┇" -active_tab_foreground #000 -active_tab_background #eee +active_tab_foreground #eee +active_tab_background #2f2a4b active_tab_font_style bold-italic -inactive_tab_foreground #444 -inactive_tab_background #999 +inactive_tab_foreground #777 +inactive_tab_background #444 inactive_tab_font_style normal foreground #dcdccc diff --git a/dot.zshrc b/dot.zshrc index 746e172..141dade 100644 --- a/dot.zshrc +++ b/dot.zshrc @@ -1,6 +1,7 @@ bindkey -v source ~/.profile source ~/src/pkg/zgen/zgen.zsh +source ~/.zsh/kitty.compl.zsh if ! zgen saved; then echo "running zgen" diff --git a/zsh/kitty.compl.zsh b/zsh/kitty.compl.zsh new file mode 100644 index 0000000..baf1c17 --- /dev/null +++ b/zsh/kitty.compl.zsh @@ -0,0 +1,12 @@ + +_kitty() { + local src + # Send all words up to the word the cursor is currently on + src=$(printf "%s +" "${(@)words[1,$CURRENT]}" | kitty +complete zsh) + if [[ $? == 0 ]]; then + eval ${src} + fi +} +compdef _kitty kitty +