all repos — dotfiles @ fbdf169e570941785d2aad8b4e6e69663aa44fa1

my *nix dotfiles

Add weechat greentext plugin
Anirudh Oppiliappan x@icyphox.sh
Wed, 16 Sep 2020 12:21:01 +0530
commit

fbdf169e570941785d2aad8b4e6e69663aa44fa1

parent

6a82198b59d05249daa3a40e0e130e9ab6799cd4

2 files changed, 67 insertions(+), 47 deletions(-)

jump to
A weechat/gt.py

@@ -0,0 +1,16 @@

+import weechat +# modifies the string about to be sent to the IRC server +# thus, not interfering with non-IRC buffer text like wee-slack + +weechat.register( + "gt.py", "icyphox", "1.0", "MIT", "greentexting like the hacker called 4chan", "", "" +) + +def greentext_cb(data, modifier, modifier_data, string): + parts = string.split(':') + if parts[1].startswith(">"): + parts[1] = ":" + parts[1].replace(">", "\x033" + ">") + return "".join(parts) + return string + +weechat.hook_modifier("irc_out1_privmsg", "greentext_cb", "")
M weechat/weechat.confweechat/weechat.conf

@@ -390,55 +390,59 @@ title.type = window

[layout] default.buffer = "core;weechat;1" -default.buffer = "irc;server.freenode;2" -default.buffer = "irc;freenode.#kisslinux;3" -default.buffer = "irc;freenode.#lobsters;4" -default.buffer = "irc;freenode.#openbsd;5" -default.buffer = "irc;freenode.#radare;6" -default.buffer = "irc;server.rizon;7" -default.buffer = "irc;rizon.#based;8" -default.buffer = "irc;rizon.#buddy;9" -default.buffer = "irc;rizon.#crimson;10" -default.buffer = "irc;rizon.#homescreen;11" -default.buffer = "irc;rizon.#rice;12" -default.buffer = "irc;rizon.gnu;13" -default.buffer = "python;makera-org.slack.com;14" -default.buffer = "python;makera-org.slack.com.#bugs;15" -default.buffer = "python;makera-org.slack.com.#celebrations;16" -default.buffer = "python;makera-org.slack.com.#design;17" -default.buffer = "python;makera-org.slack.com.#dev;18" -default.buffer = "python;makera-org.slack.com.#general;19" -default.buffer = "python;makera-org.slack.com.#innerjourney;20" -default.buffer = "python;makera-org.slack.com.#legal;21" -default.buffer = "python;makera-org.slack.com.#makera;22" -default.buffer = "python;makera-org.slack.com.#random;23" -default.buffer = "python;makera-org.slack.com.#ycombinator;24" -default.buffer = "python;makera-org.slack.com.Abhishek;25" -default.buffer = "python;makera-org.slack.com.Anirudh;26" -default.buffer = "python;makera-org.slack.com.Dish;27" -default.buffer = "python;makera-org.slack.com.GitHub;28" -default.buffer = "python;makera-org.slack.com.Kavya;29" -default.buffer = "python;makera-org.slack.com.Vishesh;30" -default.buffer = "python;teamcometchat.slack.com;31" -default.buffer = "python;teamcometchat.slack.com.&breakouts-pro;32" -default.buffer = "python;teamcometchat.slack.com.&hipaa;33" -default.buffer = "python;teamcometchat.slack.com.&interns-pro;34" -default.buffer = "python;teamcometchat.slack.com.&xmpp-pro;35" -default.buffer = "python;teamcometchat.slack.com.AjayGajra,Bosky,KetanYekale,RaviRanjan;36" -default.buffer = "python;teamcometchat.slack.com.#general;37" -default.buffer = "python;teamcometchat.slack.com.PrathameshMajgaonkar,RaviRanjan;38" -default.buffer = "python;teamcometchat.slack.com.#product-releases;39" -default.buffer = "python;teamcometchat.slack.com.#random;40" -default.buffer = "python;teamcometchat.slack.com.#spotlight;41" -default.buffer = "python;teamcometchat.slack.com.AjayGajra;42" -default.buffer = "python;teamcometchat.slack.com.AjayPrabhakar;43" -default.buffer = "python;teamcometchat.slack.com.Bosky;44" -default.buffer = "python;teamcometchat.slack.com.donut;45" -default.buffer = "python;teamcometchat.slack.com.KetanYekale;46" -default.buffer = "python;teamcometchat.slack.com.PrathameshMajgaonkar;47" -default.buffer = "python;teamcometchat.slack.com.RaviRanjan;48" +default.buffer = "fset;fset;2" +default.buffer = "irc;server.freenode;3" +default.buffer = "irc;freenode.##crustaceans;4" +default.buffer = "irc;freenode.#kisslinux;5" +default.buffer = "irc;freenode.#lobsters;6" +default.buffer = "irc;freenode.#merveilles;7" +default.buffer = "irc;freenode.#openbsd;8" +default.buffer = "irc;freenode.#radare;9" +default.buffer = "irc;freenode.DarkHacker_656;10" +default.buffer = "irc;server.rizon;11" +default.buffer = "irc;rizon.#buddy;12" +default.buffer = "irc;rizon.#crimson;13" +default.buffer = "irc;rizon.#homescreen;14" +default.buffer = "irc;rizon.#rice;15" +default.buffer = "python;makera-org.slack.com;16" +default.buffer = "python;makera-org.slack.com.#bugs;17" +default.buffer = "python;makera-org.slack.com.#celebrations;18" +default.buffer = "python;makera-org.slack.com.#design;19" +default.buffer = "python;makera-org.slack.com.#dev;20" +default.buffer = "python;makera-org.slack.com.#general;21" +default.buffer = "python;makera-org.slack.com.#innerjourney;22" +default.buffer = "python;makera-org.slack.com.#legal;23" +default.buffer = "python;makera-org.slack.com.#makera;24" +default.buffer = "python;makera-org.slack.com.#makera.653;25" +default.buffer = "python;makera-org.slack.com.#random;26" +default.buffer = "python;makera-org.slack.com.#ycombinator;27" +default.buffer = "python;makera-org.slack.com.Abhishek;28" +default.buffer = "python;makera-org.slack.com.Anirudh;29" +default.buffer = "python;makera-org.slack.com.Dish;30" +default.buffer = "python;makera-org.slack.com.GitHub;31" +default.buffer = "python;makera-org.slack.com.Kavya;32" +default.buffer = "python;makera-org.slack.com.Vishesh;33" +default.buffer = "python;teamcometchat.slack.com;34" +default.buffer = "python;teamcometchat.slack.com.&breakouts-pro;35" +default.buffer = "python;teamcometchat.slack.com.&hipaa;36" +default.buffer = "python;teamcometchat.slack.com.&interns-pro;37" +default.buffer = "python;teamcometchat.slack.com.&xmpp-pro;38" +default.buffer = "python;teamcometchat.slack.com.AjayGajra,Bosky,KetanYekale,RaviRanjan;39" +default.buffer = "python;teamcometchat.slack.com.#general;40" +default.buffer = "python;teamcometchat.slack.com.PrathameshMajgaonkar,RaviRanjan;41" +default.buffer = "python;teamcometchat.slack.com.#product-releases;42" +default.buffer = "python;teamcometchat.slack.com.#random;43" +default.buffer = "python;teamcometchat.slack.com.#spotlight;44" +default.buffer = "python;teamcometchat.slack.com.AjayGajra;45" +default.buffer = "python;teamcometchat.slack.com.AjayPrabhakar;46" +default.buffer = "python;teamcometchat.slack.com.Bosky;47" +default.buffer = "python;teamcometchat.slack.com.donut;48" +default.buffer = "python;teamcometchat.slack.com.KetanYekale;49" +default.buffer = "python;teamcometchat.slack.com.PrathameshMajgaonkar;50" +default.buffer = "python;teamcometchat.slack.com.RaviRanjan;51" default.window = "1;0;0;0;irc;rizon.Carp" default.current = on +_zoom.window = "1;0;0;0;irc;freenode.##crustaceans" [notify] python.bigtree-social.slack.com.#backend = all