]> git.armaanb.net Git - st.git/blobdiff - config.h
Apply blinking-cursor patch
[st.git] / config.h
index eb7f5ba941ec8e8780e4f636323dbf850429aa3a..ebdc2621b9ecff4de389fa7e2e9cb3cf6e96c416 100644 (file)
--- a/config.h
+++ b/config.h
@@ -5,7 +5,7 @@
  *
  * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
  */
-static char *font = "JetBrainsMono Medium NF:pixelsize=16:antialias=true:autohint=true";
+static char *font = "JetBrainsMono Medium NF:pixelsize=14:antialias=true:autohint=true";
 static int borderpx = 2;
 
 /*
@@ -93,53 +93,81 @@ char *termname = "st-256color";
  */
 unsigned int tabspaces = 8;
 
-/* Terminal colors (16 first used in escape sequence) */
+/* Terminal colors (16 first used in escape sequence).
+        Modus Operandi theme. */
+/* static const char *colorname[] = { */
+/*     /\* 8 normal colors *\/ */
+/*     "#000000", // black */
+/*     "#ff8059", // red */
+/*     "#00fc50", // green */
+/*     "#eecc00", // yellow */
+/*     "#29aeff", // blue */
+/*     "#feacd0", // magenta */
+/*     "#00d3d0", // cyan */
+/*     "#ffffff", // white */
+
+/*     /\* 8 bright colors *\/ */
+/*     "#555555", // black */
+/*     "#ffa0a0", // red */
+/*     "#88cf88", // green */
+/*     "#d2b580", // yellow */
+/*     "#92baff", // blue */
+/*     "#e0b2d6", // magenta */
+/*     "#a0bfdf", // cyan */
+/*     "#ffffff", // white */
+
+/*     [255] = 0, */
+/* }; */
+
+// Modus operandi theme
 static const char *colorname[] = {
        /* 8 normal colors */
-       "black",
-       "red3",
-       "green3",
-       "yellow3",
-       "blue2",
-       "magenta3",
-       "cyan3",
-       "gray90",
+       "#000000", // black
+       "#a60000", // red
+       "#005e00", // green
+       "#813e00", // yellow
+       "#0031a9", // blue
+       "#721045", // magenta
+       "#00538b", // cyan
+       "#ffffff", // white
 
        /* 8 bright colors */
-       "gray50",
-       "red",
-       "green",
-       "yellow",
-       "#5c5cff",
-       "magenta",
-       "cyan",
-       "white",
+       "#555555", // black
+       "#b60000", // red
+       "#006800", // green
+       "#605b00", // yellow
+       "#b5d0ff", // blue
+       "#a8007f", // magenta
+       "#005f88", // cyan
+       "#ffffff", // white
 
        [255] = 0,
-
-       /* more colors can be added after 255 to use with DefaultXX */
-       "#cccccc",
-       "#555555",
 };
 
-
 /*
  * Default colors (colorname index)
  * foreground, background, cursor, reverse cursor
  */
-unsigned int defaultfg = 7;
-unsigned int defaultbg = 0;
-static unsigned int defaultcs = 256;
-static unsigned int defaultrcs = 257;
+unsigned int defaultfg = 0;
+unsigned int defaultbg = 7;
+static unsigned int defaultcs = 0;
+static unsigned int defaultrcs = 7;
 
 /*
- * Default shape of cursor
- * 2: Block ("█")
- * 4: Underline ("_")
- * 6: Bar ("|")
- * 7: Snowman ("☃")
+ * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81
+ * Default style of cursor
+ * 0: Blinking block
+ * 1: Blinking block (default)
+ * 2: Steady block ("█")
+ * 3: Blinking underline
+ * 4: Steady underline ("_")
+ * 5: Blinking bar
+ * 6: Steady bar ("|")
+ * 7: Blinking st cursor
+ * 8: Steady st cursor
  */
-static unsigned int cursorshape = 2;
+static unsigned int cursorstyle = 1;
+static Rune stcursor = 0x2603; /* snowman (U+2603) */
 
 /*
  * Default columns and rows numbers
@@ -199,6 +227,7 @@ static Shortcut shortcuts[] = {
        { TERMMOD,              XK_Y,           selpaste,       {.i =  0} },
        { ShiftMask,            XK_Insert,      selpaste,       {.i =  0} },
        { TERMMOD,              XK_Num_Lock,    numlock,        {.i =  0} },
+       { MODKEY,               XK_c,           copyurl,        {.i =  0} },
 };
 
 /*