1 # WeeChat {#module-services-weechat}
3 [WeeChat](https://weechat.org/) is a fast and
6 ## Basic Usage {#module-services-weechat-basic-usage}
8 By default, the module creates a
9 [`systemd`](https://www.freedesktop.org/wiki/Software/systemd/)
10 unit which runs the chat client in a detached
11 [`screen`](https://www.gnu.org/software/screen/)
14 This can be done by enabling the `weechat` service:
19 services.weechat.enable = true;
23 The service is managed by a dedicated user named `weechat`
24 in the state directory `/var/lib/weechat`.
26 ## Re-attaching to WeeChat {#module-services-weechat-reattach}
28 WeeChat runs in a screen session owned by a dedicated user. To explicitly
29 allow your another user to attach to this session, the
30 `screenrc` needs to be tweaked by adding
31 [multiuser](https://www.gnu.org/software/screen/manual/html_node/Multiuser.html#Multiuser)
35 programs.screen.screenrc = ''
41 Now, the session can be re-attached like this:
43 screen -x weechat/weechat-screen
46 *The session name can be changed using [services.weechat.sessionName.](options.html#opt-services.weechat.sessionName)*