[i3] How to restart i3bar?

  • From: i3.thegrue@xxxxxxxxxxxxxxx
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Tue, 27 Mar 2012 15:49:28 +0200

Hello,

what's the right way to restart i3bar? I would like to play with the
colours...

That's what I came up with, but it's .... ugly:

i3-msg -t command reload
killall i3bar
bar_id=$(i3-msg -t get_bar_config)
i3bar --bar_id=${bar_id:2:10} --socket=/tmp/i3-gru.G1lmRw/ipc-socket.2387 &

btw. I'm still wondering how to find out the socket...


TIA,
--
Markus Grunwald http://www.the-grue.de

Männerchor Markt Kirchseeon Registered Linux User 101577
Notenwart und Webmaster http://counter.li.org
http://www.maennerchor-kirchseeon.de pgp/gpg key ID 15CEDD0A

Fragen zur Mail? http://www.the-grue.de/mail_und_co/

Other related posts:

  • » [i3] How to restart i3bar? - i3 . thegrue