aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-05 15:17:33 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-05 15:17:33 +0000
commitf723eec9bac125536b3b956d9eb26fea8fb60deb (patch)
tree2fb071ee2d70c071d84bf255c6ccfeee725cf6ec
parentmore updates for irssi (diff)
downloadscripts-f723eec9bac125536b3b956d9eb26fea8fb60deb.tar.gz
scripts-f723eec9bac125536b3b956d9eb26fea8fb60deb.zip
update
-rw-r--r--.mongoshrc.js12
-rw-r--r--.zshrc6
-rw-r--r--irssi/solarized-powerline.theme42
-rw-r--r--keymap.kbd3
-rw-r--r--root/.bashrc4
5 files changed, 45 insertions, 22 deletions
diff --git a/.mongoshrc.js b/.mongoshrc.js
new file mode 100644
index 0000000..493e925
--- /dev/null
+++ b/.mongoshrc.js
@@ -0,0 +1,12 @@
+{
+ const hostnameSymbol = Symbol("hostname");
+ prompt = () => {
+ if (!db[hostnameSymbol]) db[hostnameSymbol] = db.serverStatus().host;
+ return `\x1b[38;5;22m${db.getName()}\x1b[38;5;24m@${
+ db[hostnameSymbol]
+ }\x1b[38;5;22m:Uptime:${db.serverStatus().uptime}:Documents:${
+ db.stats().objects
+ } >>>\x1b[0m`;
+ ;
+ };
+}
diff --git a/.zshrc b/.zshrc
index 9bcf199..319a3a3 100644
--- a/.zshrc
+++ b/.zshrc
@@ -168,6 +168,7 @@ alias socks5vpn4="autossh -M 0 -N -D 9994 -o ServerAliveInterval=180 -o ServerAl
alias socks5vpn6="autossh -M 0 -N -D 9993 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -6 -l ubuntu -p 3022 2a07:e01:3:204::1"
alias cloud_one="ssh 130.185.121.80 -l ubuntu -p 1022"
alias zharf_server="zssh 192.168.12.5 -l farzad"
+alias zharf_server2="zssh 192.168.90.7 -l root"
alias k9sskin="vim ~/scripts/.k9s/skin.yml"
alias k9sconfig="vim ~/scripts/.k9s/config.yml"
alias fixk9sskin="cp ~/scripts/.k9s/skin.yml ~/.config/k9s/skin.yml"
@@ -221,6 +222,7 @@ alias fixgitconfigrc="cp ~/scripts/.gitconfig ~/.gitconfig"
alias nviminit="vim ~/scripts/init.vim"
alias fixnviminit="cp ~/scripts/init.vim ~/.config/nvim/init.vim"
alias mysql='mysql --safe-updates --prompt="\u@\h [\d]>"'
+alias socat="socat -d -d"
#autosuggest
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold,underline"
@@ -508,6 +510,10 @@ pod2w3m() {
pod2html $1 | w3m -T text/html
}
+get_irssi_logs() {
+ psql -h 192.168.1.109 -p 30432 -U postgres postgres -c '\c irc' -c 'select * from public.logs;'
+}
+
setopt APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_FIND_NO_DUPS
diff --git a/irssi/solarized-powerline.theme b/irssi/solarized-powerline.theme
index a0e32ad..cba69b6 100644
--- a/irssi/solarized-powerline.theme
+++ b/irssi/solarized-powerline.theme
@@ -399,23 +399,23 @@ abstracts = {
formats = {
"fe-common/core" = {
daychange = " %g-----%k-%W-%n Day changed to %%D %W-%k-%g-----%n";
- join = "%k%z00af5fJOIN %8 {ichannelhilight $2} %0%Z00d700%0 {inick $0}%0 %N%8%n%k%N {chanhost_hilight $1}";
+ join = "%k%z00af5fJOIN %8 {ichannelhilight $2} %0%Z00d700%0 {inick $0}%0 %N {chanhost_hilight $1}";
line_start_irssi = "%k%z5f5fd7IRSSI%N%Z5f5fd7 %N";
- new_topic = "%k%z00d700TOPIC %8 {ichannelhilight $1} by {inick $0}%8  $2";
- nick_changed = "%k%z00d700RENAME %Z00d700%0 {nick $0} %Zff8700 {nick $1} %N%8%n%k%N";
+ new_topic = "%k%z00d700TOPIC %8 {ichannelhilight $1} %wby {inick $0}  $2";
+ nick_changed = "%k%z00d700RENAME %Z00d700%0 %k%z005f87{nick $0} %Zff8700 {nick $1} %Z005f87%k %N";
part = "%K%Z00d700%k%z00d700PART %8 {ichannelhilight $2}%N %0%Z005f87 %N{inick $0}%0 %k%Zeeeeee {reason $3}";
quit = "%0%Z005f00%k%z005f00QUIT %N {inick $0}%0 %Zeeeeee %N%n%k%N {reason $2}";
- your_nick_changed = "%k%z00d700RENAME %Z00d700%0 {mynick $0} %Zff8700 {mynick $1} %N%8%n%k%N";
- own_msg = "{ownmsgnick $nickalign$2 {ownnick $nickcolor$0$nicktrunc}}$1";
- own_msg_channel = "{ownmsgnick $nickalign$3 {ownnick $nickcolor$0$nicktrunc}{msgchannel $1}}$2";
- own_msg_private_query = "{ownprivmsgnick $nickalign{ownprivnick $nickcolor$2$nicktrunc}}$1";
- pubmsg_me = "{pubmsgmenick $nickalign$2 {menick $0$nicktrunc}}$1";
- pubmsg_me_channel = "{pubmsgmenick $nickalign$3 {menick $0$nicktrunc}{msgchannel $1}}$2";
- pubmsg_hilight = "{pubmsghinick $0 $nickalign$3 $1$nicktrunc}$2";
- pubmsg_hilight_channel = "{pubmsghinick $0 $nickalign$4 $1$nicktrunc{msgchannel $2}}$3";
- pubmsg = "{pubmsgnick $nickalign$2 {pubnick $nickcolor$0$nicktrunc}}$1";
- pubmsg_channel = "{pubmsgnick $nickalign$3 {pubnick $nickcolor$0$nicktrunc}{msgchannel $1}}$2";
- msg_private_query = "{privmsgnick $nickalign$nickcolor$0$nicktrunc}$2";
+ your_nick_changed = "%k%z00d700RENAME %Z00d700%0 %k%z005f87{mynick $0} %Zff8700 {mynick $1} %Z005f87%k %N";
+ own_msg = "$nickcolor$nickalign{ownmsgnick $2 {ownnick $[.15]0}}$1";
+ own_msg_channel = "$nickcolor$nickalign{ownmsgnick $3 {ownnick $[.15]0}{msgchannel $1}}$2";
+ own_msg_private_query = "$nickcolor$nickalign{ownprivmsgnick {ownprivnick $2}}$1";
+ pubmsg_me = "$nickalign{pubmsgmenick $2 {menick $[.12]0}}$1";
+ pubmsg_me_channel = "$nickalign{pubmsgmenick $3 {menick $[.12]0}{msgchannel $1}}$2";
+ pubmsg_hilight = "$nickalign{pubmsghinick $0 $3 $[.12]1}$2";
+ pubmsg_hilight_channel = "$nickalign{pubmsghinick $0 $4 $[.12]1{msgchannel $2}}$3";
+ pubmsg = "$nickcolor$nickalign{pubmsgnick $2 {pubnick $[.12]0}}$1";
+ pubmsg_channel = "$nickcolor$nickalign{pubmsgnick $3 {pubnick $[.12]0}{msgchannel $1}}$2";
+ msg_private_query = "$nickcolor$nickalign{privmsgnick $0}$2";
};
"fe-common/irc" = {
away = "%k%z00d700AWAY %Z00d700%0%N";
@@ -449,11 +449,11 @@ formats = {
usermode_change = "%z008700%ZeeeeeeMODE %N%Z008700%N {mode $0}%N for %0{mynick $1}%N";
who = "%z00d700%kWHO %Z00d700%z005f87 %z005f87%k{inick $[!9]1} %Z005f87%2 %k$0 %0%g Status: $[!3]2  $[-2]3 hops %N%g%N {nickhost $4@$5} {comment $6}";
whois = "%z00d700%kWHOIS %Z00d700%z005f87 {nick $0} %Z005f87%0 {nickhost $1@$2}%:{whois ircname $3}";
- whowas = "%z00d700%kWHOWAS %Z00d700%0%n {nick $0} {nickhost $1@$2}%:{whois was $3}";
+ whowas = "%z00d700%kWHOWAS %Z00d700%z005f87 {nick $0} %Z005f87%0 {nickhost $1@$2}%:{whois was $3}";
own_action = "$nickalign{ownaction $0$nicktrunc}$1";
- action_private = "$nickalign{pvtaction $0$nicktrunc}$2";
- action_private_query = "$nickalign{pvtaction_query $0$nicktrunc}$2";
- action_public = "$nickalign{pubaction $0$nicktrunc}$1";
+ action_private = "$nickalign{pvtaction $[.10]0$nicktrunc}$2";
+ action_private_query = "$nickalign{pvtaction_query $[.10]0$nicktrunc}$2";
+ action_public = "$nickalign{pubaction $[.10]0$nicktrunc}$1";
};
"Irssi::Script::adv_windowlist" = {
awl_display_header = "";
@@ -474,7 +474,9 @@ formats = {
sb_uc_normal = "$*";
sb_uc_space = " ";
};
- "Irssi::Script::hilite_url" = {
- url_color = "38;5;6";
+ "Irssi::Script::nm2" = {
+ neat_pad_char = " ";
+ neat_style = ",cp,,,,,,,";
+ neat_custom_modes = "&%B&%n%Zeeeeee | @%g@%n%Zeeeeee | +%y+%n%Zeeeeee";
};
};
diff --git a/keymap.kbd b/keymap.kbd
index a27f7a0..b566b5e 100644
--- a/keymap.kbd
+++ b/keymap.kbd
@@ -17,7 +17,8 @@
)
-------------------------------------------------------------------------- |#
(defcfg
- input (device-file "/dev/input/by-id/usb-Razer_Razer_Huntsman_Tournament_Edition_00000000001A-event-kbd")
+ ;; input (device-file "/dev/input/by-id/usb-Razer_Razer_Huntsman_Tournament_Edition_00000000001A-event-kbd")
+ input (device-file "/dev/input/by-id/usb-Razer_Razer_Huntsman_Tournament_Edition_00000000001A-if01-event-kbd")
output (uinput-sink "KMonad output")
cmp-seq lalt
diff --git a/root/.bashrc b/root/.bashrc
index 3be781e..5eed311 100644
--- a/root/.bashrc
+++ b/root/.bashrc
@@ -10,12 +10,14 @@ alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
+alias ~="cd ~"
export LESS_TERMCAP_mb=$'\e[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\e[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\e[0m' # end mode
export LESS_TERMCAP_se=$'\e[0m' # end standout-mode
-export LESS_TERMCAP_so=$'\e[38;5;246m' # begin standout-mode - info box
+# export LESS_TERMCAP_so=$'\e[38;5;246m' # begin standout-mode - info box
+export LESS_TERMCAP_so=$'\e[1;92m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\e[0m' # end underline
export LESS_TERMCAP_us=$'\e[04;38;5;146m' # begin underline