From ce65dc3e308216f4a398cf65c4ab2a2d1381d769 Mon Sep 17 00:00:00 2001 From: redbeardymcgee Date: Sat, 2 Nov 2024 17:01:50 -0500 Subject: [PATCH] add weechat This is currently incomplete. The volumes mount and weechat launches, but it is flooded with permission errors when trying to set up. Might mount them all individually just to see what happens but that's probably not a sustainable idea going forward. --- README.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/README.md b/README.md index 04a7a78..ab08470 100644 --- a/README.md +++ b/README.md @@ -409,6 +409,64 @@ Environment=WEDGEHOURS=0 Environment=VIP=1 ``` +### ~/.config/containers/systemd/weechat.container + +Optional container to add an always on IRC client. + + +```ini +[Unit] +Description=IRC client +After=gluetun.service +BindsTo=gluetun.service + +[Service] +Restart=on-failure +TimeoutStartSec=900 + +[Install] +WantedBy=default.target + +[Container] +Image=docker.io/weechat/weechat:latest-alpine-slim +ContainerName=weechat +HostName=weechat +AutoUpdate=registry + +Network=container:gluetun + +Volume=/volumes/weechat/dot-config:/home/user/.config +Volume=/volumes/weechat/dot-cache:/home/user/.cache +Volume=/volumes/weechat/dot-local/share:/home/user/.local/share + +# FIXME: Better way to attach stdin and tty +PodmanArgs=-a stdin --tty=true +``` +#### Attach and connect + +```bash +podman attach weechat +/set irc.look.smart_filter on +/set irc.server_default.msg_part "" +/set irc.server_default.msg_quit "" +/set irc.ctcp.clientinfo "" +/set irc.ctcp.finger "" +/set irc.ctcp.source "" +/set irc.ctcp.time "" +/set irc.ctcp.userinfo "" +/set irc.ctcp.version "" +/set irc.ctcp.ping "" +/plugin unload xfer +/set weechat.plugin.autoload "*,!xfer" +/filter add irc_smart * irc_smart_filter * +/server add mam irc.myanonamouse.net/6697 +/set irc.server.mam.username $irc_username +/set irc.server_default.autojoin_dynamic on +/set irc.server.mam.autojoin "#anonamouse.net" +/set irc.server.mam.nicks "$irc_nick1,$irc_nick2" +/connect mam +``` + ### ~/.config/containers/systemd/caddy.container This is an optional container to add a reverse proxy (and more). @@ -473,3 +531,4 @@ Volume=/volumes/caddy/data:/data # Refer to the Caddy docs for more information: # https://caddyserver.com/docs/caddyfile ``` +