From f87f0e3b0ebb07b5167673c0f404013f71df5903 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Sun, 28 Mar 2021 01:19:52 +0100 Subject: [PATCH] Some updates --- files/.config/alacritty/alacritty.yml | 2 +- files/.xinitrc | 2 +- files/.zshrc | 4 ++-- files/scripts/dwm_bar/song.sh | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/files/.config/alacritty/alacritty.yml b/files/.config/alacritty/alacritty.yml index 6e88df6..d4cfa25 100644 --- a/files/.config/alacritty/alacritty.yml +++ b/files/.config/alacritty/alacritty.yml @@ -11,7 +11,7 @@ import: - ~/.alacritty_local.yml env: - TERM: xterm-256color + TERM: alacritty window: title: Alacritty diff --git a/files/.xinitrc b/files/.xinitrc index 503ace9..a62d100 100755 --- a/files/.xinitrc +++ b/files/.xinitrc @@ -40,4 +40,4 @@ feh --bg-scale $HOME/data/nextcloud/wallpaper/wallpaper.png #asetroot $HOME/data/nextcloud/wallpaper/animated/current/ -t 50 & dwmblocks & -exec dwm +exec dwm 2> ~/.dwm.log diff --git a/files/.zshrc b/files/.zshrc index c3fd2fa..e3d14e0 100644 --- a/files/.zshrc +++ b/files/.zshrc @@ -29,12 +29,12 @@ case $TERM in # 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" + print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%~ - $TERM\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;Alacritty - %s\a" "$1" + printf "\033]0;%s\a" "$1 - $TERM" } ;; diff --git a/files/scripts/dwm_bar/song.sh b/files/scripts/dwm_bar/song.sh index 889becd..b828106 100755 --- a/files/scripts/dwm_bar/song.sh +++ b/files/scripts/dwm_bar/song.sh @@ -5,11 +5,11 @@ function scroll () { scrolling="$2" temp="$(echo "$scrolling"| sed "s/^\(.\{20\}\)\(.*\)$/\1[\2]/"| sed "s/\[ *\]$//"| sed "s/\[.*\]$//")" suffix="$3" - if [ "$(echo -n $scrolling |wc -c)" -gt 20 ]; then - echo "$prefix%{T7}$temp%{T-}$suffix" + if [ "$(echo -n $scrolling |wc -c)" -gt 30 ]; then + echo "${prefix}${temp}${suffix}" sleep 0.5 - zscroll -l 20 \ + zscroll -l 30 \ --delay 0.2 \ --before-text "$prefix" \ --after-text "$suffix" \