aboutsummaryrefslogtreecommitdiff
path: root/Shell
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2016-11-24 15:35:43 +0000
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2016-11-24 15:35:43 +0000
commit4662192c374d3c26d8b499b71b667d646c6faf87 (patch)
tree181d8689ac803e02cb3e961b479b2a91f873ff9f /Shell
parent35486f49f10be153ef7c6ae6fd99012e5a29e436 (diff)
downloaddotfiles-4662192c374d3c26d8b499b71b667d646c6faf87.tar.gz
dotfiles-4662192c374d3c26d8b499b71b667d646c6faf87.tar.bz2
dotfiles-4662192c374d3c26d8b499b71b667d646c6faf87.zip
UI stability improvements
Diffstat (limited to 'Shell')
-rw-r--r--Shell/zshrc14
1 files changed, 4 insertions, 10 deletions
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
}
;;