aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/reload.d/term
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-09 14:16:43 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-09 14:16:43 +0100
commit3be98e5ef5247042fd219dded572910305b1a5a4 (patch)
tree43b0f170be0cae8559e582415f9575828ca4e6b3 /.local/share/mode/reload.d/term
parent2dc5ec7085e1c1bbc406f2089dddf8f6e1d9d206 (diff)
big restructure of `mode` scripts
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
+