Skip to content

Restarting luastatus

shdown edited this page Sep 24, 2018 · 3 revisions
  • i3: i3-msg restart

  • lemonbar: pkill -x lemonbar; luastatus-lemonbar-launcher <...args...>

  • dwm, wmii: pkill -x luastatus; luastatus <...args...>

  • stdout/general case: launch luastatus with

    #!/bin/sh
    while true; do
        luastatus <...args...>
        if [ $? -ne 129 ]; then  # not SIGHUP
            break
        fi
    done

    and restart with pkill -HUP -x luastatus

Clone this wiki locally