diff options
-rw-r--r-- | profile | 8 | ||||
-rw-r--r-- | shellrc | 2 | ||||
-rw-r--r-- | zshrc | 10 |
3 files changed, 16 insertions, 4 deletions
@@ -13,4 +13,10 @@ export EDITOR=vim ~/.service/syncthing -q status || ~/.service/syncthing start # And if we are on first terminal also automatically start x server -[ "$(tty)" = "/dev/tty1" ] && exec startx -- vt1 +if [ "$(tty)" = "/dev/tty1" ]; then + if which annoyme >/dev/null 2>&1; then # Check if we are using annoyme + sleep 1 # just little bit of time to give systemd to start tasks + ls ~/.annoyme/*.pid 2>/dev/null >&2 && annoyme + fi + exec startx -- vt1 +fi @@ -18,7 +18,7 @@ alias gdb='gdb -q' alias cgdb='cgdb -q' alias octave='octave-cli -q' alias ssh='TERM="xterm-256color" ssh' -alias feh='feh --magick-timeout 1 -.' +alias feh='feh --magick-timeout 10 -.' export LESS=-R export LESS_TERMCAP_mb=$'\E[1;31m' @@ -36,9 +36,15 @@ bindkey "^[[3~" delete-char bindkey "^[3;5~" delete-char # PROMPT ####################################################### -if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +annoyme_check() { + which annoyme >/dev/null 2>&1 && ls ~/.annoyme/*.pid 2>/dev/null >&2 && \ + echo "%{$fg_bold[red]%}!" +} + +[ $UID -eq 0 ] && NCOLOR="red" || NCOLOR="green" PROMPT="%(?..%{$fg_bold[yellow]%}EXIT: %? -)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} " +)\$(annoyme_check)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} " +unset NCOLOR if [ -e ~/.local/git-prompt.sh ]; then source ~/.local/git-prompt.sh |