From 4662192c374d3c26d8b499b71b667d646c6faf87 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Thu, 24 Nov 2016 15:35:43 +0000 Subject: UI stability improvements --- Shell/zshrc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'Shell/zshrc') diff --git a/Shell/zshrc b/Shell/zshrc index 6c66349..054f394 100644 --- a/Shell/zshrc +++ b/Shell/zshrc @@ -63,20 +63,14 @@ case $TERM in # Write some info to terminal title. # This is seen when the shell prompts for input. function precmd { -if pgrep "panel" > /dev/null -then - print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%1~\a" - ~/dotfiles/Panel/lemonbar/windows -fi + print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%1~\a" + timeout --signal=KILL 1s ~/dotfiles/Panel/lemonbar/windows } # Write command and args to terminal title. # This is seen while the shell waits for a command to complete. function preexec { -if pgrep "panel" > /dev/null -then - printf "\033]0;%s\a" "$1" - ~/dotfiles/Panel/lemonbar/windows -fi + printf "\033]0;%s\a" "$1" + timeout --signal=KILL 1s ~/dotfiles/Panel/lemonbar/windows } ;; -- cgit v1.2.3-54-g00ecf