Compare commits

...

8 Commits

Author SHA1 Message Date
Arti Zirk 9359a4a193 Fx ssh TERM hack for foot term 2023-09-26 13:37:42 +03:00
Arti Zirk c8cad40f75 Reduce number of render threads in foot
Disabling render threads has performance penalty
but more than 1 thread does not seem to help at all

default is to create `nproc` render threads
2023-09-26 13:20:48 +03:00
Arti Zirk 38b7ebcbfe Switch default terminal to foot
for that nice jump to previous prompt functinality
2023-09-26 13:03:56 +03:00
Arti Zirk fd976244c5 Enable zsh semantic prompt 2023-09-26 13:02:47 +03:00
Arti Zirk 40a3e1571b Fixup foot terminal config 2023-09-26 12:41:51 +03:00
Arti Zirk 5d16610c57 More wezterm tweaks 2023-09-26 12:40:55 +03:00
Arti Zirk 94e8abf192 Add skeleton zsh sematntic prompt code 2023-09-26 12:02:04 +03:00
Arti Zirk 67ed4c20c9 Add note about zsh % end of line mark 2023-09-26 12:02:04 +03:00
5 changed files with 51 additions and 4 deletions

View File

@ -1,9 +1,22 @@
# -*- conf -*-
[main]
font=Terminus:size=12
workers=1
font=Terminus:size=10
include=/usr/share/foot/themes/tango
[colors]
foreground=ffffff
[scrollback]
lines=10000
[url]
osc8-underline=always
[tweak]
#render-timer=osd
#delayed-render-lower=0
#delayed-render-upper=0
# vim: ft=dosini

View File

@ -24,8 +24,7 @@ set $bg "~/Pildid/background.png"
set $lockcmd ~/.bin/swaylock.sh $bg
# Your preferred terminal emulator
#set $term gnome-terminal
set $term alacritty
set $term foot
# Your preferred application launcher
# None: it's recommended that you pass the final command to sway
set $menu rofi -show combi -modes combi -combi-modes "drun,run" -show-icons -normal-window

View File

@ -13,6 +13,7 @@ end
-- This is where you actually apply your config choices
config.font = wezterm.font 'Terminus'
config.adjust_window_size_when_changing_font_size = false
config.color_scheme = 'Tango (base16)'
config.colors = {
-- The default text color
@ -31,6 +32,7 @@ config.window_padding = {
bottom = 0,
}
front_end = "WebGpu"
config.enable_kitty_keyboard = true

View File

@ -0,0 +1,25 @@
_prompt_executing=""
function __prompt_precmd() {
local ret="$?"
if test "$_prompt_executing" != "0"
then
_PROMPT_SAVE_PS1="$PS1"
_PROMPT_SAVE_PS2="$PS2"
PS1=$'%{\e]133;P;k=i\a%}'$PS1$'%{\e]133;B\a\e]122;> \a%}'
PS2=$'%{\e]133;P;k=s\a%}'$PS2$'%{\e]133;B\a%}'
fi
if test "$_prompt_executing" != ""
then
printf "\033]133;D;%s;aid=%s\007" "$ret" "$$"
fi
printf "\033]133;A;cl=m;aid=%s\007" "$$"
_prompt_executing=0
}
function __prompt_preexec() {
PS1="$_PROMPT_SAVE_PS1"
PS2="$_PROMPT_SAVE_PS2"
printf "\033]133;C;\007"
_prompt_executing=1
}
preexec_functions+=(__prompt_preexec)
precmd_functions+=(__prompt_precmd)

10
.zshrc
View File

@ -49,6 +49,14 @@ zstyle ':prompt:grml:left:setup' items rc config-env virtual-env change-root use
# Disable right side sad smiley, works nicer with resized terminal
zstyle ':prompt:grml:right:setup' use-rprompt false
# disable PROMPT_EOL_MARK or also known as % on end of line
# https://unix.stackexchange.com/a/302710
#set +o prompt_cr +o prompt_sp
# enable OSC 133 shell prompt start/end reporting
# so that the terminal can scroll jump between prompts
xsource ~/.config/zsh/functions/semantic-prompt.zsh
# Git based dotfiles setup start
function _config_activate {
export GIT_DIR=$HOME/.cfg/
@ -293,7 +301,7 @@ function npm {
function ssh {
(
if [[ "$TERM" == "alacritty" ]]; then
if [[ "$TERM" == "foot" ]]; then
export TERM=xterm-256color
fi
exec /usr/bin/ssh $@