From 67bfb06adec12876a806d85a4b5009a2ba0c4950 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 4 Jul 2024 15:22:19 +0300 Subject: [PATCH] upd kitty, upd zsh --- kitty/kitty.conf | 23 +++++++++++++---------- zsh/zshrc | 4 ++++ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/kitty/kitty.conf b/kitty/kitty.conf index bca3b19..5bf030f 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -71,11 +71,11 @@ scrollback_lines -1 # repaint_delay 10 # input_delay 3 # sync_to_monitor yes -# enable_audio_bell yes -# visual_bell_duration 0.0 +enable_audio_bell no +visual_bell_duration 0.1 # visual_bell_color none -# window_alert_on_bell yes -# bell_on_tab "🔔 " +window_alert_on_bell no +bell_on_tab "🔔 " # command_on_bell none # bell_path none # linux_bell_theme __custom @@ -85,7 +85,7 @@ scrollback_lines -1 # enabled_layouts * # window_resize_step_cells 2 # window_resize_step_lines 2 -# window_border_width 0.5pt +window_border_width 0.1pt # draw_minimal_borders yes # window_margin_width 0 # single_window_margin_width -1 @@ -107,20 +107,21 @@ scrollback_lines -1 # tab_bar_edge bottom # tab_bar_margin_width 0.0 # tab_bar_margin_height 0.0 0.0 -tab_bar_style separator +# tab_bar_style separator +tab_bar_style powerline # tab_bar_align left -# tab_bar_min_tabs 2 +tab_bar_min_tabs 1 # tab_switch_strategy previous # tab_fade 0.25 0.5 0.75 1 tab_separator " | " # tab_powerline_style angled # tab_activity_symbol none # tab_title_max_length 0 -# tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}" +tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{index}: {title}" # active_tab_title_template none # active_tab_foreground #000 # active_tab_background #eee -# active_tab_font_style bold-italic +active_tab_font_style bold-italic # inactive_tab_foreground #444 # inactive_tab_background #999 # inactive_tab_font_style normal @@ -311,7 +312,7 @@ background_blur 1 # map kitty_mod+a>l set_background_opacity -0.1 # map kitty_mod+a>1 set_background_opacity 1 # map kitty_mod+a>d set_background_opacity default -# map kitty_mod+delete clear_terminal reset active +map kitty_mod+k clear_terminal reset active # map opt+cmd+r clear_terminal reset active # map cmd+k clear_terminal to_cursor active # map kitty_mod+f5 load_config_file @@ -323,3 +324,5 @@ background_blur 1 # map opt+cmd+h hide_macos_other_apps # map cmd+m minimize_macos_window # map cmd+q quit +map F5 launch --location=hsplit --cwd=current +map F6 launch --location=vsplit --cwd=current diff --git a/zsh/zshrc b/zsh/zshrc index ca3d8e4..13b1078 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -33,6 +33,10 @@ alias m='micro' # Functions function tk() { mkdir -p $1; cd $1; } +function alert() { + notify-send --expire-time=30000 $1 $2 && nohup play ~/.local/share/alarm.wav & +} + ## Options section setopt correct # Auto correct mistakes setopt extendedglob # Extended globbing. Allows using regular expressions with *