1 <chapter xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
5 xml:id="module-services-weechat">
8 <link xlink:href="https://weechat.org/">WeeChat</link> is a fast and
11 <section xml:id="module-services-weechat-basic-usage">
12 <title>Basic Usage</title>
15 By default, the module creates a
16 <literal><link xlink:href="https://www.freedesktop.org/wiki/Software/systemd/">systemd</link></literal>
17 unit which runs the chat client in a detached
18 <literal><link xlink:href="https://www.gnu.org/software/screen/">screen</link></literal>
23 This can be done by enabling the <literal>weechat</literal> service:
28 <link linkend="opt-services.weechat.enable">services.weechat.enable</link> = true;
34 The service is managed by a dedicated user named <literal>weechat</literal>
35 in the state directory <literal>/var/lib/weechat</literal>.
38 <section xml:id="module-services-weechat-reattach">
39 <title>Re-attaching to WeeChat</title>
42 WeeChat runs in a screen session owned by a dedicated user. To explicitly
43 allow your another user to attach to this session, the
44 <literal>screenrc</literal> needs to be tweaked by adding
45 <link xlink:href="https://www.gnu.org/software/screen/manual/html_node/Multiuser.html#Multiuser">multiuser</link>
49 <link linkend="opt-programs.screen.screenrc">programs.screen.screenrc</link> = ''
55 Now, the session can be re-attached like this:
57 screen -x weechat/weechat-screen
62 <emphasis>The session name can be changed using
63 <link linkend="opt-services.weechat.sessionName">services.weechat.sessionName.</link></emphasis>