summaryrefslogtreecommitdiff
path: root/scripts/.local/bin/genxresrouces
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.local/bin/genxresrouces')
-rwxr-xr-xscripts/.local/bin/genxresrouces54
1 files changed, 54 insertions, 0 deletions
diff --git a/scripts/.local/bin/genxresrouces b/scripts/.local/bin/genxresrouces
new file mode 100755
index 0000000..d73b775
--- /dev/null
+++ b/scripts/.local/bin/genxresrouces
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# Generates .Xresources
+
+dpi="92"
+if [ $(xdpyinfo | awk '/dimensions/ {print $2}') == '3840x2160' ]; then
+ dpi="192"
+fi
+
+cat <<CONF
+! special
+*.foreground: #e1a15b
+*.background: #0e0a05
+*.cursorColor: #e1a15b
+
+! black
+*.color0: #222222
+*.color8: #000000
+
+! red
+*.color1: #e75c58
+*.color9: #b22b31
+
+! green
+*.color2: #00b800
+*.color10: #008100
+
+! yellow
+*.color3: #ebeb00
+*.color11: #d3d300
+
+! blue
+*.color4: #0082ff
+*.color12: #0061c3
+
+! magenta
+*.color5: #d160c4
+*.color13: #a03196
+
+! cyan
+*.color6: #009393
+*.color14: #007e7e
+
+! white
+*.color7: #d2d2d2
+*.color15: #787878
+
+Xft.dpi: $dpi
+Xft.autohint: 0
+Xft.lcdfilter: lcddefault
+Xft.hinting: 1
+Xft.antialias: 1
+Xft.rgba: rgb
+CONF