aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/reload.d/term
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/mode/reload.d/term')
-rwxr-xr-x.local/share/mode/reload.d/term30
1 files changed, 30 insertions, 0 deletions
diff --git a/.local/share/mode/reload.d/term b/.local/share/mode/reload.d/term
new file mode 100755
index 0000000..5f02463
--- /dev/null
+++ b/.local/share/mode/reload.d/term
@@ -0,0 +1,30 @@
+#!/bin/sh
+escape_msgs="$(cat << EOF | tr -d '\n'
+\033]11;$bg\007
+\033]10;$fg\007
+\033]12;$fg\007
+\033]14;$bg\007
+\033]13;$fg\007
+\033]17;$color8\007
+\033]708;$bg\007
+\033]4;0;$color0\007
+\033]4;1;$color1\007
+\033]4;2;$color2\007
+\033]4;3;$color3\007
+\033]4;4;$color4\007
+\033]4;5;$color5\007
+\033]4;6;$color6\007
+\033]4;7;$color7\007
+\033]4;8;$color8\007
+\033]4;9;$color9\007
+\033]4;10;$color10\007
+\033]4;11;$color11\007
+\033]4;12;$color12\007
+\033]4;13;$color13\007
+\033]4;14;$color14\007
+\033]4;15;$color15\007
+EOF
+)"
+
+find /dev/pts -exec sh -c "printf \"$escape_msgs\" > {}" \; 2> /dev/null
+