summaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-11-25 15:50:08 -0500
committerMitsuo Tokumori <[email protected]>2023-11-25 15:50:56 -0500
commitc285ddd9d16f0038da0c036882eef7be75e2aae0 (patch)
tree7c4b75f275c2bf63dea6d5691051ea6e973def4c /code
parent6778640f84cce092f425ad4ab9a1ec310a08f6d2 (diff)
downloaddotfiles-c285ddd9d16f0038da0c036882eef7be75e2aae0.tar.gz
dotfiles-c285ddd9d16f0038da0c036882eef7be75e2aae0.tar.bz2
dotfiles-c285ddd9d16f0038da0c036882eef7be75e2aae0.zip
Add helper scripts for dwmblocks
Diffstat (limited to 'code')
-rw-r--r--code/dwm/config.h6
-rw-r--r--code/st/config.h6
2 files changed, 11 insertions, 1 deletions
diff --git a/code/dwm/config.h b/code/dwm/config.h
index 1ce52fb..d12931a 100644
--- a/code/dwm/config.h
+++ b/code/dwm/config.h
@@ -5,7 +5,11 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const char *fonts[] = { "monospace:size=10" };
+static const char *fonts[] = {
+ "monospace:size=10",
+ "Noto Sans CJK JP:size=10", //:antialias=true:autohint=true",
+ "Noto Color Emoji:size=8", //:antialias=true:autohint=true",
+};
static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
diff --git a/code/st/config.h b/code/st/config.h
index bffaed5..267246f 100644
--- a/code/st/config.h
+++ b/code/st/config.h
@@ -8,6 +8,12 @@
* 2560x1440 (15.6"): pixelsize=16
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
+ *
+ * NOTE: Use either pixelsize=10 (absolute) or size=10 (relative to xrandr DPI
+ * setting). In my config I'm currently using `size` for dwm, but
+ * `pixelsize` for st. Idk, maybe one day I'll make it tidy. Also the
+ * font for st is Hack because I'm used to it, but in dwm is monospace,
+ * which currently defaults to "Noto Sans Mono".
*/
//static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
static char *font = "Hack:pixelsize=16:antialias=true:autohint=true";