diff options
-rwxr-xr-x | Panel/lemonbar/windows | 2 | ||||
-rw-r--r-- | Shell/zshrc | 14 |
2 files changed, 5 insertions, 11 deletions
diff --git a/Panel/lemonbar/windows b/Panel/lemonbar/windows index b37270f..e5ae808 100755 --- a/Panel/lemonbar/windows +++ b/Panel/lemonbar/windows @@ -1,3 +1,3 @@ #!/bin/bash echo 'Wclear' > /tmp/panel-fifo -ratpoison -c 'windows %s%n %t' | while read line;do echo "${line}" | cut -c -25 > /tmp/panel-fifo;done +ratpoison -c 'windows %s%n %t' | while read line;do echo "${line}" | cut -c -25 > /tmp/panel-fifo && sleep 0.004;done 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 } ;; |