all repos — dotfiles @ 9e8687309488aad0c29456fb4fb9ee642e0cb365

my *nix dotfiles

misc: things
Anirudh Oppiliappan x@icyphox.sh
Tue, 15 Feb 2022 10:26:49 +0530
commit

9e8687309488aad0c29456fb4fb9ee642e0cb365

parent

c7a9e48bdfad3a636f1b166829cfea60aec08bdd

4 files changed, 36 insertions(+), 115 deletions(-)

jump to
D darwin/ssh/config

@@ -1,92 +0,0 @@

-Host github.com - Hostname github.com - Port 22 - TCPKeepAlive yes - IdentityFile ~/.ssh/github-new - -Host deepsource - Hostname github.com - User git - IdentityFile ~/.ssh/deepsource-git - -Host fern - Hostname 152.67.182.105 - User pi - Port 2222 - -Host jade - Hostname 152.67.182.105 - User ubuntu - IdentityFile ~/.ssh/id_rsa - -Host pantwo - Hostname 100.64.1.3 - User icy - IdentityFile ~/.ssh/id_rsa - -Host lapis - Hostname 150.230.131.193 - User icy - IdentityFile ~/.ssh/id_rsa - -Host * - ServerAliveInterval 180 - ServerAliveCountMax 3 - UseKeychain yes - -# Google Compute Engine Section -# -# The following has been auto-generated by "gcloud compute config-ssh" -# to make accessing your Google Compute Engine virtual machines easier. -# -# To remove this blob, run: -# -# gcloud compute config-ssh --remove -# -# You can also manually remove this blob by deleting everything from -# here until the comment that contains the string "End of Google Compute -# Engine Section". -# -# You should not hand-edit this section, unless you are deleting it. -# -Host enterprise.us-central1-a.deepsource-dev - HostName 34.133.47.102 - IdentityFile /Users/icy/.ssh/google_compute_engine - UserKnownHostsFile=/Users/icy/.ssh/google_compute_known_hosts - HostKeyAlias=compute.8990686955516053281 - IdentitiesOnly=yes - CheckHostIP=no - -Host github-enterprise.us-central1-a.deepsource-dev - HostName 34.68.126.151 - IdentityFile /Users/icy/.ssh/google_compute_engine - UserKnownHostsFile=/Users/icy/.ssh/google_compute_known_hosts - HostKeyAlias=compute.4321125097424335631 - IdentitiesOnly=yes - CheckHostIP=no - -Host openvpn.us-central1-a.deepsource-dev - HostName 35.232.236.7 - IdentityFile /Users/icy/.ssh/google_compute_engine - UserKnownHostsFile=/Users/icy/.ssh/google_compute_known_hosts - HostKeyAlias=compute.6341485822375164417 - IdentitiesOnly=yes - CheckHostIP=no - -Host tailscale.asia-south1-c.deepsource-dev - HostName 35.244.13.133 - IdentityFile /Users/icy/.ssh/google_compute_engine - UserKnownHostsFile=/Users/icy/.ssh/google_compute_known_hosts - HostKeyAlias=compute.4702344397461811265 - IdentitiesOnly=yes - CheckHostIP=no - -Host rainmaker.asia-south1-c.deepsource-production - HostName 35.200.252.172 - IdentityFile /Users/icy/.ssh/google_compute_engine - UserKnownHostsFile=/Users/icy/.ssh/google_compute_known_hosts - HostKeyAlias=compute.5954000129691123210 - IdentitiesOnly=yes - CheckHostIP=no - -# End of Google Compute Engine Section
M home/.colors/lighthome/.colors/light

@@ -14,7 +14,7 @@

*color8: #aaaaaa *color9: #c66666 *color10: #6d8b42 -*color11: #cdcdcd +*color11: #e7e7e7 *color12: #8a8a8a *color13: #a262b5 *color14: #43827b
M weechat/weechat.confweechat/weechat.conf

@@ -400,12 +400,26 @@ title.type = window

[layout] default.buffer = "core;weechat;1" -default.buffer = "irc;server.rizon;2" -default.buffer = "irc;rizon.#buddy;3" -default.buffer = "irc;rizon.#homescreen;4" -default.buffer = "irc;rizon.#rice;5" -default.buffer = "irc;rizon.#taigobot-test;6" -default.buffer = "irc;rizon.Taigabot;7" +default.buffer = "irc;server.libera;2" +default.buffer = "irc;libera.#c;3" +default.buffer = "irc;libera.##crustaceans;4" +default.buffer = "irc;libera.#docker;5" +default.buffer = "irc;libera.##github;6" +default.buffer = "irc;libera.#gnupg;7" +default.buffer = "irc;libera.#go-nuts;8" +default.buffer = "irc;libera.#kisslinux;9" +default.buffer = "irc;libera.#kubernetes;10" +default.buffer = "irc;libera.#libera;11" +default.buffer = "irc;libera.#linux;12" +default.buffer = "irc;libera.#lobsters;13" +default.buffer = "irc;libera.#neovim;14" +default.buffer = "irc;libera.#nixers;15" +default.buffer = "irc;libera.#openbsd;16" +default.buffer = "irc;libera.#opsec;17" +default.buffer = "irc;libera.#plan9;18" +default.buffer = "irc;libera.#python;19" +default.buffer = "irc;libera.#security;20" +default.buffer = "irc;libera.#xorg;21" default.window = "1;0;0;0;irc;rizon.Carp" default.current = on
M weechat/xnotify.pyweechat/xnotify.py

@@ -84,28 +84,27 @@ notify_user("{} @ {}".format(prefix, buffer_name), message)

return weechat.WEECHAT_RC_OK -def process_cb(data, command, return_code, out, err): - if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR: - weechat.prnt("", "Error with command '%s'" % command) - elif return_code != 0: - weechat.prnt("", "return_code = %d" % return_code) - weechat.prnt("", "notify-send has an error") - return weechat.WEECHAT_RC_OK - def notify_user(origin, message): - hook = weechat.hook_process_hashtable("notify-send", - { - "arg1": "WeeChat", "arg2": "", - "arg3": origin + '\t', "arg4": message, - }, - 20000, "process_cb", "") + notify_cmd = [ + "notify-send", + f"{origin}: {message}" + ] + try: + subprocess.check_call( + notify_cmd, + stderr=subprocess.STDOUT, + stdout=subprocess.DEVNULL, + ) + except Exception as e: + weechat.prnt("", e) + return weechat.WEECHAT_HOOK_PROCESS_ERROR return weechat.WEECHAT_RC_OK # execute initializations in order if __name__ == "__main__": - weechat.register(xnotify_name, "kevr", xnotify_version, xnotify_license, - "{} - A libnotify script for weechat".format(xnotify_name), "", "") + weechat.register(xnotify_name, "icy", xnotify_version, xnotify_license, + "{} - xnotify plugin for weechat".format(xnotify_name), "", "") cfg = config() print_hook = weechat.hook_print("", "", "", 1, "handle_msg", "")