diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2016-11-24 15:35:43 +0000 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2016-11-24 15:35:43 +0000 |
commit | 4662192c374d3c26d8b499b71b667d646c6faf87 (patch) | |
tree | 181d8689ac803e02cb3e961b479b2a91f873ff9f | |
parent | 35486f49f10be153ef7c6ae6fd99012e5a29e436 (diff) | |
download | dotfiles-4662192c374d3c26d8b499b71b667d646c6faf87.tar.gz dotfiles-4662192c374d3c26d8b499b71b667d646c6faf87.tar.bz2 dotfiles-4662192c374d3c26d8b499b71b667d646c6faf87.zip |
UI stability improvements
-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 } ;; |