[devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings

Konstantin A. Lepikhov lakostis at altlinux.ru
Tue Jul 5 17:24:44 MSK 2016


This adds Xdefaults customisation for *Term family (XTerm/Rxvt/*).
Includes font and color changes intended for daily usage.
---
 features.in/x11-neatterm/README                    |  3 +
 features.in/x11-neatterm/config.mk                 |  3 +
 .../rootfs/image-scripts.d/90-x11-neatterm         | 84 ++++++++++++++++++++++
 3 files changed, 90 insertions(+)
 create mode 100644 features.in/x11-neatterm/README
 create mode 100644 features.in/x11-neatterm/config.mk
 create mode 100755 features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm

diff --git a/features.in/x11-neatterm/README b/features.in/x11-neatterm/README
new file mode 100644
index 0000000..45490ae
--- /dev/null
+++ b/features.in/x11-neatterm/README
@@ -0,0 +1,3 @@
+Nice default settings for *term apps family (Xterm/Rxvt/etc)
+includes color settings and font settings
+
diff --git a/features.in/x11-neatterm/config.mk b/features.in/x11-neatterm/config.mk
new file mode 100644
index 0000000..93effe1
--- /dev/null
+++ b/features.in/x11-neatterm/config.mk
@@ -0,0 +1,3 @@
+use/x11-neatterm: use/x11
+	@$(call add_feature)
+	@$(call add,THE_PACKAGES,fonts-bitmap-terminus)
diff --git a/features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm b/features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm
new file mode 100755
index 0000000..3afd721
--- /dev/null
+++ b/features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+if [ ! -x /usr/bin/X ]; then
+	echo "X not installed!" >&2
+	exit 0
+fi
+
+X_CFG=/home/altlinux/.Xdefaults
+cat >> "$X_CFG" <<- EOF
+Rxvt*font: -*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1
+Rxvt*color0: black
+Rxvt*color1: tomato3
+Rxvt*color2: pale green
+Rxvt*color3: goldenrod2
+Rxvt*color4: #003355
+Rxvt*color5: magenta3
+Rxvt*color6: LightBlue3
+Rxvt*color7: gray100
+Rxvt*color8: gray30
+Rxvt*color9: tomato
+Rxvt*color10: spring green
+Rxvt*color11: gold
+Rxvt*color12: blue
+Rxvt*color13: magenta
+Rxvt*color14: LightBlue2
+Rxvt*color15: white
+Rxvt*colorUL: yellow
+Rxvt*colorBD: white
+!Rxvt*background: #112233
+Rxvt*background: black
+Rxvt*foreground: #FFEEBB
+Rxvt*cursorColor: Gold
+
+UXTerm*background: black
+!UXTerm*foreground: green
+UXTerm*VT100*font: -*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1
+UXTerm*color0: black
+UXTerm*color1: tomato3
+UXTerm*color2: pale green
+UXTerm*color3: goldenrod2
+UXTerm*color4: #003355
+UXTerm*color5: magenta3
+UXTerm*color6: LightBlue3
+UXTerm*color7: gray100
+UXTerm*color8: gray30
+UXTerm*color9: tomato
+UXTerm*color10: spring green
+UXTerm*color11: gold
+UXTerm*color12: blue
+UXTerm*color13: magenta
+UXTerm*color14: LightBlue2
+UXTerm*color15: white
+UXTerm*colorUL: yellow
+UXTerm*colorBD: white
+!UXTerm*background: #112233
+UXTerm*foreground: #FFEEBB
+UXTerm*cursorColor: Gold
+
+XTerm*background: black
+!XTerm*foreground: green
+XTerm*VT100*font: -*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1
+XTerm*color0: black
+XTerm*color1: tomato3
+XTerm*color2: pale green
+XTerm*color3: goldenrod2
+XTerm*color4: #003355
+XTerm*color5: magenta3
+XTerm*color6: LightBlue3
+XTerm*color7: gray100
+XTerm*color8: gray30
+XTerm*color9: tomato
+XTerm*color10: spring green
+XTerm*color11: gold
+XTerm*color12: blue
+XTerm*color13: magenta
+XTerm*color14: LightBlue2
+XTerm*color15: white
+XTerm*colorUL: yellow
+XTerm*colorBD: white
+!XTerm*background: #112233
+XTerm*foreground: #FFEEBB
+XTerm*cursorColor: Gold
+EOF
+:
-- 
2.7.4



More information about the devel-distro mailing list