Some updates
This commit is contained in:
@@ -11,7 +11,7 @@ import:
|
|||||||
- ~/.alacritty_local.yml
|
- ~/.alacritty_local.yml
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TERM: xterm-256color
|
TERM: alacritty
|
||||||
|
|
||||||
window:
|
window:
|
||||||
title: Alacritty
|
title: Alacritty
|
||||||
|
|||||||
@@ -40,4 +40,4 @@ feh --bg-scale $HOME/data/nextcloud/wallpaper/wallpaper.png
|
|||||||
#asetroot $HOME/data/nextcloud/wallpaper/animated/current/ -t 50 &
|
#asetroot $HOME/data/nextcloud/wallpaper/animated/current/ -t 50 &
|
||||||
|
|
||||||
dwmblocks &
|
dwmblocks &
|
||||||
exec dwm
|
exec dwm 2> ~/.dwm.log
|
||||||
|
|||||||
@@ -29,12 +29,12 @@ case $TERM in
|
|||||||
# Write some info to terminal title.
|
# Write some info to terminal title.
|
||||||
# This is seen when the shell prompts for input.
|
# This is seen when the shell prompts for input.
|
||||||
function precmd {
|
function precmd {
|
||||||
print -Pn "\e]0;Alacritty - %(1j,%j job%(2j|s|); ,)%~\a"
|
print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%~ - $TERM\a"
|
||||||
}
|
}
|
||||||
# Write command and args to terminal title.
|
# Write command and args to terminal title.
|
||||||
# This is seen while the shell waits for a command to complete.
|
# This is seen while the shell waits for a command to complete.
|
||||||
function preexec {
|
function preexec {
|
||||||
printf "\033]0;Alacritty - %s\a" "$1"
|
printf "\033]0;%s\a" "$1 - $TERM"
|
||||||
}
|
}
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ function scroll () {
|
|||||||
scrolling="$2"
|
scrolling="$2"
|
||||||
temp="$(echo "$scrolling"| sed "s/^\(.\{20\}\)\(.*\)$/\1[\2]/"| sed "s/\[ *\]$//"| sed "s/\[.*\]$//")"
|
temp="$(echo "$scrolling"| sed "s/^\(.\{20\}\)\(.*\)$/\1[\2]/"| sed "s/\[ *\]$//"| sed "s/\[.*\]$//")"
|
||||||
suffix="$3"
|
suffix="$3"
|
||||||
if [ "$(echo -n $scrolling |wc -c)" -gt 20 ]; then
|
if [ "$(echo -n $scrolling |wc -c)" -gt 30 ]; then
|
||||||
echo "$prefix%{T7}$temp%{T-}$suffix"
|
echo "${prefix}${temp}${suffix}"
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
|
|
||||||
zscroll -l 20 \
|
zscroll -l 30 \
|
||||||
--delay 0.2 \
|
--delay 0.2 \
|
||||||
--before-text "$prefix" \
|
--before-text "$prefix" \
|
||||||
--after-text "$suffix" \
|
--after-text "$suffix" \
|
||||||
|
|||||||
Reference in New Issue
Block a user