aboutsummaryrefslogtreecommitdiff
path: root/Shell/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'Shell/zshrc')
-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
}
;;