Autostarting tmux + WeeChat
This is another note-to-self post, but I think other people might also be wondering this.
THIS IS ENTIRELY UNTESTED UNTIL THE SHELL WHERE I AM USING THIS REBOOTS THE NEXT TIME!
## Environment
# To avoid having to type absolute paths, append output of `printf "$PATH"`
PATH=
# Locale you wish to use
LANG=fi_FI.UTF-8
# Timezone
TZ=Europe/Helsinki
# The actual autostart magic
@reboot sleep 500 && tmux -2u new-session -s auto -d && tmux send -t auto weechat ENTER
-
@reboot= tell cron to do this on reboot -
sleep 500= the shell where I intent to use this primarily is using NFS and I think it’s reasonable to expect everything to be mounted in five minutes. - `tmux -2u” = force enable 256 colors & UTF-8
-
new-session -s auto -d= start a new session with nameauto(as in automatically started) and detach it -
tmux send -t auto weechat ENTERtypeweechatto tmux session named auto and press ENTER to execute it.
Privacy Badger will take care of third-party tracking the best, but hiding this message takes a more targeted filter such as uBlock Origin (for Firefox) or uBlock Origin Lite (for everything else).
Additionally considering adblocking DNS services such as DNS4EU Protective Resolution With Ad blocking or public AdGuard DNS may be a good idea to clean up your modern internet.
Learn more about targeted advertising!
PS. I am not sorry if this cosmetic filtering targeting script doesn't detect your protection, because this message brings me too many amused messages and smiles for that (and thus this message is here to stay) 🐾