Add dynamic title to alacritty
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
+ Notifications: dunst
|
+ Notifications: dunst
|
||||||
+ Shell: zsh
|
+ Shell: zsh
|
||||||
+ Terminal: alacritty
|
+ Terminal: alacritty
|
||||||
+ WM: dwm
|
+ WM: [dwm](https://github.com/crammk/dwm) + [dwmblocks](https://github.com/crammk/dwmblocks)
|
||||||
|
|
||||||
## Programs
|
## Programs
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
+ Music: spotify
|
+ Music: spotify
|
||||||
+ Pdf-Viewer: zathura with mupdf
|
+ Pdf-Viewer: zathura with mupdf
|
||||||
+ Screenshots: Flameshot
|
+ Screenshots: Flameshot
|
||||||
+ Video-Player: vlc or mpv
|
+ Video-Player: mpv
|
||||||
|
|
||||||
## Other Dependencies
|
## Other Dependencies
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,11 @@ import:
|
|||||||
- ~/.alacritty_local.yml
|
- ~/.alacritty_local.yml
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TERM: alacritty
|
TERM: xterm-256color
|
||||||
|
|
||||||
window:
|
window:
|
||||||
title: Alacritty
|
title: Alacritty
|
||||||
|
dynamic_title: true
|
||||||
|
|
||||||
dimensions:
|
dimensions:
|
||||||
columns: 0
|
columns: 0
|
||||||
@@ -94,8 +95,6 @@ background_opacity: 1
|
|||||||
selection:
|
selection:
|
||||||
save_to_clipboard: true
|
save_to_clipboard: true
|
||||||
|
|
||||||
window.dynamic_title: true
|
|
||||||
|
|
||||||
cursor:
|
cursor:
|
||||||
# Values for `style`:
|
# Values for `style`:
|
||||||
# - ▇ Block
|
# - ▇ Block
|
||||||
|
|||||||
17
files/.zshrc
17
files/.zshrc
@@ -23,6 +23,23 @@ if [[ -n "$SSH_CONNECTION" ]]; then
|
|||||||
NAME="%{$fg[yellow]%}%m "
|
NAME="%{$fg[yellow]%}%m "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $TERM in
|
||||||
|
(*xterm* | rxvt | alacritty)
|
||||||
|
|
||||||
|
# Write some info to terminal title.
|
||||||
|
# This is seen when the shell prompts for input.
|
||||||
|
function precmd {
|
||||||
|
print -Pn "\e]0;Alacritty@%(1j,%j job%(2j|s|); ,)%~\a"
|
||||||
|
}
|
||||||
|
# Write command and args to terminal title.
|
||||||
|
# This is seen while the shell waits for a command to complete.
|
||||||
|
function preexec {
|
||||||
|
printf "\033]0;%s\a" "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} "
|
export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} "
|
||||||
zstyle ':vcs_info:git:*' formats '|%b '
|
zstyle ':vcs_info:git:*' formats '|%b '
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user